Skip to main content

Posts

Showing posts from November 16, 2025
All Important HTML Tags with Examples (Beginner Guide) HTML has more than 100 tags, but only a few are used in regular web development. This post explains the most commonly used HTML tags, along with simple examples, so beginners can quickly understand how they work. 1. <!DOCTYPE> Declares the document type as HTML5. <!DOCTYPE html> 2. <html> Main container of the entire webpage. <html> ... </html> 3. <head> Contains information for the browser, not visible to users. 4. <title> Defines the page title shown in browser tab. <title>My Website</title> 5. <body> Contains all visible content on the webpage. Text Formatting Tags 6. <h1> to <h6> Headings from largest (h1) to smallest (h6). <h1>Main Heading</h1> <h2>Sub Heading</h2> 7. <p> Defines a paragraph. 8. <br> Line break. 9. <b>...
HTML Page Structure Explained (Beginner Friendly) In the previous lesson, we learned what HTML is. Now let’s understand how an HTML page is structured. Every webpage follows a basic structure made of important HTML tags. HTML structure = Skeleton of a webpage. Basic HTML Page Structure Here is the simplest form of a complete HTML page: <!DOCTYPE html> <html> <head> <title>My First Webpage</title> </head> <body> <h1>Hello World!</h1> <p>Welcome to my webpage.</p> </body> </html> Let’s understand each part 1. <!DOCTYPE html> This tells the browser that the document is an HTML5 webpage. It is always written at the top. 2. <html> ... </html> This is the root tag. Everything inside the webpage is written between these tags. 3. <head> ... </head> The head section contains information about the ...
What is HTML? A Beginner-Friendly Explanation If you want to become a web developer, HTML is the first language you should learn. It is the foundation of every website on the internet. In simple words: HTML (HyperText Markup Language) is used to create the structure and content of a webpage. Why HTML is important? Websites cannot exist without HTML It is simple and beginner-friendly Used with CSS and JavaScript Works on all browsers How does HTML work? HTML is made of tags . Tags tell the browser what type of content is being shown. Example of an HTML tag: <p>This is a paragraph.</p> Here: <p> is the opening tag </p> is the closing tag The text inside is the content Basic HTML Page Example Below is a simple webpage example you can try: <!DOCTYPE html> <html> <head> <title>My First Webpage</title> </head> <body...