Title: Separate HTML from Code in Plugins?
Last modified: August 19, 2016

---

# Separate HTML from Code in Plugins?

 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/separate-html-from-code-in-plugins/)
 * I know some plugin creators already do this and I was wondering the best way 
   to do it. I am creating an age verification plugin from scratch for a client 
   and I’m in the middle of finishing the options page. I’m just wanting to separate
   the HTML from the Code.
 * It’s not a huge amount of code but for aesthetics, I would like it separated,
   any ideas would be appreciated.

The topic ‘Separate HTML from Code in Plugins?’ is closed to new replies.

## Tags

 * [plugin function](https://wordpress.org/support/topic-tag/plugin-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Jay](https://wordpress.org/support/users/phyrax/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/separate-html-from-code-in-plugins/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
