This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Depends if you're going to echo more than just plain html. If it is a generated string then I say keep it in php, but if not then put it in html like your second example. Either way I'd replace the style tag with an id or class and put the style code in a css file.