- HTML basic structure
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
- HTML headings
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
- HTML paragraph
<p>This is a paragraph.</p>
- HTML line break
<p>This is the first line.<br>This is the second line.</p>
- HTML link
<a href="https://www.example.com">Link</a>
- HTML image
<img src="image.jpg" alt="Description">
- HTML list (unordered)
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
- HTML list (ordered)
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
- HTML table
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
- HTML form
<form action="/submit" method="post">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit" value="Submit">
</form>
- HTML div
<div>This is a division.</div>
- HTML span
<p>This is a <span>span</span> element.</p>
- HTML input (text)
<input type="text" name="name">
- HTML input (password)
<input type="password" name="password">
- HTML input (checkbox)
<input type="checkbox" name="agree">
- HTML input (radio)
<input type="radio" name="gender" value="male"> Male
<input type="radio" name="gender" value="female"> Female
- HTML input (submit button)
<input type="submit" value="Submit">
- HTML input (reset button)
<input type="reset" value="Reset">
- HTML input (file)
<input type="file" name="file">
- HTML input (number)
<input type="number" name="quantity" min="1" max="5">
- HTML input (date)
<input type="date" name="date">
- HTML input (email)
<input type="email" name="email">
- HTML input (color)
<input type="color" name="color">
- HTML input (range)
<input type="range" name="range" min="0" max="100">
- HTML input (search)
<input type="search" name="search">
- HTML input (tel)
<input type="tel" name="phone">
- HTML input (url)
<input type="url" name="website">
- HTML textarea
<textarea name="message" rows="4" cols="50">
Enter your message here.
</textarea>
- HTML select
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
- HTML button
<button>Click Me</button>
- HTML comment
<!-- This is a comment -->
- HTML meta tag (charset)
<meta charset="UTF-8">
- HTML meta tag (viewport)
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- HTML link tag (stylesheet)
<link rel="stylesheet" href="styles.css">
- HTML script tag (external)
<script src="script.js"></script>
- HTML script tag (internal)
<script>
// JavaScript code here
</script>
- HTML div with class
<div class="container">
</div>
- HTML div with id
<div id="header">
</div>
- HTML span with style attribute
<p>This is a <span style="color: blue;">blue</span> word.</p>
- HTML image with width and height attributes
<img src="image.jpg" alt="Description" width="200" height="150">
- HTML anchor tag with target attribute
<a href="https://www.example.com" target="_blank">Link</a>
- HTML ordered list with type attribute
<ol type="I">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
- HTML unordered list with start attribute
<ul start="3">
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
- HTML table with border attribute
<table border="1">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
- HTML table with colspan and rowspan attributes
<table border="1">
<tr>
<td colspan="2">Header</td>
</tr>
<tr>
<td rowspan="2">Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
</tr>
</table>
- HTML table with caption
<table border="1">
<caption>Table Caption</caption>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
- HTML form with action and method attributes
<form action="/submit" method="post">
</form>
- HTML input (checkbox) with checked attribute
<input type="checkbox" name="subscribe" checked>
- HTML input (radio) with checked attribute
<input type="radio" name="gender" value="male" checked> Male
<input type="radio" name="gender" value="female"> Female
- HTML input (text) with placeholder attribute
<input type="text" name="username" placeholder="Enter your username">
- HTML input (password) with maxlength attribute
<input type="password" name="password" maxlength="10">
- HTML input (number) with min and max attributes
<input type="number" name="age" min="18" max="100">
- HTML input (date) with required attribute
<input type="date" name="birthdate" required>
- HTML input (email) with pattern attribute
<input type="email" name="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
- HTML input (file) with accept attribute
<input type="file" name="avatar" accept="image/*">
- HTML select with multiple attribute
<select name="fruits" multiple>
<option value="apple">Apple</option>
<option value="banana">Banana</option>
<option value="orange">Orange</option>
</select>
- HTML textarea with rows and cols attributes
<textarea name="message" rows="4" cols="50">
Enter your message here.
</textarea>
- HTML button with type attribute
<button type="submit">Submit</button>
- HTML comment
<!-- This is a comment -->