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