Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 588487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:19:24+00:00 2026-05-13T15:19:24+00:00

I peeked inside the source of a public website which uses the XHTML 1.0

  • 0

I peeked inside the source of a public website which uses the XHTML 1.0 Strict DOCTYPE and noticed that it specifies two attribute related to the language of the page.

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

The page is in Japanese by the way. My question is this:-

I suspect that the attribute xml:lang & lang do not affect the rendering of the page in the browsers. It is the Content-Type in the HTTP Header which specifies the encoding of the page. Am I correct ?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:19:25+00:00Added an answer on May 13, 2026 at 3:19 pm

    The specification says:

    Language information specified via the lang attribute may be used by a user agent to control rendering in a variety of ways. Some situations where author-supplied language information may be helpful include:

    • Assisting search engines
    • Assisting speech synthesizers
    • Helping a user agent select glyph variants for high quality typography
    • Helping a user agent choose a set of quotation marks
    • Helping a user agent make decisions about hyphenation, ligatures, and spacing
    • Assisting spell checkers and grammar checkers

    Aside from that, I wouldn’t imagine it would affect layout or the document mode (quirks mode vs standards mode). PPK’s Quirksmode is pretty much the standard reference when it comes to things like this, and searching that site shows no mention of the lang attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I looked at the documentation and even peeked at the C source, and I
For my site I created an abstract Model which implements model-level read permissions. That
The getLines() method of scala.io.Source strips \r and \n from the lines it returns.
Recently I've peeked into the Linux kernel implementation of an atomic read and write
We are having MVC application which reads data from MSMQ. We are trying to
I have a blocking queue of objects. I want to write a thread that
I'm trying to optimize a concurrent collection that tries to minimize lock contention for
I've been developing iPhone apps for a while now and something that's always peeved
As we are facing GWT performance issues in a mobile app I peeked into
I wanted to use Clickpass in an webapp that I've been developing, as I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.