SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validation Question

    I receive the following message when check HTML validation for www.easy-budgeting.com:

    Line 85, character 21:
    <p align="center" class="style52"><strong>Save mo ...
    ^Error: there is no attribute align for this element (in this HTML version)


    I was wondering if someone could help me rectify this as no matter what I try, it doesn't seem to work!

    Many thanks

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The align attribute is deprecated in HTML 4.01 Strict, XHTML 1.0 Strict and XHTML 1.1.

    It's presentational and should be handled in CSS,
    Code CSS:
    p {text-align:center}

    If you want to use the old-school attribute, you'll need to use an old-school Transitional doctype to make it valid.
    Birnam wood is come to Dunsinane


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
  •