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?
 





 
    
Top comments (0)