HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on web pages.
Think of HTML as the skeleton of a website. It tells the browser what elements to display — headings, paragraphs, images, links, and more.
HTML is a markup language, not a programming language. It uses tags to label pieces of content.
Every website uses HTML. It works with CSS (styling) and JavaScript (behavior).
.html extension.| Term | Meaning |
|---|---|
| Tag | HTML command in angle brackets, e.g., <p> |
| Element | Opening tag + content + closing tag |
| Attribute | Extra info added to a tag, e.g., href |
<p> not <P><!DOCTYPE html>Every HTML page follows this structure:
Parts explained:
<!DOCTYPE html> — Tells the browser this is HTML5.<html> — Root element wrapping everything.<head> — Hidden info (title, meta tags).<title> — Text shown in the browser tab.<body> — Everything visible on the page.Most tags need a closing tag with a / slash.
These tags don't need a closing tag.
A simple page with a heading and paragraph.
This is my first web page.
Using headings to organize content into sections.
Hi! My name is John.
I enjoy reading and coding.
I want to become a web developer.
Adding a bullet list and a clickable link.
Write HTML code below and see the result instantly. Click Run Code to update the preview.
<h1> to your name.<p>I am learning HTML.</p><br> between two lines.<title>.Create a page with the title "My Homepage" and a heading that says "Welcome to My Site".
Write a page with two paragraphs: "I love coding." and "HTML is fun to learn."
Create a page with h1, h2, and h3 headings with different text.
Write a page with a list of 5 fruits using <ul> and <li>.
Create a link to your favorite website with the text "Click here to visit my favorite site".
Create a page that introduces yourself to the world.
<!DOCTYPE html>, <html>, <head>, <body><title><h1> heading<p> paragraphs<ul> or <ol>)<a> linkYou learned:
<!DOCTYPE html>, <html>, <head>, and <body>.h1–h6), paragraphs (p), lists (ul/li), and links (a) are basic building blocks.HTML Editors — Learn the tools to write HTML code efficiently.