When a Web page is published on the Internet, the language versions of the browser's operating system are also different. Therefore, you must set the character set at the beginning of the Web page. Otherwise, the system will use the character set of the operating system.
The setting of the author's name, content introduction, and Keywords of the webpage makes it easier for the search engine to find the webpage.
Regular Refresh allows a webpage to be automatically transferred to another webpage at a specified time, or you can use JavaScript to periodically change the content of the webpage.
META syntax
You can use the <META> Tag Element to implement the preceding functions. First look at its syntax
<META content = "META data attribute value" name = "META data attribute name" http-equiv = "HTTP attribute name" scheme = "attribute value format" lang =" language code ">
Set the Language Character Set
The character set is set to http-equiv to "Content-Type", and Content to "text/html; charset = text set". The text set varies with different countries, simplified Chinese: gb2312, traditional Chinese: big5, Japanese: Shift_JIS, etc. A quality web page cannot be separated from a Style sheet (StyleSheet) Description (Script) language. The Style sheet is set to "Content-Style-Type" by http-equiv ", change Content to "text/css ". The Script is set to change http-equiv to "Content-Script-Type", and Content to "text/Script language ", generally, there are two common scripting languages: VbScript and JavaScript.
<META http-equiv = "Content-Type" content = "text/html;charset=gb2312"><META http-equiv = "Content-Style-Type" content = "text/css"><META http-equiv = "Content-Script-Type" content = "text/javascript">
Set new page Effects
<META http-equiv = "Page-Enter" content = "blendTrans (Duration = 3.0)"> ◆ Page-Enter: go to the <META http-equiv = "Page-Exit" content = "revealTrans (Transition = 20)"> ◆ Page-Exit: leave this page <META http-equiv = "Site-Enter" content = "blendTrans (Duration = 3.0)"> ◆ Site-Enter: <META http-equiv = "Site-Exit" content = "revealTrans (Transition = 23)"> ◆ Site-Exit: Leave this Site
S02_03.htm ◆ content = "blendTrans (Duration = 3.0)" sets the page feed effect to mix, that is, fade in and out. Duration = 3.0 is the Duration (in seconds) of the special effect ). For the duration, it is too short to see the effect, it is too long to waste time, it is recommended to be between 3-5 seconds. ◆ Content = "revealTrans (Transition = 20)" sets the form of page feed effects. The value in Transition = value can be 0. the block appears 01. square disappears 02. circular inner 03. circular outward 04. wipe up 05. wipe 06 down. wipe 07 to the left. wipe 08 to the right. vertical curtain 09. horizontal curtain 10. the Board is staggered 11. board down 12. split randomly 13. vertical Split into 14. vertical Split and exit 15. split horizontally into 16. horizontal Split off 17. 18. peel off to the top left 19. to the bottom right. 20. peel off to the top right. horizontal random column 22. vertical Random column 23. random
Set keywords
The author's name, content introduction, and keyword settings are essential to professionals. Visitors can also easily find your content through the search engine.
<META name = "Author" content = "xiaoya"> ◆ Author <META name = "Discription" content = "Visual C ++"> ◆ content <META name = "Keywords" content = "C, C ++, SDK, API "> ◆ keyword assistance: <META name = "copyright" content = ""> ◆ copyright <META name = "expires" content = "31 December 2002"> ◆ when is the website <META name = "distribution" content = "global"> ◆ this website is a global <META name = "revisit-after "content =" 30 days "> ◆ visit the webpage 30 days later, you may need to re-register <META name = "robots" content = "all"> ◆ ask the search engine to log on to this webpage <META name = "pragma" content = "no-cache "> ◆ logon is not required for this webpage.
Set timed refresh
Set http-equiv to "Refresh" and Content to "seconds". Set http-equiv to "Refresh ", content is set to "seconds; URL = Transfer address ".
<META http-equiv = "Refresh" content = "5"><META http-equiv = "Refresh" content = "5;URL= http://www.yahoo.com.cn">
The following example shows how to create a Chinese s02_01.htmand a Japanese s02_02.htm, and then automatically go to another page after 3 seconds.
<! --S02_01.htm Chinese webpage --> <HTML> <HEAD> <meta name = "GENERATOR" Content = "Microsoft Visual Studio 6.0"> <META http-equiv = "Content-Type" content = "text/html; charset = gb2312 "> <META http-equiv =" Refresh "content =" 5366url%h02_02.htm "> <TITLE> </HEAD> <BODY> This is a Chinese webpage, go to the Japanese webpage in 5 seconds. (Chinese) <BR> Please wait a few minutes later than Chinese characters, 5 seconds later than Japanese (Japanese) </BODY> </HTML>
<! --S02_01.htm Japanese webpage --> <HTML> <HEAD> <meta name = "GENERATOR" Content = "Microsoft Visual Studio 6.0"> <META http-equiv = "Content-Type" content = "text/html; charset = shift_jis "> <META http-equiv =" Refresh "content =" 5;url1_h02_01.htm "> <TITLE> </HEAD> <BODY> cannot exceed Japanese quota please wait, 5 seconds until then when there are too many rows in China (Japan) this is a Japanese webpage and will be transferred to the Chinese webpage in 5 seconds. (Chinese) <BR> </BODY> </HTML>