HTML_Colourful_Presentation
HTML_Colourful_Presentation
• <!DOCTYPE html>
• <html>
• <head>
• <title>My Page</title>
• </head>
• <body>
• Hello, World!
HTML Tags & Elements
• Common tags:
• - Headings: <h1> to <h6>
• - Paragraphs: <p>
• - Links: <a href='url'>Click Here</a>
Adding Images & Multimedia
• Adding media elements:
• - Images: <img src='image.jpg'
alt='Description'>
• - Videos: <video src='video.mp4' controls>
• - Audio: <audio src='audio.mp3' controls>
Tables & Forms
• Tables: Organize data
• <form> - Create interactive forms
• <input>, <textarea>, <button>
Semantic HTML
• Semantic elements help structure content
meaningfully:
• <header>, <nav>, <article>, <footer>
CSS with HTML
• CSS enhances HTML styling:
• - Inline: <p style='color:red;'>Text</p>
• - Internal: <style> p { color: red; } </style>
• - External: <link rel='stylesheet'
href='styles.css'>
HTML5 Features
• HTML5 introduces:
• - New elements: <section>, <article>,
<canvas>
• - APIs: Geolocation, Local Storage
Best Practices
• 1. Use semantic HTML
• 2. Optimize images
• 3. Ensure accessibility
Interactive Hands-on Example
• Let's build a simple webpage together!