HTML5 Lang attributes and the dir attribute of the detailed _ basics

Source: Internet
Author: User
The 1:lang property is used to specify the attribute value of the element and the base language used for the element's content text, the default value is unknown, but it applies to attributes, depending on the semantics of the syntax and attributes, and the involved actions
The benefits of this property when the user's browser renders an HTML document are as follows:
(1) Assist search engine
(2) Assist speech synthesis
(3) Assist in selecting symbol variants for high quality printing
(4) Assist in selecting a set of quotes
(5) Assistance in resolving hyphens, bindings, and spaces
(6) Help with spell check and grammar check
2: Text Direction attribute dir
Copy Code code as follows:

<! DOCTYPE html>
<meta charset= "Utf-8" >
<title> Tang Poem </title>
<body>
<p style= "Text-align:center" ><bdo dir= "RTL" > Furong building Send Xin </bdo></p>
<p style= "Text-align:center" ><bdo dir= "RTL" > Wang changling </bdo></p>
<p style= "Text-align:center" ><bdo dir= "RTL" > Cold rain Lianjiang night into Wu,</bdo></p>
<p style= "Text-align:center" ><bdo dir= "RTL" > Ping ming Out of the Chushan solitary. </bdo></p>
<p style= "Text-align:center" ><bdo dir= "RTL" > Luoyang Relatives and friends asked,</bdo></p>
<p style= "Text-align:center" ><bdo dir= "RTL" > One ice Heart in the Jade pot. </bdo></p>
</body>

RTL: Right-to-left display

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.