HTML Dog
Skip to navigation

HTML Tags

Every valid HTML tag, what they’re used for, and how they can be used..

By Category

The Root Element

Metadata

Sections

Grouping

Text

Edits

Embedded Content

Tables

Forms

Scripting

Usage

HTML tags mark the beginning and end of HTML elements and may contain attributes. They are used as follows:


<tagname>Element content</tagname>

<tagname attributename="attributevalue">Element content</tagname>

<!-- or, for the few attributes without values, simply: -->

<tagname attributename>Element content</tagname>

<!-- or, for the few elements without content, simply: -->

<tagname>

<tagname attributename="attributevalue">

Global attributes can be used with every tag, alongside the specific attributes listed in each page.