1.
Definition points:
<A name = "label"> text to be displayed </a>
<Href = "# Tips"> Visit the useful tips section </a>
Ask from external: <a href = "http://www.w3school.com.cn/html_links.htm# Tips"> Visit the useful tips section </a>
Open the document in a new window <a href = "http://www.w3school.com.cn /"Target = "_ blank"
> Visit w3school! </A>
This is the email link:
<A href = "mailto: someone@microsoft.com? Subject = Hello % 20 again "> Use % 20 as the space in the sent email </a>.
2. List
<Ul> NO-sequence table <li>
<Ol> ordered list <li>
<DL> <DT> <DD> Custom list
3. Frame)
<Frameset Cols = "25%, 75%"> <frame src = "frame_a.htm"> <frame src = "frame_ B .htm"> </frameset>
4. Special Fonts
1 Space & Nbsp; & #160;
2 < Yu no. & lt ; & Amp; #60;
3 > Yu no. & Gt; & #62;
4 & And number & Amp; & #38;
5 "Quotation marks & Quot; & Amp; #34;
6 'Marker & Apos; (Not supported by IE) & #39;
7 Lowest score & Cent; & #162;
8 £. & Pound; & #163;
9 ¥ Yen & Yen; & #165;
10 Section & Sect; & #167;
11 Copyright & Copy; & #169;
12 Registered Trademark & Reg; & #174;
13 × Multiplication number & Times; & #215;
14 Division Number & Divide; & #247;
5. Use FTP for download
<A href ="Ftp://www.w3school.com.cn/ftp/winzip.exe> download WinZip
</A>
6. IFRAME operation
The parent page obtains the IFRAME child page element.
JS version: Document. getelementbyid ("iframeid ").Contentdomaindoc ument. Getelementbyid ("divid ")
JQ version 1:$ ("# Divid", $ ("# iframeid" {0}.content#w.doc ument)
JQ version 2:$ ("# Iframeid"). Contents (). Find ("# divid ")
IFRAME page to get the elements of the parent page
JS version:Parent. Document. getelementbyid ("mydiv ")
JQ version 1:$ ("# Divid", parent.doc ument)
JQ version 2:Vertex (parent.doc ument). Find ("# divid ")
In frameset, leftframe obtains the elements in mainframe.
JS version:Parent.mainframe.doc ument. getelementbyid ("divid ")
JQ version:$ ("# Divid", parent.mainframe.doc ument)
$ ('# Boardtitle', parent.doc ument). ATTR ("src", "Left. aspx ");