HTML tags reference

Document section

Tag name Description Syntax
head Container for metadata <head> </head>
link Used to link external style sheets <link>
meta Defines metadata about HTML document <meta> </meta>
title Defines a document's title <title> </title>
style Used to define style information (CSS) for a document <style> </style>

Sectioning Tags

Tag name Description Syntax
header Gives indroductory content about the document <header> </header>
main Represents the main dominant content of a document <main> </main
section Structural HTML element used to group togather related elements <section </section>
nav Represents a section of a page to provide navigation links <nav> </nav>
article Represents self-contained composition, which is independently distribuable or reusable <article> </article>
aside Defines some content aside from the content it is placed in <aside> </aside>
footer Represents a footer for its sectioning root element <footer> </footer>
address Provides contact information for a person, people or an organisation <address> </address>

Attributes

Tag name Description Syntax
alt Used in the image tag to specify the alternative text of the image < tag_name alt =”…” >
href Used to define hyperlink < tag_name href =”…” >
src Specifies URL of the image to be used < tag_name src =”…” >
id Unique identifier used to specify an area of a webpage < tag_name id =”…” >
class Specifies one or more class names for an element < tag_name class =”…” >