We have six levels of headings in HTML. Level 1 will provide biggest font size, and level 6 smallest font size. We will use h tag to set headings.
Vertically, you can interchange their positions, like level 1 and level 2 and level 1 again, but that's just for experimentation. After specific heading we can have paragraphs, forms, images, tables and other html elements.
Sure, CSS will give us much better option to style HTML headings, and other html elements.
Of course, headings goes inside body section of web page, not into the head section. Headings are part of real content.
<!DOCTYPE html>
<html>
<head>
<title>Security Tutorials</title>
<meta charset="utf-8">
<meta name="description" content="Free Security Tutorials">
<meta name="keywords" content="it security, pentesting, hacking">
</head>
<body>
<h1>Heading Level - 1</h1>
<h2>Heading Level - 2</h2>
<h3>Heading Level - 3</h3>
<h4>Heading Level - 4</h4>
<h5>Heading Level - 5</h5>
<h6>Heading Level - 6</h6>
<p>Actual Content</p>
</body>
</html>
No comments:
Post a Comment