Streaming live at 10am (PST)

<style> vs <style type="text/css">


#1

...does it matter in some way when entering this into Custom Code?


#2

Hey @StevenP,

The "type" tells the browser what type of media you are going to be presenting to the browser.

In HTML5 the default is "type=text/css" so you don't have to put the type in the <style> tag if you are going to be presenting CSS.


#3

Thanks for the clarifications! So basically that means that every CSS style we put in the Custom Code can be wrapped by "style" and that should be enough for all instances of CSS?


#4

Hi @StevenP, Yes, as long as the custom css is put in between the style tag smile

<style>

... all your css go here between the style tags

</style>

Cheers, Dave


#5

Exactly! Thanks a lot for the clarification Dave!


#6

Same principles applies for Javascript/Jquery we put in Footer section of Custom Code?


#7

Correct! The <script> tag defaults to "type=text/javascript" in HTML5.


#8