HTML is the foundation of every single website on the internet. Whether you want to build a simple blog, a complex web application, or understand how browsers display information, HTML is the mandatory first step.
HTML (HyperText Markup Language) is not a programming language. It is a markup language that defines the structure of your content. Think of it like the wooden frame of a house.
HTML uses tags like <p> (opening) and </p> (closing) to wrap content.
Tags can have extra info. E.g., <img src='cat.jpg'> uses the 'src' attribute.
You can put tags inside other tags, just like Russian nesting dolls.
A common mistake is forgetting the closing tag (e.g., writing <p>Hello without </p>). Another is nesting tags incorrectly. Tags must close in the reverse order they were opened.
Type HTML on the left and see it instantly render on the right!
This is my first web page.
Which tag is correct?
HTML was invented in 1989 by Tim Berners-Lee to share scientific documents. Originally, it only had 18 tags! Today, HTML5 provides over 100 semantic tags like <article> and <nav> to give meaning to the structure of web pages.