Grow your CSS skills. Land your dream job.

How to use the HTML time element in blog post?

  • # March 16, 2013 at 5:05 pm

    Hi all

    I am developing a blog post and wish to wrap the date the blog was published around a ‘time’ tag. The code would look like this….

    However, how does the datetime attribute get updated to show the correct date? The date itself would be dynamically created via wordpress. Do I simply put the same code that generates the date into the attribute tag?

    # March 16, 2013 at 6:01 pm

    I think you’d probably end up using something like this:

    # March 16, 2013 at 6:12 pm

    Thanks, that is what I was thinking. It seems the most logical solution

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".