Beginner address addresses
<ADDRESS> tags are typically used to describe the author of the document, the method of contacting the author (e.g., an e-mail address), and a revision date. It is generally the last part of a file.
For example, the last act of this online guide:
<ADDRESS>
A Beginner ' s Guide to html/ncsa/pubs@ncsa.uiuc.edu/revised April 96
</ADDRESS>
The results are:
A Beginner ' s Guide to html/ncsa/pubs@ncsa.uiuc.edu/revised April 96
Note: <ADDRESS> is not used for ordinary postal addresses. About the normal postal address see "Force wrap" below.
Force wrap forced line breaks/postal address postal Addresses
The <BR> tag forces a newline, with no gaps between the rows. For text that consists of shorter lines, such as postal addresses, the additional empty guild generated by the <P> element makes you feel unnecessary. For example, use <BR>:
National Center for Supercomputing applications<br>
605 East Springfield Avenue<br>
Champaign, Illinois 61820-5518<br>
The output is:
National Center for Supercomputing applications
605 East Springfield Avenue
Champaign, Illinois 61820-5518
Horizontal Line Horizontal Rules
The <HR> tag produces a horizontal line that is equal to the width of the browser window. Horizontal lines are useful for dividing parts of your document. For example, many people add a horizontal line before their text ends and the <address> information begins.
You can change the size (thick) and width of a line (the percentage of the window that the horizontal length extends). You can try to change the settings until you are satisfied with the display effect. For example:
Character format
HTML has two styles for a single character or sentence: The logical style and the physical style logical and physical. Logical style logical styles is labeled according to the contents of the text, while the physical style physical styles indicates the display effect of a section. For example, in the preceding sentence, the word "logical styles" is labeled as a "define definition." The same effect (italic) can be achieved by telling your browser to "turn these words into italics" through other tags.
Note: Some browsers do not have any style explanations for <DFN> tags, so you may not find the words in the previous paragraph appear italic.
Logical style and physical style logical versus physical Styles
If the physical style and the logical style can produce the same effect, why not?
In the ideal SGML concept, the content and its display are separate. SGML therefore marks a first-level heading font as a primary heading font, but does not specify how large a header font should be displayed, for example, the 24-point bold 24-point the Bold times centered. The benefits of this processing (similar to the style sheets of many word processing software) are that if you decide to change the first-level markup font to 20-point left-justified Helvetica, you just need to alter the definition of the first-level header font in your browser. There are many browsers today that allow you to define the actual effects of multiple HTML tags on your screen as you wish.
Another advantage of logical tags is that they help keep consistency in your documents. Tags <H1> better remember more than 24-point bold times center or other descriptions. For example, for <STRONG> tags. Most browsers are interpreted in bold. However, a reader might like to show this part as red. The logical style provides this flexibility.
Of course, if you want to display some content in italics instead of being influenced by browser settings, you need to use a physical style. Thus, the physical style provides a different kind of consistency: the content displayed in one way or another in your document will be displayed in the same way elsewhere.
You should use a certain style in a fixed way. If you use a physical style tag, all of the physical styles are used in a document. If you use logical style, stick to the logical style in your document. Remember that future HTML may no longer support the physical style, which means the browser will not interpret the physical style encoding.
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.