Compile common and easy-to-Forget html statements and html statements
Set file character encoding:
<meta charset="utf-8">
Internal style sheet:
<style type="text/css"> hr {color: sienna;} p {margin-left: 20px;} body {background-image: url("images/back40.gif");}</style>
External style sheet:
<link rel="stylesheet" type="text/css" href="mystyle.css" />
Compile js in html:
<script type="text/javascript"></script>
External js:
<script type="text/javascript" src="images/embed_index.js"></script>
The most common html statements
Add music code 1
<Bgsound src = "Music address" loop = "-1">
This Code adds background music, where loop = "-1" is an infinite loop
Add music code 2
<Embed src = "Music address" hidden>
This code inserts music, and hidden hides
Add transparent Flash code
<Embed src = "Flash Address"; width = "400" height = "300" quality = "high" wmode = "transparent" align = "right" style = "position: absolute; left: 0; top: 0 ">
This code inserts transparent flash code, where width = "" is the flash width, height = "" is the height of flas, left: Is the position shifted from left to right, top: from top down
Make the background image not scroll
<Body Background = "image address" bgproperties = "fixed">
This code can fix the background
The webpage cannot be saved
<Noscript> <iframe src = "/*>"; </iframe> </noscript>
This code prevents others from saving them as files to protect their web pages
Disable right-click
<Body oncontextmenu = "return false">
This Code cannot be used right-click
Disable left and right keys
<Body oncontextmenu = "return false" onselectstart = "return false">
This code prevents you from using the left and right keys to protect web files.
Excessive
<Meta http-equiv = "Page-Exit" content = "revealTrans (Duration = 3, Transition = 5)">
This code can generate an excessive special effect when linking other pages. The Duration value is the dynamic transition time of the webpage, in seconds. Transition is a transitional mode. Its value ranges from 0 to 23, corresponding to 24 Transition modes respectively. See the following table: 0 box contraction 1 box 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 levels lattice blinds 11 vertical lattice blinds 12 dissolve at will 13 expand from the left and right sides to the middle 14 expand from the middle to the left and right sides 15 expand from the upper and lower ends to the middle 16 expand from the middle up to the bottom ends 17 from the upper right corner expand to the lower left corner 18 expand from the lower right to the upper left corner 19 expand from the upper left to the lower right corner 20 expand from the lower left to the upper right corner 21 horizontal line expand 22 vertical line expand 23 randomly generate a transitional mode
Webpage jump
<Meta http-equiv = "refresh" content = "3; rul = redirected webpage">
This Code allows the webpage to jump to the full text within a certain period of time...>
Compile the following webpage with HTML statements:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "