HTML CSS JAVASCRIPT PYTHON JAVA PHP BOOTSTRAP

HTML Introduction

HTML stands for Hyper Text Markup Language. It is the standard language used to create and structure web pages. Every website you see on the internet is built using HTML.

What is HTML?

Note: HTML is not a programming language. It does not perform logic or calculations. It is used only to structure content.

Why Learn HTML?

HTML Page Structure

A basic HTML document has a fixed structure that tells the browser how to display the content.

Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title> 
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>
Try this code

Example Explained

What is an HTML Element?

An HTML element consists of a start tag, content, and an end tag.

General Syntax

<tagname> Content goes here </tagname>

Examples

<h1>My First Heading</h1> <p>My first paragraph.</p>

HTML Element Structure

Start Tag Content End Tag
<h1> My First Heading </h1>
<p> My first paragraph </p>
<br> none none
Note: Some HTML elements do not have closing tags. These are called empty elements, such as <br> and <img>.