Skip to content
On this page

HTML

HTML (Hypertext Markup Language) is a standard markup language used to create web pages. It provides a means to describe the structure and content of a web document, including headings, paragraphs, lists, links, images, and more. The content and structure of a web page is defined using HTML tags and elements, which are interpreted by web browsers to display the page as intended. HTML is the foundation of most websites and provides a basic structure for web developers to build upon with styles and scripts.

Basic HTML Elements

ElementDescriptionMore
<html>The root element that contains all other elements on a page.right-alignedExample
<head>Contains information about the document, such as the title and meta data.Example
<title>Specifies the title of the document, which is displayed in the browser's title bar.Example
<body>Contains the main content of the documentExample
<H1 to H6>Defines headings of different levelsExample
<div>Defines headings of different levelsExample
<span>Defines headings of different levelsExample
<p>Defines a paragraph.Example
<a>Defines a hyperlink, which allows users to navigate to other pages or web resources..Example
<img>Displays an image.example

Body Example

header example

div-span example

HTML Box example