What are HTML headings?

Print anything with Printful



HTML headers contain the title and metadata of an HTML document and follow structural rules. Learning HTML manually is recommended. Creating an HTML header is a basic skill, and metadata helps search engines find websites. The header is closed with the tag and body text is placed inside corresponding tags.

Hypertext Markup Language (HTML) headers are the sections of HTML code reserved for the title and metadata included in an HTML document. HTML headers follow the same structural rules as other page elements when it comes to creating tags. A header usually has the opening tag
and the closing tag. One of the fundamental rules for working with HTML documents concerns the difference between HTML headers and body text. While an HTML editor can help automate this process, learning HTML manually with a simple

Text editor
it is often considered a better way to understand the whole
syntax
.

Writing HTML code is a basic website design skill, and many seasoned professionals find it more important than using editing software programs that allow you to build websites without needing to learn any coding. Creating an HTML header is usually one of the first lessons for newcomers to this website design language. The opening header tag appears in the second line after the opening tag at the top of a new HTML document. Unlike other data outside of header tags, the information enclosed in header tags is not displayed when the finished HTML document is viewed in a web browser.

The title placed in HTML headers is the title of the web page that usually appears in the upper left corner of the web browser window. Most HTML programmers add metadata on the next line after this title. This information may include the website author’s name, the designated copyright year, and any keywords the author wishes to include. Adding keywords in metadata tags is a time-tested method of making a new website easy for major search engines to find. While the metadata won’t display in a web browser, each tag must still follow the correct syntax rules for HTML headers.

A metadata tag included in an HTML header lists the type of metadata tag followed by its content. HTML headers including the website author’s name would be written, for example. After the author has entered all the desired metadata information, the HTML header is closed with the tag. The body text is then placed inside the corresponding tags. A frequent mistake at the beginning is to enter the opening

tag before the tag and this oversight will normally cause an error when the author tries to render the document in a browser.




Protect your devices with Threat Protection by NordVPN


Skip to content