Introduction to HTML

Hyper Text Mark-up Language

What is HTML?

HTML is a standard language that is used to create web pages. HTML stands for Hyper Text Mark-up Language.

HTML is a mark-up language, which means that it consists of different tags. HTML tags are enclosed in brackets <>, for example <html> , which contrast the difference between mark-up tags and the content that is shown on the web page. Most HTML tags have a corresponding closing tag </>, for example </html>.

Every web page in a web site is generated from HTML. A web browser, which is an application used for viewing web pages, understands HTML tags and generates web pages when it is asked for them.

The Structure of HTML

Every HTML page has the tags: <html>, <head>, <title>, and <body>; and the corresponding closing tags. The html structure contains these tags in the following order:

<html>

<head>

<title> </title>

</head>

<body> </body>

</html>

Main Tags

<html> is the root tag of an HTML document. This tag contains all the other HTML tags.

<head> contains information about the web page such as title, style, etc. The content within the <head> tag is not displayed on the web page.

<title> contains the title of the web page. The content within the <title> tag is not displayed on the web page although it is displayed on the browser tab and in google search results.

<body> contains the content of the web page. Any content in the <body> tag is visible on the web page.

Example

Below is a sample of HTML code for a web page that shows the text, “Welcome to my first HTML Webpage!!!” on the web browser.

1
2
3
4
5
6
<html>
<head>
<title>My First HTML Webpage. </title>
</head>
<body>Welcome to my first HTML Webpage!!! </body>
</html>

Below is the web page generated by the HTML code above.

My first HTML web page

My first HTML web page

2 Comments on Introduction to HTML

  1. good job done.

  2. Precisely what I was looking for, appreciate it for posting.

Leave a comment