■ HTML Notes
1. Introduction to HTML
- HTML → HyperText Markup Language
- Used to create webpages.
- Not a programming language → it's a markup language.
- Structure of a webpage is defined using tags.
2. Basic Structure of HTML Document
<!DOCTYPE html> <html> <head> <title>My First Page</title> </head> <body> <h1>Hello,
World!</h1> <p>This is my first webpage.</p> </body> </html>
3. Common HTML Tags
- Headings: <h1> to <h6>
- Paragraph: <p>
- Line Break: <br>
- Horizontal Line: <hr>
- Formatting: <b>, <i>, <u>, <mark>, <sup>, <sub>
4. Links & Images
- Link: <a href="[Link] Example</a>
- Image: <img src="[Link]" alt="Description" width="200" height="150">
5. Lists
- Ordered List (<ol>)
- Unordered List (<ul>)
- Description List (<dl>)
6. Tables
<table border="1"> <tr> <th>Name</th> <th>Age</th> </tr> <tr> <td>Raj</td> <td>20</td> </tr>
</table>
7. Forms
<form> Name: <input type="text"><br> Password: <input type="password"><br> Gender: <input
type="radio" name="g"> Male <input type="radio" name="g"> Female<br> Hobbies: <input
type="checkbox"> Reading <input type="checkbox"> Music<br> <input type="submit"
value="Submit"> </form>
8. Multimedia
<video controls width="300"> <source src="video.mp4" type="video/mp4"> </video> <audio
controls> <source src="audio.mp3" type="audio/mpeg"> </audio>
9. Semantic Tags (HTML5)
- <header> → Top section
- <nav> → Navigation bar
- <section> → Content section
- <article> → Independent article
- <aside> → Sidebar info
- <footer> → Bottom section
10. Extra Notes
- HTML is case-insensitive (<p> same as <P>).
- Always close tags properly.
- Use indentation for readability.