WordPress.org

Forums

How WP can generates pretty code? (4 posts)

  1. Zilli
    Member
    Posted 5 years ago #

    Hi guys,

    Is it possible to "force" WP to generates a pretty HTML code? Like http://css-tricks.com/what-beautiful-html-code-looks-like

    Cheers

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    Code your theme properly.....

    The majority of the output (barring plugins...and even that can be affected somewhat) is dictated by the theme

  3. Zilli
    Member
    Posted 5 years ago #

    thanks

  4. Mark / t31os
    Moderator
    Posted 5 years ago #

    What makes the code nice to look at is the fact it's actually indented correctly, this is the most common thing people fail to do, either due to the editor they use, laziness or whatever else..

    The HTML5 tags look nice, but to anyone with even the most basic of HTML understanding it offers little more in terms of readability or functionality over XHTML 1.1 ... it's simply more idiot proof...

    It's a very basic example in the write-up, i'd love to see the same author do a write up with a mixture of PHP and HTML, as after all i believe the only things he's really shown there, is that indented code and idiot proof named tags look nice... which for me, was already dead obvious...

    Personally i think..

    <div class="header">

    Is just as obvious and explanatory as doing...

    <header>

    .. perhaps i'm just old fashioned though.. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic