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 186839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:43:03+00:00 2026-05-11T15:43:03+00:00

What is the difference between the 2 lines shown below?: <html xmlns=http://www.w3.org/1999/xhtml xml:lang=en-GB> <meta

  • 0

What is the difference between the 2 lines shown below?:

<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-GB'>  <meta http-equiv='content-language' content='en-GB' /> 

If i didn’t have the meta tag, what would be the consequence?

Does the meta one affect screen readers and the top one not? I’m a bit confused as to what exactly they do.

Thanks in advance for any help

Best regards

Skip.

  • 1 1 Answer
  • 0 Views
  • 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. 2026-05-11T15:43:04+00:00Added an answer on May 11, 2026 at 3:43 pm

    Dive Into Accessibility’s Identifying your language page recommends adding as much as possible to handle as many screen readers as you can, depending on your doctype:

    If you’re using any variant of HTML 4, change your tag to this (use your own language code if not English):

    <html lang='en'>

    If you’re using any variant of XHTML 1.0, change your tag to this (use your language code in both places):

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

    If you’re using XHTML 1.1, change your tag to this (again, insert your own language code):

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

    The same article also references ISO 639.2 to determine what the value of xml:lang should be, although the XML specification references a separate document, RFC4646 Best Current Practice – Tags For Identifying Languages, which seems to indicate your value of ‘en-GB’ is valid.

    Google’s Web Authoring Statistics (2005) have the following to say about it:

    Next is the Content-Language value (used on the http-equiv attribute). Almost as many people use this as specify the lang attribute on the html element. In the HTML5 spec currently the http-equiv attribute is only allowed for the one case of setting the character encoding, which can’t really be dropped, as the graph above demonstrates. However, http-equiv=’Content-Language’ is supported by at least one browser, and as we see here, it is widely used — maybe http-equiv should not be removed after all.

    Further, a thread on webproworld talks about the difference between using http-equiv=content-language and name=language to describe the language of the document and implies that both are necessary.

    Finally, refer to the HTML Techniques for Web Content Accessibility Guidelines 1.0 document at W3C for some more recommendations, specifically Identifying the Primary Language.

    In conclusion it looks like screen readers are looking at lang attributes more than content-language meta information, but most recommendations I’ve seen advise using meta data anyway. Especially the Google statistics seem pertinent, so perhaps you should leave both in.

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

Sidebar

Related Questions

What is the difference between the two marked lines in the code below? template
Using LINQ on collections, what is the difference between the following lines of code?
Could someone please explain the difference between the following two lines of code: 1.
What's the difference between the functions plot and line in MATLAB? Are they doing
What is the difference between -XX:+UseParallelGC and -XX:-UseParallelGC? Most links indicate the first, but
At a unix command line, what's the difference between executing a program by simply
Is there a substantial difference in Python 3.x between: for each_line in data_file: if
Difference between start-pointers and interior-pointers and in what situation we should prefer one over
The difference between Chr and Char when used in converting types is that one
What's the difference between CopyIcon and DuplicateIcon ?

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.