Support » Themes and Templates » Role attribute

  • Resolved r3plicant

    (@r3plicant)


    I was looking through the header.php file for the twentyeleven theme and I saw this line

    <header id="branding" role="banner">

    I’m new to web development so I was curious to what the role attribute was, after googling I found that it is a xHTML attribute but the document is HTML5?

    Is this attribute useless in HTML5 and should I remove it for my custom theme?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Role attribute’ is closed to new replies.