HTML
CSS
Deno
Examples
Do It Yourself
Type in your code below
Run
<html><head><style> body { font-size: 16px; /* Sets the font size of a webpage to 16px. */ } div { font-size: 9px; } </style> </head><body> We can start writing to the body, the font size will appear in 16 pixels. <p>Even in other elements in the body</p> <span style="font-size: 11px;">Except a style is set explicitly for the element.</span> <div>Setting a new definition for a specific child element also overrides the parent font size.</div> </body></html>