Home › Forums › Other › WordPress Newbie Question: Best Practice for HTML in Posts › Re: WordPress Newbie Question: Best Practice for HTML in Posts
June 26, 2013 at 9:31 pm
#140648
Participant
Anything that is complex, if you break it down and work in small pieces, it becomes manageable. So yes you should be working on smaller pieces, essentially building up a puzzle.
As for wrapping elements. Wrap them however you see fit. Divs are used to logically group elements, and they don’t represent anything really, they just help us group things. IMO classes should be applied to divs, and not paragraphs, unless you are trying to do something stylistically specific to it or if you are introducing some sort of JavaScript interaction.