SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2007
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Using WordPress whilst XHTML Strict

    I'm new to WordPress, but am a seasoned designer/developer.

    I'm playing around with the visual editor and when I highlight text and center align it (again, using the visual editor), it produces the following:

    <p style="text-align: center;">My test text</p>

    Are you kidding me? Is there something I'm missing here? I'm looking for standard-compliant XHTML (pref strict) and the visual editor only knows how to spit out deprecated style attributes?

    If you want to only use XHTML strict markup, what are my options? Can I make the visual editor insert a class attribute in my <p> tag instead of a style attribute? Or do I need to forget about the visual editor completely and do everything by hand in the html editor?

    I see all these themes out there claiming their theme is 100% XHTML Strict. Well what good is that if wordpress' editor spits out nothing but deprecated HTML?

    I'm honestly looking for advice.. what my options are, what you guys do that want XHTML strict only, and was I asking too much of WP when I installed it? Thanks for any help.

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TantekHack View Post
    Or do I need to forget about the visual editor completely and do everything by hand in the html editor?
    Yes, that thing is for people that don't know what is going on behind the scenes or simply do not care. You can turn it off and just get a textbox under users > your profle.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •