Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: defining documents language in HTML

defining documents language in HTML 10 months 3 weeks ago #50499

  • Nairb
  • Nairb's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
Hi,

If I want to write a page in Dutch - language code - nl , where do I replace "en" in beginnign of my document.

My understandign is it is only in the lang="" section like this


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="www.w3.org/1999/xhtml" xml:lang="en" lang="nl">


as the other en/EN refer to the coding language and not the language of the website. Is this correct?

Thanks

Brian
Please become a member of OSTraining to reply to this post.

defining documents language in HTML 10 months 3 weeks ago #50513

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3954
  • Thank you received: 134
  • Karma: 9
Hi Brian, and welcome to OSTraining. Happy to have you here! :-)

[Language] - This is the "Public Text Language"; the natural language encoding system used in the creation of the referenced object. It is written as an ISO 639 language code (uppercase, two letters.) HTML/XHTML DTDs are usually (always?) written in English ("EN".)

Also check out this "How to" on changing doctype languages:

www.webmasterworld.com/forum21/8531.htm
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

defining documents language in HTML 10 months 3 weeks ago #50575

  • Nairb
  • Nairb's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 18
  • Karma: 0
Thanks Tessa, much appreciated.
Please become a member of OSTraining to reply to this post.

defining documents language in HTML 10 months 3 weeks ago #50583

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Hi Brian,

On behalf of Tessa, and the rest of the team, you are most welcome.

Glad you're with us and let us know if you run into any other questions.

Cheers,
Ed
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.