[resolved] Role attribute (3 posts)

  1. r3plicant
    Posted 4 years ago #

    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?

  2. Mark Ratledge
    Forum Moderator
    Posted 4 years ago #

  3. r3plicant
    Posted 4 years ago #

    The first link more or less answered my question, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic