Tags
artyspangler13 total contributions
Published Aug 3, 2021Updated Aug 2, 2023
Contribute to Docs
In HTML, tags are commonly defined as a set of characters constituting a formatted command for a web page. They are used for making elements for the web page’s markup. During the early days of the World Wide Web, tags were responsible for a majority of the web’s code.
Syntax
<element-name> content </element-name>
<self-closing-element-tag />
A single tag is made of an opening angle bracket <
, followed by the element-name
, followed by the closing angle bracket. While most elements are made of opening and closing tags some are self-closing. Furthermore, some self-closing elements like <br>
can have a slash at the end like so: <br />
. The other self-closing tags include: <area>
, <base>
, <col>
, <embed>
, <hr>
, <img>
, <input>
, <keygen>
, <link>
, <meta>
, <param>
, <source>
, <track>
, and <wbr>
.
All contributors
- artyspangler13 total contributions
- BrandonDusch580 total contributions
- christian.dinh2476 total contributions
- Anonymous contributorAnonymous contributor3071 total contributions
- artyspangler
- BrandonDusch
- christian.dinh
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.