WordPress.org

Ready to get started?Download WordPress

Forums

validation in HTML with WordPress (2 posts)

  1. Edward R. Jenkins
    Member
    Posted 1 year ago #

    Hey Guys,

    I'm having trouble getting the <time> element in validate in HTML5 when generated by PHP/WordPress. I've tried several variants, but here is my starting point. Any ideas?

    <time><?php the_time('F jS, Y') ?></time>

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    I'm not sure what your php echos out, but its value should follow W3C's syntax guidelines http://www.w3.org/TR/html-markup/time.html

Topic Closed

This topic has been closed to new replies.

About this Topic