Home > Article > Web Front-end > Detailed explanation of the specific usage and function of HTML time
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:
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!