Title: CSS Class Brackets?
Last modified: August 31, 2016

---

# CSS Class Brackets?

 *  Resolved [laling](https://wordpress.org/support/users/laling/)
 * (@laling)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/css-class-brackets/)
 * I’ve been away from the web for almost 5 years, so I apologize for asking this
   simple question.
 * As I was looking at the Twenty Sixteen WordPress theme, I noticed that there 
   is a class that has brackets. Since I’ve been gone, they came out with CSS3. 
   So things have changed. I provided a snippet below to show an example of what
   I mean. There’s parentheses and brackets in the classes now. What do they mean?
 *     ```
       audio:not([controls]) {
       	display: none;
       	height: 0;
       }
   
       [hidden],
       template {
       	display: none;
       }
       ```
   

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

 *  [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * (@paulwp)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/css-class-brackets/#post-7046258)
 * The first snippet targets audio element without controls and hide it. The second
   snippet is to hide template element and element that has `[hidden]` attribute.
 * Attribute selectors
    [https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors)
 * CSS pseudo-class, :not(X)
    [https://developer.mozilla.org/en/docs/Web/CSS/:not](https://developer.mozilla.org/en/docs/Web/CSS/:not)
 *  Thread Starter [laling](https://wordpress.org/support/users/laling/)
 * (@laling)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/css-class-brackets/#post-7046299)
 * Thank you Paul! The links are a good place for me to refresh my mind. Much appreciated!

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

The topic ‘CSS Class Brackets?’ is closed to new replies.

## Tags

 * [brackets](https://wordpress.org/support/topic-tag/brackets/)
 * [classes](https://wordpress.org/support/topic-tag/classes/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [css3](https://wordpress.org/support/topic-tag/css3/)
 * [parentheses](https://wordpress.org/support/topic-tag/parentheses/)

 * 2 replies
 * 2 participants
 * Last reply from: [laling](https://wordpress.org/support/users/laling/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/css-class-brackets/#post-7046299)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
