HTML is a Markup Language which is used to display the web page and other information on the Web Browser. HTML code is written using the HTML elements called tags which are enclosed within the angular brackets. Most commonly these tags are paired tags. Let us now know about the tags and structure of the HTML code.
HTML TAGS:
- These play a main role in HTML. HTML consists of a set of predefined tags.
- we can specify the text between the starting and the ending tags
- HTML tags are not case sensitive.
- The entire HTML document will be written between and .
- HTML document contains two sections HEAD and BODY.
- Tags are the keywords which are enclosed within the angular brackets.
- There are two types of tags:
- Starting tag / Opening tag.
- Ending tag / Closing tag.
- Ending tag / Closing tag : , , , etc..,
Structure of HTML Document:
The following code shows the structure of the HTML document.
<html>
<head>
...........
...........
</head>
<body>
...........
...........
</body>
</html>.
Here, the code consists of two sections
- Head section is used to provide general information about the HTML document like titleetc..,
- Body section is used to display the text or image or any other web content.
No comments:
Post a Comment