HTML

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.

Hypertext Markup Language (HTML) is the standard Markup Language for documents designed to be displayed in web browsers and can be helped by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.

Web browsers receive HTML documents from a web server or from local storage then render the documents into multimedia web pages.

An example is:

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Heading of website</h1>
<p>First paragraph used in site</p>
</body>
</html>

HTML inscription against laptop and code
Code,HTML script in text editor, Program

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.

  • Content.

  • 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.