Jump to content

external stylesheets in HTML 5


skaterdav85

Recommended Posts

I've heard that you don't need the type attribute in your script or style tags in HTML5, and we can start leaving them out and it will still work in browsers that don't support HTML 5. Can the type attribute also be left out when you're referencing external stylesheets with the link tag? Also, is the charset attribute optional?

Link to comment
Share on other sites

You may skip type attribute but charset is must. Read - 'Character Encoding' http://diveintohtml5.org/semantics.html

I've heard that you don't need the type attribute in your script or style tags in HTML5, and we can start leaving them out and it will still work in browsers that don't support HTML 5. Can the type attribute also be left out when you're referencing external stylesheets with the link tag? Also, is the charset attribute optional?
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...