Home > Web Front-end > JS Tutorial > Detailed explanation of HTML5 lang attribute and dir attribute_Basic knowledge

Detailed explanation of HTML5 lang attribute and dir attribute_Basic knowledge

WBOY
Release: 2016-05-16 17:32:04
Original
1194 people have browsed it
1: The lang attribute is used to specify the attribute value of the element and the base language used by the element's content text . The default value is unknown. However, whether it is applicable to the attribute also depends on the syntax and semantics of the attribute, as well as the volume Input operation
When the user browser renders an HTML document, the benefits of this attribute are as follows:
(1) Assist search engines
(2) Assist in speech synthesis
(3) Assist in selecting symbol variants for high-quality printing
(4) Assist in selecting a set of quotation marks
(5) Assist in resolving hyphens, bindings and spaces
(6) Assist with spelling and grammar checking
2: Text direction attribute dir
Copy code The code is as follows:





A Tang Poetry


Farewell to Xin Jian at Furong Tower


Wang Changling


The cold and rainy night entered Wu,< /bdo>


Pingming sees off guests Chu Shangu.


If relatives and friends in Luoyang ask each other, < /p>

A piece of ice is in the jade pot.





RTL: Display from right to left

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template