ins元素和del元素
ins元素和del元素可以分别用来表示文档中添加和删除的文字。
| <body> <p> <del>I can <mark>sea</mark> the <mark>see</mark></del> <ins>I can <mark>see</mark> the <mark>sea</mark></ins> </p> </body> |
time元素
表示时间和日期。如果布尔属性pubdate存在,那么time元素表示的是整个HTML文档或离该元素最近的article元素的发布日期。datetime属性以RFC3339规定的格式指定日期和时间。有了datetime,就能在元素中以便于阅读的形式设置日期或时间,同时又确保计算机能无歧义地解析指定的日期或时间。
| <body> I still remember the best apple I ever tasted. I bought it at <time datetime="15:00">3 o'clock</time> on <time datetime="1984-12-7">December 7th</time>. </body> |
time元素可以不包含datetime属性,这时需要提供具备有效的机器可读格式的时间和日期,当时间和日期格式不规范时,则需要使用datetime属性来指定文本内容的机器可读格式。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持易采站长站。









