Forums

validation in HTML with WordPress (2 posts)

  1. Edward
    Member
    Posted 4 months 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 Nevins
    Volunteer Moderator
    Posted 4 months 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

Reply

You must log in to post.

About this Topic