A HTML tag is commonly defined as a set of characters constituting a formatted command for a web page. During the early days of the World Wide Web, they were responsible for a majority of the web’s code.
Here are some of the most common HTML tags ordered alphabetically:
- Tells the browser that the file is in the HTML format.
- Creates a link to another page or to a location in the current page.
- Represents a section of a document which contains a longer quotation, usually spanning multiple lines.
- Represents a break in text. This tag is used when text needs to span multiple lines rather than being in-line, such as an address.
- Represents a citation to a referenced work such as a book, a song, or a painting.
- Represents source code contained in the text.
- The <div> tag represents a generic division of content. It has no semantic meaning, but will separate its contents from the rest of the document.
- Represents text which is emphasized. Browsers will show the enclosed text in italics, by default."
- Inserts external content such as a video, image, page, and more.
- Represents an interface to collect and submit user supplied information. This can include open ended text inputs, radio buttons, calendar information, and more.
- <h1> - <h6>
- Represents a text heading for a section of content, with <h1> being the highest level of heading and <h6> being the lowest.
- Represents a collection of metadata related to the current document. It is an immediate child of the `<html>` element and may include other tags such as <title>, <link>, <style>, and <script>.
- Represents the entire HTML document.
- Represents a container used to embed a second web page inside the current one. It can be used for content from the same domain as the parent, or even from a second domain.
- Used to add an image to the document. It can also be used inside an anchor tag to create an image link.
- Creates an interactive element, usually used within a form to allow user input. Can be used to make text boxes, color pickers, date pickers, and more.
- Represents a single item in a list of items. It and the other list items must be wrapped in an <ol>, <ul>, or <menu> tag.
- Represents an interface to provide metadata pertaining to the document. Metadata is data that is used to describe the document that contains it. The <meta> must be placed inside <head> section for the document.
- Used to identify text that is very important, or urgent.
- Represents an interface for adding tabular data to the page. Tables are two dimensional, made up of rows and columns, and can contain many types of content.
- Represents an interface for adding video content to the page.
- Anonymous contributors
Learn HTML on Codecademy
- Anonymous contributorsAnonymous contributors