The element <html> is the root element of your html page, everything starts with this element and ends with the closing </html> tag. The good thing that I like is to using it in CSS, like you can set your whole page for a certain font size (in px) and then using rem (called, root em) you can adjust font size of different parts of the webpage; for example:
<!doctype html>
<html lang="en-US">
<head>
<title> example page </title>
<style>
html {font-size:30px;}
p.smaller {font-size:.4rem;}
p.bigger {font-size:.5rem;}
</style>
<head>
<body>
<p class="smaller"> This is first line. </p>
<p class="bigger"> This is second line. </p>
<p> I don't have a css class, my font-size is 30px. </p>
</body>
</html>
Comments
Post a Comment