WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How should I properly close this code? (4 posts)

  1. flush
    Member
    Posted 7 years ago #

    The validator signals an error with the way I close this code, can someone tell me what's wrong?
    <p align="center"><a href="http://raphaella.co.kr/blog/photo/agnese/agnese370un.jpg" title="Agnese ring" rel="lightbox"><img title="Agnese ring" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px; margin-right: 5px; padding-top: 5px" alt="Agnese ring" src="http://raphaella.co.kr/blog/photo/agnese/agnese133.jpg" width="133" border="0" />

    The validator says this:
    1. Error Line 79 column 3: end tag for "a" omitted, but OMITTAG NO was specified.

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    2. Info Line 78 column 24: start tag was here.
    <p align="center"><a href="http://raphaella.co.kr/blog/photo/agnese/agnese

  2. ZMAng
    Member
    Posted 7 years ago #

    Based on the code you've shown, you should be closing it with a </a> and possibly a </p> as well.

  3. flush
    Member
    Posted 7 years ago #

    Yes I just found out. </a></p> is the correct way to end it.
    Thanks

  4. theiconoclast31
    Member
    Posted 7 years ago #

    EDIT: Fine, you guys beat me. Sheesh. You fast responders!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.