DEV Community

bblackwind
bblackwind

Posted on

Day 6 of My Web Dev Journey โ€“ Exploring HTML Tags

Hello everyone ๐Ÿ‘‹

Day 6 was all about getting hands-on with HTML basics.
Until now, I only knew that HTML gives structure to a website โ€” but today, I actually played with tags, code, and outputs. And honestlyโ€ฆ it was fun! ๐Ÿ˜„


๐Ÿง  First Things First โ€” HTML Is Not a Programming Language

Letโ€™s clear this right now ๐Ÿ‘‰ HTML is NOT a programming language.
If someone calls it that, feel free to (politely ๐Ÿ˜…) correct them.

HTML stands for HyperText Markup Language, and thatโ€™s why it uses angle brackets < > โ€” itโ€™s used to mark up content, not program logic.


๐Ÿงฑ What Is HTML Boilerplate?

Every HTML file starts with a boilerplate โ€” basically the skeleton of the page.

Hereโ€™s what it includes:

  • <!DOCTYPE html> โ†’ tells the browser this is an HTML5 document.
  • <html> โ†’ wraps the entire page.
  • Inside, we have <head> and <body>.

๐Ÿ‘‰ Quick VS Code Shortcut:
Type Shift + ! and hit Enter/Tab โ†’ Boom ๐Ÿ’ฅ a full HTML boilerplate appears automatically! (No need to write it manually.)

๐Ÿ“ธ Press enter or click to view image in full size


๐Ÿงฉ <head> vs <body>

This confused me earlier, but now itโ€™s crystal clear ๐Ÿ‘‡

  • <head> โ†’ contains information about the page like title, metadata, SEO keywords, stylesheets, etc.
  • <body> โ†’ contains the actual content you see on the screen โ€” text, images, videos, links, etc.

๐Ÿ“ธ Press enter or click to view image in full size

๐Ÿ’ก Bonus Insight:
This is where SEO starts โ€” proper <title>, <meta> descriptions, and structured content inside <head> help your page rank higher on Google.


๐Ÿท๏ธ Heading Tags <h1> โ€“ <h6>

Headings are like newspaper titles โ€” they grab attention and organize your content.

  • <h1> โ†’ biggest, used for the main title (use only one per page for SEO).
  • <h2> to <h6> โ†’ smaller subheadings.

๐Ÿ‘‰ Pro Tip:
Using semantic headings helps both users and search engines understand your content hierarchy.

๐Ÿ“ธ Press enter or click to view image in full size


โœ๏ธ Paragraphs & Text Formatting

Today I also played with some basic text tags:

<p> โ†’ defines a paragraph of text.</p>  
<strong> โ†’ makes text important (search engines treat it as strong emphasis).</strong>  
<b> โ†’ just bold styling, no semantic meaning.</b>  
<i> โ†’ italic text.</i>  
<br> โ†’ adds a line break.  
<sup> โ†’ superscript (xยฒ).</sup>  
<sub> โ†’ subscript (Hโ‚‚O).</sub>  
Enter fullscreen mode Exit fullscreen mode

Simple but powerful tools to make text readable, structured, and meaningful.


Thatโ€™s it for Day 6 of my web dev journey ๐Ÿš€
Tomorrow, Iโ€™ll move deeper into HTML elements and maybe start CSS basics.

Until then, happy coding! ๐Ÿ’ป

100DaysOfCode #WebDevelopment #HTML #Frontend #CodingJourney #DevCommunity

Top comments (0)