We already discussed the HTML headings. This lesson wont be that difficult. We'll just cover some new additions to the HTML Headings.
We already said that headings start with <h1> and can be up to </h6>
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
To make a heading stand out we can use a horizontal rule or <hr> element.
" ><h1> Heading 1 </h1>
<hr>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
We discussed about HTML headings and we learnt a new HTML element or the horizontal rule <hr> element We're adding another element within the <head> element or right under the Title element. That's the encoding type of our webpage. <meta charset="UTF-8">
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My first heading</h1>
<h2>My first heading</h2>
<h3>My first heading</h3>
<h4>My first heading</h4>
<h5>My first heading</h5>
<h6>My first heading</h6>
</body>
</html>
Comments
Post a Comment