HTML Tags
HTML tags are used to markup HTML elements. HTML tags are surrounded by two angle brackets < and >, like paragraph tag <p>. HTML tags are case insensitive, means <P> is same as <p>.
Most of HTML tags are come in pairs having starting and ending tag, but not all. Like <img>, <br> tags does not have ending tag. End tag has a slash(\) to indicate that it is ending tag.
Some of the most important tags used in the HEAD Element
<title> Tag
Title tag is used to define the title of the web page.
Example
<html>
<head>
<title>BasicHTML</title>
</head>
<body>
<p>This is the content within paragraph opening and closing tags.</p>
</body>
</html>
The content that is written between the title opening <title> and closing tag </title> is visible on the browser tab at the top bar as shown in the above example.
<meta> Tag
Meta Tag is also defined within the HEAD Tag. Meta tag is used to provide the metadata of HTML Document, Like - Author Name, Page Description, Keywords. The Metadata is not displayed on the web page.
Example
<head>
<meta name="keywords" content="HTML, Basic HTML"/>
<meta name="description" content="Basic HTML Tutorial"/>
<meta name="author" content="Er. Anjali"/>
</head>
<link> Tag
Link tag is placed within the HEAD element. This tag define the relationship from the external resources.
Example
<head>
<link rel="stylesheet" type="text/css" href="/style.css"/>
</head>
In the above example, link tag is used to include external css file 'style.css'. For learning CSS, you should have good knowledge of Basic HTML.
<script> Tag
Within script tag, you can write client side script or include external script file by using the src attribute.
Example
<head>
<script type="text/javascript">
document.write('Welcome to etutorialsPoint');
</script>
</head>
In this above example, the javascript code is written within the script tags
<head>
<script type="text/javascript" src="/demo.js"></script>
</head>
In the above example, an external file 'demo.js' is included within the script tags.
Some of the most important tags used within the BODY Element
<p> Tag
Paragraph <p> tag is used to define a new paragraph. This tag is always used within the Body Element.
Example
<body>
<p>
Loreum Ipsum......
</p>
</body>
<div> Tag
Div tag is used to define sections in the document.
Example
<body>
<div>
<p>
Loreum Ipsum......
</p>
</div>
</body>
You will learn descriptions of more html tags in further chapters.