Support » Fixing WordPress » Using <hr /> Tags

  • How can one use an <hr /> tag without it being wrapped by and , therefore rendering it invalid XHTML 1.0?

Viewing 10 replies - 1 through 10 (of 10 total)
  • and even. Let’s read the comment “Put code between backticks” next time, shall we Mark.

    Mark,
    Are you talking about using them in a post, or as part of your page mark-up?
    Craig

    Using them in an actual post. Editing the template is easy.

    electrolund

    (@electrolund)

    I’d like to know this too, for validation purposes. Is there a more elegant way of getting horizontal separation that validates?

    Joshua Sigar

    (@alphaoide)

    Are you saying that the <hr /> is wrapped by <p></p> tags. If so you might want to use the following plugins, but then you have to code all <p> tags for your posts manually.
    http://dev.wp-plugins.org/wiki/TextControl

    Mark (podz)

    (@podz)

    Support Maven

    You could use an image as a divider ?

    Yngwin

    (@yngwin)

    Podz going retro? No, let’s not go back to spacer images, that’s so last century. Spacing and horizontal seperation are presentation matters and therefore should be handled by CSS.

    Mark (podz)

    (@podz)

    Support Maven

    Heh … I didn’t mean spacer images 🙂

    Rather than a boring ___________________ it’s possible instead to use a custom image – and still handled by css .

    I’ve always used <hr /> and it’s never been wrapped by a . are you something else than just using <hr /> in the text?

    Yngwin

    (@yngwin)

    podz – you’re right there, an image can of course be used to make a nice border/division and of course this should be handled by CSS.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Using <hr /> Tags’ is closed to new replies.