1.
What HTML Is
HTML stands for HyperText Markup Language. It is the standard
language used to create webpages. Instead of being a programming
language, HTML is a markup language, which means it uses tags to
organize content so browsers know how to display text, images, links,
videos, and layout structures.
HTML forms the skeleton of any webpage. Once the structure is set,
CSS adds style and JavaScript adds behavior. But without HTML, none of
these can exist.
Browsers like Chrome, Firefox, and Edge read HTML documents and
display them visually on your screen.
2. Basic Structure of an HTML Document
Every HTML file starts with a basic layout. This foundation helps the
browser understand what the page contains.
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
Explanation
<!DOCTYPE html>
Tells the browser you’re using modern HTML5.
<html>...</html>
The root element that wraps the entire page.
<head>...</head>
Holds metadata—information about the page (title, links to CSS,
scripts, etc.).
<title>
Controls the text shown on the browser tab.
<body>
Contains everything the visitor sees: text, images, buttons, links,
etc.
3. Common HTML Tags
HTML uses tags, which are written inside < >. Most tags have an
opening and closing version.
Text Tags
<h1> to <h6>: Headings
<p>: Paragraph
<b>, <strong>: Bold text
<i>, <em>: Italic or emphasized text
<br>: Line break
<hr>: Horizontal line
<h1>Welcome</h1>
<p>This is a simple paragraph.</p>