Code Editor
Web Browser
The CSS Setup


Although CSS is a different language than HTML, it's possible to write CSS code directly within an HTML file. This is possible because of the <style> element.

The <style> element allows you to write CSS code between its opening and closing tags. To use the <style> element, it must be placed inside of the head.

<head> <style> </style> </head>

Once <style> is placed in the web page's head, we can begin writing CSS code.

<head> <style> h2 { font-family: Arial; } </style> </head>

Don't worry about the CSS code in the example above just yet, you will learn more about the details of CSS code in later lessons.

Report a Bug
If you see a bug or any other issue with this page, please report it here.