The basic tags include
<meta> , and
<body> . We introduce each of the four in the following:
This tag is used to indicate that this is a HTML document. Most HTML documents should start and end with this tag.
This tag is used to indicate the header section of the HTML document, which typically includes the
<meta> tags, and is not displayed in the main window of the browser.
This indicates the title of this HTML page. The title is what is displayed on the upper left corner of your browser when you view a web page. For example, right now you can see "Basic Tags: html, head, title, meta, body" there. That is the title of this page.
The title tag is important when it comes to search engine ranking. Many of the search engines pay special attention to the text in the
<title> tag. This is because (logically) that words in the
<title> tag indicate what the page content is.
<meta> tag information is not directly displayed when the page is rendered on the browser. Rather, this is used for the author of the HTML page to record information related to this page. Two common attributes are name and content. The tag used to hold great importance in search engine optimization, with authors carefully drafting what's inside the tag to gain better search engine ranking, but recently its importance has been decreasing steadily.
<body> tag includes the HTML body of the document. Everything inside the
<body> tag (other than those within the
<script> tag) is displayed on the browser inside the main browser window.
<body> tag may contain several attributes. The most commonly used ones are listed below:
<html> <head> <title> Here is the title of the HTML document. </title> <meta name=" " content=" " /> ... (there may be one or more meta tags) </meta> </head> <body> Here is the body of the HTML document. </body> </html>
You have learned how HTML is structured using
</tag>. You must always remember that whatever is between a starting tag
<tag> and an ending tag
</tag> will have the tag applied to it. You have also learned how to set the page's title and declare an HTML document