Basic HTML Guide
HTML (HyperText Markup Language) is the standard language used to create webpages. It structures content such
as headings, paragraphs, images, links, tables, and forms.
Basic HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a paragraph.</p>
</body>
</html>
Headings
<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Smaller Heading</h3>
Paragraphs
<p>This is a paragraph.</p>
Links
<a href="[Link] Example</a>
Images
<img src="[Link]" alt="Sample Image" width="300">
Lists
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ol>
<li>First</li>
<li>Second</li>
</ol>
Tables
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>20</td>
</tr>
</table>
Forms
<form>
<label>Name:</label>
<input type="text">
<input type="submit" value="Send">
</form>
Buttons
<button>Click Me</button>
HTML Comments
<!-- This is a comment -->
Quick HTML Tag Summary
HTML Tag Purpose
<h1> to <h6> Headings
<p> Paragraph
<a> Hyperlink
<img> Image
<ul> / <ol> Lists
<table> Table
<form> User Input Form