Learning Web standards: Special characters in web standards

Source: Internet
Author: User

When you first started learning Web standards, there was this one:

Encode all < and & special symbols:
Any less than (<), which is not part of the label, must be encoded as & L T; Any greater-than sign (>), which is not part of the label, must be encoded as & G T;
Any number (&), which is not part of the entity, must be encoded as & a M p;
Note: There are no spaces between the above characters.

This is often the case in our usual jobs:

More >>

Domestic counterparts are mostly to write two greater than >> or simply write >> (more exaggerated is someone in order to pursue and the effect of the full consistency of the effect of the use of the song body here alone), more reasonable wording as follows:


 More 

\00BB-right Double angle quote, Unicode = » (»)

Since IE6/7 does not support after pseudo classes, it is also good to step back:

 More »

Display effect:

More

The best example is the path at the bottom left corner of the WordPress editor:

And the breadcrumbs are often written as the greater than the number is not < but should be according to WordPress backstage title:

 99CSS  -wordpress

The display effect is as follows:

Add a new article ‹99css-wordpress

Change ‹ 's L to R is right.

Another saw Aoao Wating on Twitter to discuss the space, Yiwen flew , said:

Test found space or \u0020 to indicate compatibility and semantics best

I am not very agree with, my view is: Use in HTML, and the use of \20 in CSS is more reasonable approach: p

Extended Reading

    • Using HTML Symbol entities Chinese translation: using HTML character entities
    • Character Entity Reference HTML 4
    • character references and whitespace characters


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.