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>
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! ๐ป
Top comments (0)