HTML Tutorial
What is HTML?
HTML stands for Hyper Text Markup Language. It is very easy to learn and you can create your own web pages using HTML.
Introduction
HTML consists of a series of elements and these elements are represented by tags. These tags are not visible on the web page and it is only used to display the contents of that page. The HTML tags are not case sensitive elements.
The HTML tags are different for different sets of contents. For example the <title> tag is used only to represent the title of that page. And the <p> tag is used only to represent the paragraph.
Example
<!DOCTYPE html>
<html>
<head>
<title>Title of the page</title>
</head>
<body>
<h1> Heading</h1>
<p>Paragraph</p>
</body>
</html>
It is a simple example to know the HTML structure clearly. The tags are always closed with angle brackets and it is very important too. Contents should be placed between open and end tags like <title>Title of the page</title>
- Here, The <!DOCTYPE html> declaration defines the structure of HTML5 version and it helps browsers to display web pages correctly.
- The <html> and </html> tags are the root elements and defined the whole document of this page.
- The <head> is used to represent the meta tags and it helps to marketing usages. It’s not visible on the web pages.
- The <title> tag is used to display the title of this page.
- The <body> is used to display the full page contents. The <h1>, <p> tags are to be placed inside of the <body> tag.
- The <h1> tag is used to display large heading. In HTML we are using six heading tags(<h1>, <h2>, <h3>, <h4>, <h5>, <h6>)to represent the one web page with different headings and subheadings properly.
- The <p> tag is used to display the paragraph.