Headings help in defining the hierarchy and the structure of the web page.
Example:In this page “HTML heading Tutorial with Example” is the heading and it write between h1 tag.
Headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
h1 tag play a vital rule for know your website page in search engines .Search engines use the headings to index your web page.
Example:
<!DOCTYPE html>
<html>
<head>
<title>HTML Heading</title>
</head>
<body>
<h1>This is Heading 1</h1>
<h2> This is Heading 2</h2>
<h3>
This is Heading 3</h3>
<h4>
This is Heading 4</h4>
<h5>
This is Heading 5</h5>
<h6>This is Heading 6</h6>
</body>
</html>
<h1> headings should be used for main headings, followed by <h2> headings, then the less important <h3>, and so on.
The HTML <head> Element
The head tag is the container of meta tag and css file.
<!DOCTYPE html>
<html>
<head>
<title>HTML Heading</title>
<meta charset=“UTF-8">
<style>
CSS code goes here..</style>
</head>
<body>
Main content goes here..
</body>
</html>
0 comments:
Post a Comment
Thanks