About document header definitions and META elements

Source: Internet
Author: User

1 <!DOCTYPE HTML>2 <HTML>3     <Head>4         <MetaCharSet= "UTF-8">5         <title>Defining metadata</title>6         <style>7 #box{8 width:4900px;9 Height:3225px;Ten font-size:60px; One             } A span{ - Display:Inline-block; - width:10em; the Border:1px solid Red; -             } -         </style> -     </Head> +     <Body> -          +         <Divdir= "RTL">Hello</Div> A         <spandir= "RTL">Hello</span> at         <textareaname=""ID= "box" > - Meta (metadata) is the information used to describe an HTML document, using META elements to do the work, and the META element in the head tag.  -              - of the META element - The lang attribute is used to define the language of the content property value, which is intended primarily for speech synthesizers, which can be read out by distinguishing the language used by the content attribute value.  - value: en-US English zh-cn Simplified Chinese zh-tw Traditional Chinese in The dir property is used to define the direction of the text for all block elements and inline block elements. Value RTL or LTR -                      to Name property: + set as keywords to improve the search engine identification. You can write 15 or so, separated by a comma.  - Set as generator definition Editing tool, which can be any editor.  the to define copyright information.  * set to Description to define the document description information. $ set as Author to define the document author. Panax Notoginseng Set as date to define the authoring date.  - Set as robots to search by: value: the All : The file will be retrieved and the link on the page can be queried.  + None: The file will not be retrieved and the link on the page cannot be retrieved.  A Index: The file will be retrieved.  the follow: Links on the page can be queried.  + ProxyHost: The file is not retrieved, but the link on the page can be queried.  - ProxyPort: The file is not retrieved, the link on the page can be queried.  $ Http-equiv Property (the response header used to define the HTTP message header): $ set to Content-type, setting the content type of the Web page and the character set used.  - set to Content-language, the language in which the Web page is available.  - when set to refresh, you can set the page to jump at timed or refresh itself.  the                             <Metahttp-equiv= "Refresh"content= "N,url=http://www.baidu.com">N represents time.  -                         Wuyi set as pragma to let the Web page disable caching: the                                <Metahttp-equiv= "Pragma"content= "No-cache"> -                                <Metahttp-equiv= "Cache-control"content= "No-cache"> Wu The same function, pragma is the HTTP 1.0 version used, Cache-control is the HTTP 1.1 version used, in order to be compatible, can both write.  -                                 About when set to expires, you can set the expiration time of a webpage, and once it expires, it must be recalled to the server. You must use the GMT time format.  $                             <Metahttp-equiv= "Expires"content= "tue,20 14:25:27 GMT"/> - This feature is similar to disabling caching, but it can be set for a period of time and must be reloaded after this time. Set the time to 0 to request the latest Web page each time.  -                          - when set to Set-cookie, the cookie expiration time can be set, and if it expires, the cookie will be deleted. You must also use GMT format time.  A                             <Metahttp-equiv= "Set-cookie"content= "tue,20 14:25:30 GMT"/> +                          the when set to Windows-target, you can set which frame the current page is loaded into: -                             <Metahttp-equiv= "Windows-traget"content= "_top" /> $ This means that forcing the page to appear on a separate page in the current window prevents its web page from being used by others as a frame.  the                              the                              the         </textarea> the     </Body> - </HTML>

About document header definitions and meta elements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.