WordPress.org

Ready to get started?Download WordPress

Forums

HTML Tag and name space (3 posts)

  1. Tsalagi
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    Anyone?

  3. ClaytonJames
    Member
    Posted 3 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