Title: Adding Classes to HTML
Last modified: August 20, 2016

---

# Adding Classes to HTML

 *  [jackb87](https://wordpress.org/support/users/jackb87/)
 * (@jackb87)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/adding-classes-to-html/)
 * I’m just getting started with WordPress and was wondering what were the best 
   practices for adding extra classes to an html element. Should I just hardcode
   them into my template files? I’ll be taking a fairly modular approach with my
   CSS, so will need to be adding plenty.
 * Thanks in advance for your help,
 * Jack

The topic ‘Adding Classes to HTML’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * 0 replies
 * 1 participant
 * Last reply from: [jackb87](https://wordpress.org/support/users/jackb87/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/adding-classes-to-html/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
