HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. It uses a system of tags to define elements like headings, paragraphs, links, images, and more.
These tags are placed inside angle brackets (< >
), and they tell the browser how to display the content.
Key Components of HTML:
<!DOCTYPE html>
: Declares the document type and version of HTML.<html>
: The root element that contains all the HTML content.<head>
: Contains meta-information, such as the title of the document.<title>
: Sets the title of the web page (visible on the browser tab).<body>
: Contains the actual content of the webpage, like text, images, and links.<h1>
: A heading element. (There are different levels of headings, from<h1>
to<h6>
).<p>
: Defines a paragraph.<a>
: Defines a hyperlink. Thehref
attribute specifies the link destination.<img>
: Embeds an image. Thesrc
attribute points to the image location, andalt
provides alternative text.