Basic HTML tags
Text Tags
- Paragraph <p>: For the main text content.
- Emphasis (<em>): To highlight words or phrases with emphasis (shown in italics).
- Strong (<strong>): To highlight words or phrases with stronger emphasis (shown in bold).
List Tags
- Unordered Lists (<ul> and <li>): For lists of items without a specific order.
- Ordered Lists (<ol> and <li>): For lists of items with a specific order.
Image Tags
Images (<img>): To insert images into your page.
Link Tags
Links (<a>): To create links to other pages or resources.
Sectioning Tags
Division (<div>): To create generic sections on your page.
Form Tags
- Form (
<form>): To create data entry forms. - Input (
<input>): To create text input fields, buttons, etc. - Label (
<label>): To associate a label with an input field. - Textarea (
<textarea>): To create multi-line text input fields.
Example
<p>This is a paragraph of important text for our marketing campaign.</p>
<p>We must emphasize the <em>quality</em> of our product.</p>
<p>This is a crucial <strong>call to action</strong>.</p>
<ul>
<li>Benefit 1</li>
<li>Benefit 2</li>
<li>Benefit 3</li>
</ul>
<ol>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ol>
<img src="path/to/my/image.jpg" alt="Image description">
<a href="https://www.example.com">Visit our website</a>
<div>
<h2>Section title</h2>
<p>Section content.</p>
</div>
<form action="/submit-form" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4" cols="50"></textarea><br><br>
<input type="submit" value="Submit">
</form>Result
This is a paragraph of important text for our marketing campaign.
We must emphasize the quality of our product.
This is a crucial call to action.
- Benefit 1
- Benefit 2
- Benefit 3
- Step 1
- Step 2
- Step 3
Visit our website
Section title
Section content.
