HTML_Notes_for_Beginners (1)
HTML_Notes_for_Beginners (1)
What is HTML?
HTML (HyperText Markup Language) is the standard language used to create web pages. It tells the browser how to
display text, images, links, and other content.
Lists:
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
<ol>
<li>First</li>
<li>Second</li>
</ol>
Layout Tags:
- <div>: Block-level container
- <span>: Inline container
- <header>, <footer>, <nav>, <section>: Semantic page structure
Forms:
<form>
<label>Name:</label>
<input type="text" name="username">
<br>
HTML Notes for Beginners
<label>Message:</label>
<textarea></textarea>
<br>
<button type="submit">Submit</button>
</form>
Important Tips:
- Always close your tags (except for self-closing tags like <br> and <img>).
- Use proper indentation for readability.
- Use semantic tags for better structure and SEO.