Day 7 β Exploring HTML Tags (Images, Videos, Audio, Forms & More)
Hey everyone π
Welcome back to Day 7 of my web development journey!
Today was all about exploring some super-interesting and visual parts of HTML β from adding images and videos to creating forms and understanding meta tags.
Letβs dive right in! π
πΌοΈ 1. Image Tag <img>
I started with the image tag β one of the simplest yet most used HTML tags.
Itβs used to display images on a web page.
Syntax:
<img src="image.jpg" alt="Beautiful mountain view" width="400" height="250" />
Attributes:
-
src: Image source or file path -
alt: Alternative text (important for SEO and accessibility) -
width&height: Define image size
πΈ [Insert Screenshot Demo Here]
π₯ 2. Video Tag <video>
Next up, I played with the video tag β and this oneβs quite fun!
It helps embed videos directly into a webpage.
Syntax:
<video src="demo.mp4" controls autoplay muted height="300"></video>
Key Attributes:
-
controls: Adds play/pause buttons -
autoplay: Starts playing automatically -
muted: Keeps the video silent (helps when using autoplay) -
height: Adjusts video height
π¬ [Demo Screenshot: Embedded Video Example]
π§ 3. Audio Tag <audio>
Then I tried the audio tag, which lets you embed sounds or music directly in your page.
Syntax:
<audio src="sound.mp3" controls muted></audio>
Attributes:
-
controls: Lets users play/pause the audio -
muted: Useful to prevent sudden loud playback (better UX)
π [Screenshot: Audio Player Example]
π§Ύ 4. Forms & Input Fields
Now comes one of the most powerful parts of HTML β forms!
Forms are used to collect user input such as login details, feedback, or survey responses.
I learned about various input types and their uses π
<form>
<input type="text" placeholder="Enter your name" />
<input type="email" placeholder="Enter your email" />
<input type="radio" name="gender" value="male" /> Male
<input type="radio" name="gender" value="female" /> Female
<input type="submit" value="Submit" />
</form>
π§© Common Input Types:
-
text,email,password,date checkbox-
radio(used for single-choice options like gender) -
color,week,month
π‘ I also learned about the placeholder attribute β it guides users about what to type inside input boxes.
πΈ [Form Screenshot Demo]
πͺΆ 5. <details> and <summary> Tag
This combo is really interesting β perfect for collapsible content like FAQs or hidden notes.
Example:
<details>
<summary>Click to read more</summary>
<p>This is hidden content that appears when you click above.</p>
</details>
πͺ Simple, elegant, and great for improving user experience.
π 6. Meta Tags
Lastly, I explored meta tags, which go inside the <head> section of an HTML document.
They provide important information about your webpage β like encoding, viewport settings, and SEO details.
Example:
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Learning HTML basics on my dev journey" />
<meta name="keywords" content="HTML, Web development, Learn coding" />
β οΈ Fun fact:
Google no longer prioritizes meta keywords because they were often misused β like people adding irrelevant or adult words just to appear in unrelated searches. (Imagine searching βtoysβ and finding βsex toysβ β awkward π
)
ποΈ Final Thoughts
Today was super productive!
I got a much better grip on HTMLβs visual and interactive elements.
From embedding multimedia π₯ to creating forms π§Ύ and understanding meta tags π β it finally feels like Iβm giving life to my web pages.
Canβt wait for Day 8, where Iβll dive into CSS styling and make everything look amazing! π¨
π¬ Question of the Day:
Which HTML tag do you find most fun to use β image, video, or forms?
100DaysOfCode #HTML #WebDevelopment #Frontend #CodingJourney #DevCommunity #LearnCoding
HI-FI News
via DEV Community https://dev.to
October 21, 2025 at 04:38PM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT












