Html lang attribute

This is a discussion on Html lang attribute within the Tech Board forums, part of the Community Boards category; Is the html "lang" attribute supported in all major browsers (i.e. IE, FF, Opera, Chrome, and Safari)? I googled it, ...

  1. #1
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827

    Question Html lang attribute

    Is the html "lang" attribute supported in all major browsers (i.e. IE, FF, Opera, Chrome, and Safari)? I googled it, but I couldn't find the answer.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    Create a few simple HTML files on your machine with the lang attribute, and load the file into your browser.

    Then set the locale of the browser and see if what you see changes.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827
    Quote Originally Posted by Salem View Post
    Create a few simple HTML files on your machine with the lang attribute, and load the file into your browser.

    Then set the locale of the browser and see if what you see changes.
    Umm...thanks, but that's not what I'm after. I just want to know if all the major browsers support the html "lang" attribute or not. Doing what you said wont work for that, as I'd need to have all major browsers installed on my computer, and I don't. I would have thought someone here would know the answer to that question, but I guess not...

    Thanks anyway.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  4. #4
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,738
    For this type of question, you're really asking about the html spec; it depends on what version. The html lang attribute is in HTML 4.01, which is old enough to be well supported on browsers that matter.

  5. #5
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827
    What's the newest html version?
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    I suggest you ask on a dedicated HTML authoring board then.

    Besides, what is YOUR defnintion of "major browser"?
    Most browsers seem to cohabit, once you've got past the "untick make this the default brower and never ask me again" step.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827
    Quote Originally Posted by Salem View Post
    I suggest you ask on a dedicated HTML authoring board then.

    Besides, what is YOUR defnintion of "major browser"?
    Most browsers seem to cohabit, once you've got past the "untick make this the default brower and never ask me again" step.
    By "major browser", I mean the browsers most well-known and most commonly used, i.e. IE, FF, Opera, Chrome, and Safari.

    Anyway, thanks guys. That answers that question.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    It's perfectly reasonable to have all those browsers installed. That's pretty much required for web development actually.

    There are just too many minor differences between browsers. Testing is the only way to find out.

    Usually, though, if something works in IE and in FF, I will be 95% sure it will work in all browsers, since there are really 2 types of browsers in use today - IE and standard compliant browsers (everything else). So IE + something else will usually do.

    Discrepancies between non-IE browsers are usually minor and cosmetic, with no impact on functionality.

  9. #9
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Quote Originally Posted by Programmer_P View Post
    What's the newest html version?
    HTML 5 (Though it is still a working draft at this time).

  10. #10
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827
    I'm writing a web coder program which can code in several different web languages including html. Currently, I am working on an html interface using html 4.0.1.

    Would any of you recommend I use Html 5 instead? I'm thinking a lot of websites will use html version 4.0.1 for a while longer, so I was going to code first for html 4.0.1, and then maybe later, once html 5 is fully developed and in use, I'll add the functionality in for that version.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  11. #11
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    Would any of you recommend I use Html 5 instead? I'm thinking a lot of websites will use html version 4.0.1 for a while longer, so I was going to code first for html 4.0.1, and then maybe later, once html 5 is fully developed and in use, I'll add the functionality in for that version.
    I think that would be a good idea (to go with 4 first), since browser supports for HTML 5 are still very incomplete, so even if you can output HTML 5, you won't have browsers to test it with, therefore it probably won't work with real HTML 5 browsers when they come out.

    I would imagine documentation (in terms of Google results) is very lacking, too, since no one is using it yet.

  12. #12
    Programming Ninja In-T...
    Join Date
    May 2009
    Posts
    827
    Quote Originally Posted by cyberfish View Post
    I would imagine documentation (in terms of Google results) is very lacking, too, since no one is using it yet.
    Well, actually, I already found some documentation for html 5, such as the documentation at w3schools.com, but I don't know how complete it is. So yeah, I'll go with html 4 for now.

    Thanks for the confirmation.
    I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.

  13. #13
    Registered User
    Join Date
    May 2010
    Posts
    74
    You can code with html5 like you would in html4.01. There's alot of compatibility in html5.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LDAP Query
    By Travoiz in forum C++ Programming
    Replies: 0
    Last Post: 08-13-2009, 02:58 PM
  2. html web translator/interpreter
    By Aisthesis in forum C++ Programming
    Replies: 6
    Last Post: 08-02-2009, 02:17 PM
  3. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 05:32 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21