HTML Study Notes

Source: Internet
Author: User

1.
UseLowercase tagAndLowercase attributes<Body bgcolor = "yellow"> always add the property valueQuotation marks(Single and double quotes. If the attribute content contains double quotation marks, single quotes are used)

2.
Don't forgetDisable tags<B> </B>

3.
The browser ignores the source code format. If you need to change the line, use</BR>Force line feed

4.
Use<PRE>The label displays pre-formatted text, with spaces and line breaks retained.

5.
Use<BDO>Label controls the direction of text display (bi-directional override)

6.
Use<BLOCKQUOTE>Tab display. The browser inserts line breaks and margins.

7.
Character entity: The HTML document shows the minor signs. We need to write: & lt; or & #60;

8.
HtmlLink:

<A>Used to create an anchor.

 

HrefAttribute is used to locate the document to be linked.

<
Href = "mailto: someone@microsoft.com? Subject = Hello % 20 again "> --- send email link

 

UseTargetAttribute, you can define where the linked document is displayed.

Target = "_ blank" opens a connection in a new window

Target = "_ top" jump out of the framework

 

NameAttribute is used to create a named anchor (named
Anchors ). When using named anchor (named
Anchors), we can create a link directly to a section on the page. Add the # symbol and anchor name to the end of the URL to directly link to the specified section.

Code
<P> <a href = "# C4"> View chapter 4. </A> </P> ---- click here to jump to C4

<H2> Chapter 3 </H2>

<P> test3 </P>

<H2> <a name = "C4"> Chapter 4 </a> </H2>

<P> test4 </P>

 

9.
Framework

You can use the Framework to display multiple pages in a browser window. Due to many disadvantages, it can be replaced by Ajax.

Hybrid Framework
<Frameset rows = "50%, 50%">

<Frame src = "/example/html/frame_a.html">

<Frameset Cols = "25%, 75%">

<Frame src = "/example/html/frame_ B .html">

<Frame src = "/example/html/frame_c.html">

</Frameset>

 

Disable frame size adjustment
<Frame noresize = "noresize">

 

Navigation framework

Main.html
<HTML>

<Frameset Cols = "120, *">

<Frame src = "framelist.html">

<Frame src = "frame_a.html" name = "showframe">

</Frameset>

<Noframes> </noframes>

</Html> framelist.html
<HTML>

<Body>

<A href = "frame_a.html" target = "showframe"> frame a </a> <br>

<A href = "frame_ B .html" target = "showframe"> frame B </a> <br>

</Body>

</Html> frame_a.html
<HTML>

<Body>

A

</Body>

</Html> frame_ B .html
<HTML>

<Body>

B

</Body>

</Html>

 

Inline framework: It can insert another file to a part of the webpage. when updating the file, you only need to change the file to be inserted.
<IFRAME src = "05.jpg"> </iframe>

 

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.