HTML Tag and name space (3 posts)

  1. Tsalagi
    Posted 6 years ago #

    Howdy! I'm writing a theme from scratch finally. Some have ask me why I would do such a thing and I can only answer..."to be able to say I can". So having said that, the name space attributes in the html tag has me a bit confused. Why does WordPress include the code <?php language_attributes(); ?> and not just a simple line of code like this.
    <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
    Doesn't that inclusion carry unnecessary weight and add a call slowing down the processes?

  2. Tsalagi
    Posted 5 years ago #


  3. Clayton James
    Posted 5 years ago #

    Function Reference/language attributes

    "Display the language attributes for the html tag."

    "Builds up a set of html attributes containing the text direction and language information for the page."

    Source file:
    See lines 1868 - 1896

Topic Closed

This topic has been closed to new replies.

About this Topic