Getting start with HTML

Hello everyone, Today I learned about HTML.

Before diving into HTML, we should learn about why we write our first program to print "Hello World." Here's why "Hello World" is a simple program that outputs the string "Hello, World!" to the screen. It helps illustrate the most basic syntax and structure of the language, including how to print text to the screen, and serves as a starting point for more complex projects.

What Is HTML?

HTML stands for (Hypertext Markup Language). It is a standard markup language used for creating web pages and web applications. It provides a way to structure and display content on the Internet. HTML consists of a set of tags and attributes that define the structure of a web page, such as headings, paragraphs, images, and links. HTML is the basic and most important building block of web development. HTML is used by front-end developers to create visually appealing and user-friendly websites and web applications.

What are elements, tags, and attributes?

Elements: An HTML element is a component of a web page, such as text, images, links, etc., that has a specific meaning and function.

Tags: A tag is a code written in angle brackets that define the type of element, such as a heading, a paragraph, an image, etc.

Attributes: An attribute provides additional information about the element, such as size, color, location, etc. Attributes are added to a tag and are specified within the tag in the form of name-value pairs.

Difference between elements, tags, and attributes?

Elements define the content of a web page, tags define the type of element, and attributes provide extra information about the element.

What are entities in HTML?
Entities are reserved keywords or characters such as less-than ( < ), greater-than ( > ), ampersand ( & ). So to Display them, we use a special small piece of code “ &; ” in between, and we add the characters that we have to print, such as “ < ” It will print a less-than symbol.

Why do we use comments and how to do it in HTML?

We explain the code using comments, which improve readability and comprehension. Others can read your code more easily and comprehend what is happening thanks to this.

In HTML we use “ <– !–> “ to comment.