validation in HTML with WordPress (2 posts)

  1. Edward R. Jenkins
    Posted 2 years 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 2 years 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