DEV Community

bblackwind
bblackwind

Posted on

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" />
Enter fullscreen mode Exit fullscreen mode

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>
Enter fullscreen mode Exit fullscreen mode

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>
Enter fullscreen mode Exit fullscreen mode

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>
Enter fullscreen mode Exit fullscreen mode

๐Ÿงฉ 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>
Enter fullscreen mode Exit fullscreen mode

๐Ÿช„ 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" />
Enter fullscreen mode Exit fullscreen mode

โš ๏ธ 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

Top comments (0)