What is HTML ?

HTML stands for Hypertext Markup Language, and it is the standard language used to create web pages. It is a markup language that uses a combination of tags and attributes to define the structure and content of a web page. HTML tags are used to define elements such as headings, paragraphs, images, links, and more, and they tell the web browser how to display the content of the page. HTML is the backbone of the World Wide Web and is essential for creating and publishing content on the internet.

<!DOCTYPE html>

<html>

<head>

<title>My Web Page</title>

</head>

<body>

<h1>Welcome to my Web Page</h1>

<p>This is an example of a paragraph in HTML.</p>

<img src="https://www.example.com/image.jpg" alt="Example Image">

</body>

</html>

In this example, the HTML code starts with a declaration that specifies the type of document and version of HTML being used. The <html> element is the root element of the document, and it contains the <head> and <body> sections.

The <head> section contains information about the document such as the title of the page, which is displayed in the browser's title bar. The <body> section contains the actual content of the page.

The <h1> tag defines a heading, which is the largest and most important heading on the page. The <p> tag defines a paragraph of text. The <img> tag displays an image on the page and includes the source of the image and an alternative text description in case the image cannot be displayed.