HTML is not a programming language, denoting it does not have the ability to create dynamic functionality. As an alternative, it makes it possible to organize and format documents, comparably like Microsoft Word.
HTML stands for Hypertext Markup Language and it permits users to create and structure sections, paragraphs, headings, links, and block-quotes for web pages and applications.
When working with HTML, simple code structures (tags and attributes) to mark up a website page are used. An example being the creation of a paragraph by placing the enclosed text within a starting <p> and closing </p> tags.
Web browsers receive HTML documents from a web server or from local storage then render the documents into multimedia web pages.
An example is:
<h1>Heading of website</h1>
<p>First paragraph used in site</p>
So, what does it mean?
<!DOCTYPE html> declaration defines this document as an HTML5 document.
<html> element is the root part of an HTML page.
<head> portion contains meta information about the HTML page.
<title> section specifies a title for the HTML page - used to name the 'Title' of your page.
<body> element defines the document's body and is a container for all the visible contents - this is where you put your headings, paragraphs, images, hyperlinks, tables, and lists.
<h1> part defines a large heading.
<p> section defines a paragraph/s the text written on this page is written in this section between the <>.
<> is known as 'Tags', there is a <p> 'Start Tag' and an </p> 'End Tag', data is written between them and
If you can right-click a web page and click on 'View Source' to see how HTML aspects of that page.
HTML tags are like keywords that define that how a web browser will format and display its content. Using tags web browsers can distinguish between HTML and its content. HTML tags contain three main parts:
Start (opening) tag.
End (finishing) tag.
When web browsers read HTML documents it reads them from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties and each HTML tag has different properties depending on its function.
An HTML file must have some essential tags so that the web browser can differentiate between simple text and HTML text.
You can use as many tags as you want as per your code requirement.