HTML Beginner's Guide (4)

Source: Internet
Author: User
Tags html tags range reference
Beginner here is an example of a nested list:

<UL>
<LI> A Few New England states:
<UL>
<LI> Vermont
<LI> New Hampshire
<LI> Maine
</UL>
<LI> two Midwestern states:
<UL>
<LI> Michigan
<LI> Indiana
</UL>
</UL>

The display of this nested list:

A few New England states:
Vermont
New Hampshire
Maine
Two Midwestern states:
Michigan
Indiana
Pre-queued Format text preformatted
Use the <PRE> tag ("preformatted") to produce a fixed-width font. The tag also makes a space, a new row, and a TAB key tabs valid (multiple spaces appear as multiple spaces, and wrapping in the source file also produces a newline in the browser). This is useful for the list of programs and some other situations. For example, the following line:

<PRE>
#!/bin/csh
Cd
CFS get MYSRC.F:MYCFSDIR/MYSRC.F
CFS get Myinfile:mycfsdir/myinfile
Fc-02-o Mya.out MYSRC.F
Mya.out
CFS Save Myoutfile:mycfsdir/myoutfile
RM *
</PRE>

Display as:

#!/bin/csh
Cd
CFS get MYSRC.F:MYCFSDIR/MYSRC.F
CFS get Myinfile:mycfsdir/myinfile
Fc-02-o Mya.out MYSRC.F
Mya.out
CFS Save Myoutfile:mycfsdir/myoutfile
RM *

The <PRE> tag can have a width attribute width that indicates the maximum number of characters allowed in a row. WIDTH also notifies the browser to select a suitable font and indent the text.

In the role of <PRE> can also be added to the super chain. However, other HTML tags should be avoided in the <PRE> range.

Note that because,, and & have special meanings in HTML files, you must use their escape sequences (respectively,,, and &) when you enter these characters. See the escape sequence for more information.

Large range of references extended quotations
Use the <BLOCKQUOTE> tag to display a large segment of a reference on the screen with a separate block. Most browsers typically change the page boundaries of a reference section to separate from the surrounding text area.

In the following example:

<BLOCKQUOTE>
<p>omit needless words.</p>
<p>vigorous writing is concise. A sentence should contain no
Unnecessary words, a paragraph no unnecessary sentences, for the
Same reason that a drawing should have no unnecessary lines and a
Machine No unnecessary parts.</p>
--william Strunk, Jr., 1918
</BLOCKQUOTE>

Display results as:


Omit needless words.

Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing s Hould have no unnecessary lines and a machine no unnecessary parts.

--william Strunk, Jr., 1918

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.