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 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.
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.
The <a>
HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
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.
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.