How to place the meta tag

How to place the meta tag

Metatags are office tags (instructions) of the HTML language (HyperText Markup Language - "hypertext markup language"). They differ from normal tags in the fact that do not bear information on location or appearance of any elements displayed in the page. Purpose of metatags is to report to the browser of the user or the search robot general information on the page. It can be, for example, information on the used table of characters ("coding"), the short description and keywords relating to the text placed in the page, etc.

Instruction

1. Use the correct syntax by preparation of metatags for an insert in the source code of the page. This HTML-instruction should begin with an open parenthesis and the name of the <meta and to come to an end-a closing parenthesis> tag before which, in case of use of the XHTML standard, should be located a space with a slash (""/>""). This tag without fail should have an indicated value of the content attribute, and other three parameters provided for this tag are optional though the name attribute is used very often. For example: <meta name= "" description"" content= "" the description of metatags of the HTML language""/> to the name Attribute of the given sample assigned description value - it indicates to search robots that the short description of the texts placed on the page is placed in the content attribute of this metatag.

2. Open the HTML-code of the page in which it is necessary to place the prepared metatags. It can be done in the online editor of pages of a management system of the website. If you do not use it, then the page can be downloaded to yourself in the computer and to open any text editor (for example, a standard Notepad). For this purpose it is possible to use the file manager in the control panel of a hosting or the special program - the FTP-client. Metatags should be placed in a heading part of the code of the page, that is between the <head> tags and </head>. Find the closing tag </head> and insert your tags before it. If you use the online editor, then it is necessary to do all this previously having switched from the visual mode in a HTML-code editing mode.

3. Save the pages of change made in the source code. If you downloaded the page from the website in the computer, then do not forget to begin to rock it back, having rewritten the new file old.

Author: «MirrorInfo» Dream Team


Print