Home  >  Article  >  Web Front-end  >  Detailed explanation of the specific usage and function of HTML time

Detailed explanation of the specific usage and function of HTML time

藏色散人
藏色散人Original
2018-09-08 10:25:274900browse

This article will introduce to you the specific usage and function of the time tag in HTML. The

Let’s give you a detailed explanation of the usage and use of time in HTML through a simple code example.

<p>
我们在 <time datetime="2018-09-10">教师节</time> 为老师准备礼物!
</p>

The effect of this simple code when we access it on the browser is:

Detailed explanation of the specific usage and function of HTML time

We can see that only the A piece of text, but the content of the

It should be noted that time must be used together with the datetime attribute. The value after datetime is the date and time you want to mark!

For more HTML-related knowledge, you can learn [HTML Video Tutorial] and [HTML Manual]!

So the above is about the specific usage and function of the

The above is the detailed content of Detailed explanation of the specific usage and function of HTML time. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn