What is HTML?

HTML stands for Hypertext Markup Language. It is a standard markup language for creating web pages. It is basic skeleton of a web page. When a user wants to create and structure sections, paragraphs and heading for web pages and applications, they can do it with the help of HTML. It would be best if you didn’t confuse HTML with a programming language. The main reason for that is HTML can’t create dynamic functionally. HTML is a program that makes it possible for users to organize and format documents.

HTML STRUCTURE:

https://prod-files-secure.s3.us-west-2.amazonaws.com/e3ee1e39-dee2-4516-8876-1d61c6490b25/706b3842-b8c7-4d88-a9f8-7a59aa442782/HTML_fac1293b48354a7b82f4659d7aac7bbaUntitled.png

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>OSS Spark 2024</title>
</head>
<body>
  
  <h1>Welcome to the first class</h1>
  <p>This is a paragraph.</p>

</body>
</html>

Output:

Screenshot 2024-07-28 004823.png

HTML Elements:

HTML is made of elements. These elements are responsible for creating web pages and define content in that webpage.

An HTML element is defined by a opening tag, attributes, content between them, and an end tag.

html-elements-diagram.webp

HTML Attributes:

HTML attributes provide additional information about HTML elements.

Examples:

**1]**The <a>tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to.

**2]**The srcattribute specifies the path to the image to be displayed.

HTML Heading & Paragraphs: