Title: Role attribute
Last modified: August 20, 2016

---

# Role attribute

 *  Resolved [r3plicant](https://wordpress.org/support/users/r3plicant/)
 * (@r3plicant)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/role-attribute/)
 * 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)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/role-attribute/#post-2610958)
 * Google results, among many others: [http://www.alistapart.com/articles/semanticsinhtml5](http://www.alistapart.com/articles/semanticsinhtml5)
   and [http://www.w3.org/TR/xhtml-role/](http://www.w3.org/TR/xhtml-role/)
 *  Thread Starter [r3plicant](https://wordpress.org/support/users/r3plicant/)
 * (@r3plicant)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/role-attribute/#post-2610967)
 * The first link more or less answered my question, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Role attribute’ is closed to new replies.

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)
 * [html5](https://wordpress.org/support/topic-tag/html5/)
 * [role](https://wordpress.org/support/topic-tag/role/)
 * [xhtml](https://wordpress.org/support/topic-tag/xhtml/)

 * 2 replies
 * 2 participants
 * Last reply from: [r3plicant](https://wordpress.org/support/users/r3plicant/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/role-attribute/#post-2610967)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
