HTML

HTML stands for HyperText Markup Language. It is a standard markup language for web page creation. It allows the creation and structure of sections, paragraphs, and links using HTML elements (the building blocks of a web page) such as tags and attributes.

HTML has a lot of use cases, namely:

  • Web development. Developers use HTML code to design how a browser displays web page elements, such as text, hyperlinks, and media files.
  • Internet navigation. Users can easily navigate and insert links between related pages and websites as HTML is heavily used to embed hyperlinks.
  • Web documentation. HTML makes it possible to organize and format documents, similarly to Microsoft Word.
Headings

Headings are used to organize and structure the content of a web page. They are used to create a hierarchy of information, with the most important information at the top and the least important information at the bottom. Headings are also used to create a table of contents for a web page. For example, a heading element will be in a separate line from a paragraph element.

Every HTML page uses these three tags:

  • <html> tag is the root element that defines the whole HTML document.
  • <head> tag holds meta information such as the page’s title and charset.
  • <body> tag encloses all the content that appears on the page.
Paragraphs

The <p> HTML element represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.

Images

The <img> HTML element embeds an image into the document. You must always specify a src attribute to indicate the source of an image and an alt attribute to describe the image. An image is not technically inserted into a document; images are linked to documents. The <img> element creates a holding space for the referenced image.

Lists

The <ul> HTML element represents an unordered list of items, typically rendered as a bulleted list.

The <ol> HTML element represents an ordered list of items — typically rendered as a numbered list.

The <li> HTML element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.

Tables

The <table> HTML element represents tabular data — that is, information expressed via a two-dimensional table comprised of rows and columns of cells containing data.

Each cell may contain data as well as other HTML elements, including tables, lists, images, etc.

Forms

The <form> HTML element represents a document section that contains interactive controls to submit information to a web server.

Each control is represented by an <input> element. The controls include buttons, checkboxes, radio buttons, text fields, etc.

Audio

The <audio> HTML element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.

Video

The <video> HTML element is used to show video content on a web page. It may contain one or more video sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.

iFrames

The <iframe> HTML element represents a nested browsing context, effectively embedding another HTML page into the current page. In HTML 4, a document may contain a head and a body, or a head and a frameset, but not both a body and a frameset. Beginning with HTML5, however, it is possible to place a <body> element inside a <frameset> element.

  • All the documentation is this page is from MDN