Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I still need to include type="value" in HTML5?

Tags:

html

css

Do I need to include type="value" in my page when linking my external style sheet or script? I thought I heard it was no longer needed in HTML5. I still see it in some HTML files. Still learning. Thanks for the help.

like image 992
Midtone Avatar asked Dec 03 '11 01:12

Midtone


People also ask

Do you need type attribute in script tag?

The type attribute in JavaScript is optional since the introduction of HTML5 brought some new improvements. JavaScript became the default language for HTML5 and modern browsers. So, now adding text/javascript isn't required in <script> tag.

Why should you use the type attribute in the opening script tag?

The type attribute gives the language of the script or format of the data.

What does an HTML5 type attribute for an input element do?

The type attribute specifies the type of <input> element to display. If the type attribute is not specified, the default type is "text".

Which value for the type attribute should be used for a password field input type?

ⓘ input type=password – password-input field The input element with a type attribute whose value is " password " represents a one-line plain-text edit control for entering a password.


1 Answers

It's not needed in HTML5 but in HTML<=4 or XHTML it's required.

like image 61
Wouter Dorgelo Avatar answered Sep 21 '22 12:09

Wouter Dorgelo