Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Chinese text in HTML page and Byte-Order Mark

Reply
Thread Tools

Re: Chinese text in HTML page and Byte-Order Mark

 
 
Ben Bacarisse
Guest
Posts: n/a
 
      05-28-2013
Alfred Molon <(E-Mail Removed)> writes:

> I've noticed that some pages use <span lang="zh" xml:lang="zh"> to embed
> Chinese text, but even simply embedding Chinese text in a UTF-8 HTML
> page seems to work fine as well, for instance:
> http://www.molon.de/galleries/Taiwan/Kaohsiung/Skyline/
>
> Why then would this language declaration be necessary?


It lets the reader (either human or mechanical) know what language a
piece of text is written in. For example, a voice-based browser needs
to pronounce

<h1 lang=en>Les Chats</h1>

and

<h1 lang=fr>Les Chats</h1>

quite differently.

--
Ben.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Chinese text in HTML page and Byte-Order Mark dorayme HTML 0 05-27-2013 11:45 PM
Re: Chinese text in HTML page and Byte-Order Mark Tim Streater HTML 0 05-27-2013 10:17 PM
PEP 8: Byte Order Mark (BOM) vs coding cookie twyk Python 2 08-25-2008 03:59 AM
XML-Parsing with UTF-8 Byte-Order-Mark (BOM) Patrick.Gebhardt@gmail.com Java 3 06-29-2007 05:18 PM
XML-Parsing with UTF-8 Byte-Order-Mark (BOM) Patrick.Gebhardt@gmail.com Java 0 06-25-2007 03:50 PM



Advertisments