Professional Documents
Culture Documents
Definition and Usage of "H"
Definition and Usage of "H"
<h1> defines the most important heading. <h6> defines the least important
heading.
Note: Only use one <h1> per page - this should represent the main
heading/subject for the whole page. Also, do not skip heading levels - start with
<h1>, then use <h2>, and so on.
Review:
<!DOCTYPE html>
<html>
<body>
</body>
</html>
The contents of a page title is very important for search engine optimization
(SEO)! The page title is used by search engine algorithms to decide the order
when listing pages in search results.
Review 1:
Review2:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
body {background-color: powderblue;}
h1 {color: red;}
p {color: blue;}
h2 {color: green;}
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<h2> here we go </h2>
</body>
</html>
------------
<!DOCTYPE html>
<html>
<head>
</head>
<body style="background-color:Black;">
<h1 style="color:Purple;">Hello World</h1>
<h2 style="color:Tomato;">I love Sweets</h2>
<h1 style="color:Red;"> Change this text </h1>
<h2 style="background-color: White;"> To whatever you want</h2>
<h3 style="color:purple;">and lets see</h3>
<h4>Who will be the most interesting</h4>
<h5>Be creative</h5>
<h6>Good luck</h6>
</body>