Introduction to HTML
• HTML (HyperText Markup Language) is the
standard language for creating web pages.
• It describes the structure of a webpage using
elements and tags.
Basic Structure of an HTML
Document
• <!DOCTYPE html>
• <html>
• <head>
• <title>My Page</title>
• </head>
• <body>
• Hello, World!
• </body>
• </html>
Text Formatting & Links
• Headings: <h1> to <h6>
• Paragraphs: <p>
• Lists: <ul>, <ol>, <li>
• Links: <a href='url'>Click Here</a>
Images & Multimedia
• Images: <img src='image.jpg'
alt='Description'>
• Videos: <video src='video.mp4' controls>
• Audio: <audio src='audio.mp3' controls>
Tables & Forms
• Tables: <table>, <tr>, <td>
• Forms: <form>, <input>, <textarea>, <button>
Semantic HTML
• Semantic elements improve accessibility and
SEO.
• Examples: <header>, <nav>, <article>,
<footer>
CSS with HTML
• Inline: <p style='color:red;'>Text</p>
• Internal: <style> p { color: red; } </style>
• External: <link rel='stylesheet'
href='styles.css'>
HTML5 Features
• New elements: <section>, <article>, <nav>,
<canvas>
• APIs: Geolocation, Local Storage, Drag & Drop
Best Practices
• Use semantic HTML
• Optimize images for performance
• Ensure accessibility (alt text, ARIA roles)
Hands-on Example
• Live demo: Create a basic HTML webpage with
headings, text, images, and a form.