HTML (HyperText Markup Language) is the foundational language used to design and structure content on the web. It's not a programming language but a markup language that defines how content should appear in a web browser.
HTML provides the basic building blocks for web pages by organizing text, images, links, and other elements into a readable format. It works through a system of tags (or elements) that help browsers understand the layout and purpose of the content.
Each HTML element acts as a label that tells the browser how to present specific parts of the content β
Example:
<!DOCTYPE html> <html> <head> <title>My First Web Page</title> </head> <body> <h1>Welcome to My Website</h1> <p>This is my very first HTML page.</p> </body> </html>
An HTML Element is the building block of a web page. It defines how content will appear and behave on the page.
An HTML element typically consists of:
Basic Structure:
<tagname> Content goes here </tagname>
<p>This is a paragraph.</p>