Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress Newbie Question: Best Practice for HTML in Posts Re: WordPress Newbie Question: Best Practice for HTML in Posts

#140648
Alen
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.