HTML Introduction, HTML stands for HyperText Markup Language. It is the standard markup language used to create and structure web pages. HTML defines the structure and meaning of content on a webpage, including headings, paragraphs, images, links, lists, tables, forms, and other elements.
HTML is not a programming language. It is a markup language that uses elements and tags to tell web browsers how the content of a webpage is structured and presented.
What is HTML?
- HTML stands for HyperText Markup Language.
- HTML is the standard markup language used to create web pages and web applications.
- HTML describes the structure of a Web page.
- HTML consists of a series of elements.
- HTML elements and tags uses to tell the browser how to display the content.
- HTML is widely used language on the web.
- Technically, HTML is a Markup language rather than a programming language.
- HTML can be used to create headings, paragraphs, links, images, lists, tables, forms, and more.
- HTML elements label pieces of content such as \”this is my heading\”, \”this is my paragraph\”, \”this is a link\”, etc.
Simple HTML Example with HTML Editor
<!DOCTYPE html>
<html>
<head>
<title>Web page title</title>
</head>
<body>
<h1>Write Your First Heading</h1>
<p>Write Your First Paragraph.</p>
</body>
</html>
Example HTML Introduction & Explanation
- The <!DOCTYPE html> declaration defines that this document is an HTML5 document.
- The <html> element is the root element of an HTML page.
- The <head> element contains meta information about the HTML page
- The <title> element specifies a title for the HTML documents. It is shown in the browser\’s title bar or in the page\’s tab).
- The <body> element defines the document\’s body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
- The <h1> element defines a large heading.
- The <p> element defines a paragraph
What is an HTML Element?
A HTML element is the part of document that usually defined by a start tag of content and an end tag:
For Example
<tagname> Your Content write here… </tagname>
<p>This is a paragraph.</p>
<p> is the start tag.
This is a paragraph. is the content.
</p> is the end tag.
As above example HTML some elements start tag to the end tag are below.
| Start Tag | Content | Ending Tag |
| <title> | Web page title | </title> |
| <h1> | Write Your First Heading | </h1> |
| <p> | Write Your First Paragraph. | </p> |
| <br> | none | none |
Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements or void elements. Empty elements do not have an end tag!. For Example.
<br>
The <br> element inserts a line break.
What is HTML Page Structure?
Every HTML Page Structure has like this, below is a visualization of an HTML page structure.
Note: What you write content inside the <body> section, will be displayed in a browser front end. The content inside the <head> like <title> element will be shown in the browser\’s title bar or in the page\’s tab and can see in Developer Tools.
