HTML (HyperText Markup Language) is the standard language used to create webpages. It tells the browser how to display text, images, links, and other content on a webpage.
HTML is not a programming language; it's a markup language. It uses tags to describe the structure of content.
Basic Structure of an HTML Page
<!DOCTYPE html>
Payilagam Official Webpage
Welcome to My Website
This is my first webpage using HTML!
<!DOCTYPE html>: Declares that this is an HTML5 document.
: The root element of an HTML page.
: Contains meta-information like the title. : Contains the visible content on the pageTag | Description |
---|---|
<h1> to <h6>
|
Headings (h1 is the largest, h6 is the smallest) |
<p> |
Paragraph |
<a href=""> |
Anchor (link to other pages or websites) |
<img src=""> |
Displays an image |
<ul> , <ol> , <li>
|
Lists: unordered, ordered, and list items |
<div> |
A container used to group elements |
<br> |
Line break |
HTTP vs HTTPS
When visiting websites, you may notice URLs starting with http:// or https://. Let’s understand the difference:
HTTP (HyperText Transfer Protocol)
Protocol used to transfer data over the web.
Data is not encrypted, which means it's less secure.
Suitable for non-sensitive browsing like reading blogs or news.
HTTPS (HTTP Secure)
The secure version of HTTP.
Uses SSL/TLS encryption to protect data between your browser and the server.
Ensures data privacy, integrity, and security.
Indicated by a padlock icon 🔒 in the browser address bar.
🔐 Always prefer HTTPS for logging in, online payments, or sensitive transactions.
What Happens When You Visit an HTML Page?
You enter a URL (like https://example.com).
The browser sends an HTTP/HTTPS request to the web server.
The server responds with an HTML page.
The browser renders the HTML into visual content.
Official HTML Reference :
1 : https://www.w3.org/TR/html/
Top comments (0)