HTML Basic Commands
1. Document Structure
Tag Description
<!DOCTYPE html> Defines the document type (HTML5).
<html> Root element of an HTML page.
<head> Contains page metadata.
<title> Sets the page title (shown in browser tab).
<body> Contains visible page content.
2. Text and Headings
Tag Description
<h1> to <h6> Defines headings from largest to smallest.
<p> Defines a paragraph.
<br> Line break.
<hr> Horizontal line.
3. Text Formatting
Tag Description
<b> Bold text.
<i> Italic text.
<u> Underlined text.
<strong> Important (bold) text.
<em> Emphasized (italic) text.
4. Links and Images
Tag Description
<a> Defines a hyperlink.
<img> Embeds an image (requires src attribute).
5. Lists
Tag Description
<ul> Unordered (bulleted) list.
<ol> Ordered (numbered) list.
<li> List item.