HTML Advanced Notes
1. Semantic Tags (HTML5):
<header> - Top section of page
<footer> - Bottom section
<section> - Page section
<article> - Independent content
<nav> - Navigation links
2. Div and Span:
<div> - Block level container
<span> - Inline container
3. Input Types:
<input type="text">
<input type="email">
<input type="date">
<input type="radio">
<input type="checkbox">
<input type="file">
4. Audio and Video:
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
</audio>
<video width="300" controls>
<source src="video.mp4" type="video/mp4">
</video>
5. Meta Tag:
<meta charset="UTF-8">
<meta name="description" content="HTML tutorial">
6. Iframe:
<iframe src="[Link]
7. HTML Entities:
< = Less than (<)
> = Greater than (>)
& = & symbol
= Space
8. Form Structure (Proper Example):
<form action="[Link]" method="post">
Name: <input type="text" name="username"><br>
Email: <input type="email" name="email"><br>
<input type="submit" value="Submit">
</form>
9. Important Points:
- Semantic tags improve SEO.
- Always use alt attribute in images.
- Use proper indentation for clean code.
- HTML5 is latest version.