Starting from P, step-by-steps _ Experience Exchange

Source: Internet
Author: User
Many friends are still using Dreamweaver (hereinafter called DW), it is undeniable that this is a very good software, he basically achieved what is WYSIWYG. It is also because of this that many web-makers are ignorant of (x) HTML tags. However, to learn the Web standards you need to work with tags, you need to understand their characteristics. Even if you're not going to hit the code yourself, continuing to use the DW to do your job also requires knowing the code that DW survives. If you want to reduce redundant code and improve the quality of your Web pages, you need to recognize (x) HTML tags.

Then the study of nature to be gradual, of course, from the most commonly used, the simplest to start. Who is the most common and simplest label in all HTML tags? Then I'd say it's a paragraph tag, which is

, saying it is commonly used because almost all document files will use this tag, saying that he is simple in appearance, he has only one letter. Although simple, but it is also very important, because it is used to distinguish between paragraphs. We all know that paragraphs are used for dividing articles to facilitate reading. And sometimes, because of some software, or man-made operation makes the document with other labels to distinguish, the use of more special. Then some people will say: Not all the same, anyway, the distinction is open. The fact is, although for us, it is possible to distinguish between paragraphs, but for machines and programs, it is necessary to understand paragraphs and paragraphs to pass these tags. This is also the semantics of the tag, and the correct semantics will make your document easier for search engines to recognize. At the same time, reasonable arrangement of the use of the label also helps maintain and manage and code porting.

Of course, a lot of people may have known about this label and have been using it, and also found that paragraph labels do not use

Can be displayed as well. And is always using this method. This notation is allowed in HTML. However, this notation has been standardized in (X) HTML, and all paragraph tags must be tagged with an end tag. (

Example paragraph ... Text

Keep in mind that (x) HTML does not add any updated tags to HTML, it only regulates the use of HTML tags, and subtracts some of the unreasonable labels, as well as the attributes in the tags. So what are the attributes in the paragraph tag? How much will it stay? A number of documents were consulted.

Align property: The notation is

, the property values are: Left, right, center, justify (justified). This is an alignment property that manages the alignment of text in a paragraph. However, the use of this property is deprecated in (x) HTML, and of course the browser supports this property. Although we do not need to be good, why not, because this property can be done by the CSS can be very simple implementation, do not have to add these attributes in the code one by one.

The attributes you can use are: ID, class, style, title. Some of these properties will be analyzed later in this column, as long as you understand that you can use these attributes in the paragraph tag.

Well, if you haven't tried to set paragraph labels for articles now, you might as well add this code to your own project from now on. This will make it easier for you to master Web standards.

In addition, p is a block-level label, but in this block-level label can no longer appear block-level labels. The nested rules for (x) HTML can refer to the nested rules under (x) HTML Strict that are translated and interpreted by Junchen
  • Related Article

    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.