Beginners should pay attention to some of the HTML tips

Source: Internet
Author: User
Tags add empty end net return window
Beginner's Skill 01. Let the background map not scroll
IE browser supports a Body property bgproperties, which allows the background to not scroll:
〈body background= "picture file" bgproperties= "fixed"

02. Make your Web page unable to save as
<noscript><iframe src=*></iframe></noscript>

03. Transparent the background of documents within the IFRAME framework
<iframe src= "About:<body style= ' background:transparent ' >" allowtransparency></iframe>

04. No Right Key:
<body oncontextmenu= ' return false ' ondragstart= ' return false ' Onselectstart = ' return false ' onselect= ' Document.selection.empty () "oncopy=" Document.selection.empty () "onbeforecopy=" return false >

05. Automatically refresh immediately after entering the page?
<meta http-equiv= "Refresh" content= "120;url=http://www.webjx.com" >
http://www.webjx.com, this is your own web site.

06. Open the window is maximized
<script language= "JavaScript" >
<!--Begin
Self.moveto (0,0)
Self.resizeto (Screen.availwidth,screen.availheight)
End-->
</script>

07. Can you hide the iframe scroll bar? I know three ways:
1. Set the IFRAME scrolling= "no"
2. Included page body application Overflow:hidden is applied 15 in the included page. How do I control the display of horizontal and vertical scroll bars?
3. The body tag containing the page plus scroll= "No"

08. Add Background music
<bgsound src= "Mid/windblue[1].mid" loop= "-1" > only applies to IE

<embed src= "Music.mid" autostart= "true" loop= "true" hidden= "true" > for Netscape, IE all apply

09. Embed Web pages
<iframe name= "tt" src= "01a.html" width= "450" height= "287" scrolling= "Auto" frameborder= "0" ></iframe>

10. Jump
<meta http-equiv= "Refresh" content= "3; Url=list.htm ">

11. Rolling
<marquee direction=up height=146 Onmouseout=start () onmouseover=stop () scrollamount=4></marquee>

12. Thin Line Divider

13. Excessive means
<meta http-equiv= "Page-exit" content= "Revealtrans (duration=3,transition=5)" >
The duration value is the time, in seconds, for the dynamic transition of the Web page.
The transition is a transitional method with a value of 0 to 23, corresponding to 24 transition modes respectively. As shown in the following table:
0 box-shaped contraction 1 box-shaped radiation 2 circular contraction 3 circular radiation 4 from bottom up
5 from top down 6 from left to right 7 from right to left 8 Vertical Blinds 9 Horizontal Blinds
10 Horizontal Lattice Blinds 11 Vertical lattice Blinds 12 free dissolve 13 from left and right ends to the middle unfold
14 expand from middle to left, 15 from top to bottom
16 Expand from middle to bottom, 17 from upper right corner to lower left corner
18 from lower right corner expand 19 from upper left corner to lower right corner
20 expand from lower left corner to upper right corner 21 horizontal
22 Vertical Linear Expansion 23 randomly generating a transition mode


14. The format for adding annotations is:
〈!-[Annotation Content ... ]--〉

15. How to control the display of horizontal and vertical scroll bars?
<body style= "Overflow-y:hidden" > Remove x Axis
<body style= "Overflow-x:hidden" > Remove Y axis
<body scroll= "No" > not obvious.

16. Customize the browser address bar before the small icon:
A: Add the following statement between the 〈head〉〈/head〉 of the page:
〈link rel= "Shortcuticon" href= "Http://.../icon.ico"
Can. Where Icon.ico is a 16x16 icon file, color not more than 16 colors.

17. How to add e-mail links to the Web page and display the intended theme?
〈a href= "mailto:name@your.net?subject= theme" 〉......〈/a〉

18. Define this page keyword, you can add the following code in 〈head〉〈/head〉:
〈meta name= "Keywords" content= "China,enterprise,business,net"
Content contains keywords that you can set yourself.
Here's a technique where you can repeat a word so you can improve your site's ranking, such as:
〈meta name= "Keywords" content= "China,china,china,china" This keyword is not valid for Google search.

19. Add to Favorites:
〈a href= "javascript:window.external.addFavorite (' http://link ', ' description ');" Add to Favorites 〈/a〉

20. Set as homepage:
〈a href=# onclick=this.style.behavior= ' url (#default #homepage) '; this.sethomepage (' http://link '); Set as homepage 〈/a〉

21. Place the scroll bar on the left side of the browser window
A: Add Dir=rtl in <body>, that is, <body dir=rtl>.

Additional: Some shortcuts for IE5.0:
A: Turn on find function: ctrl+f
Close browser window: ctrl+w
Open the Address bar drop-down list box: F4
Refresh: F5
Save the current Web page to your Favorites list: Ctrl+d
Open a copy of the current IE window: CTRL + N
Stop downloading the current page: ESC
The cursor moves quickly to the beginning of the page: Home
The cursor moves quickly to the end of the page:
Open a new Address type window: Ctrl+o
Open Favorites: Ctrl+i
Open History folder: Ctrl+h
Open the default home page for browser settings: Alt+home

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.