Use of HTML tags

Source: Internet
Author: User

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 ");

 
 
 


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.