An HTML tag is used to identify the highest level of information on a page. In practice, page titles and headlines are usually marked with H1 tags, the most significant text on a page. H1 tags can be associated with specific CSS styles or formatting in a web page so that headlines always appear in a particular font, color, and size. H1s are essential in search engine optimization (SEO) and make it easier to index content. Search engines know it is essential if something is in an H1 tag.
Example:
html
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Example Page</title>
</head>
<body>
<h1>Welcome to Our Website</h1>
<p>This is a paragraph of text.</p>
</body>
</html>
In this example, the <h1> tag surrounds the main heading “Welcome to Our Website.” It serves as the primary heading of the webpage, conveying to users and search engines the main topic or purpose of the page.