Day 7 β€” Exploring HTML Tags (Images, Videos, Audio, Forms & More)

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