[HTML5] Level up -- Display
HTML5 Input type:
Traditionally presentational tags, the i, b, em, and strong tags have been given new semantic meanings:
-
- The i tag represents text in an "alternate voice" or "mood";
- The b tag represents "stylistically offset" text
<p><i>I hope this works</i>, he thought.</p> alternate vocie or mood
<p><b class="lead">The event take place this upcomming Saturday, and over 3,000 people have already registered.</b></p> stylistically offest
-
- The em tag now means "Stress emphasis"
- The strong tag now means "strong importance"
<p>Make sure to sign up <em>before</em> the day of the event, Septmber 16, 2013</p>
<p>Make sure to sign up <em>before</em> the day of the event, <strong>Septmber 16, 2013</strong></p>
main, article, header tag:
<main class="main"> <article class="post"> <header> <h2><a href="/blog/opening-date-announced">Opening Date Announced</a></h2> <p><em>Published on</em>: September 16, 2013</p> </header> <p><b class="article-lead">The Art Gallery will be opening to an <em>invitation-only</em> group of art enthusiasts across the country on <strong>December 1, 2013</strong>.</b></p> <p>The opening of the Art Gallery will coincide with the release of several of Armando Blontio's finest art pieces, including, "Crème de la Crème," which has a mounting anticipation for its debut.</p> <p>As a frequently misrespresented artist, Armando Blontio has struggled to uphold his image amidst the criticism. "I hope to dispel the illusion of my self-centeredness, as seen by my critics, with the Art Gallery opening," said Mr. Blontio.</p> </article> </main>
figure and figcaption
<figure> <img src="armando-blontio.jpg" alt="A Famous Armando Blontio Painting" width="640" height="470" /> <figcaption class="caption">"Crème de la Crème," a famous Armando Blontio painting.</figcaption> </figure>
Time and datetime:
<header> <h2><a href="/blog/opening-date-announced">Opening Date Announced</a></h2> <p><em>Published on</em>: <time datetime="2013-09-16">September 16, 2013</time></p> </header>
List, datalist:
<input type="text" list="categories"/> <!-- Add your datalist here --> <datalist id="categories"> <option value="reviews"> <option value="profiles"> <option value="announcements"> </datalist>
placeholder and autofocus:
<input type="search" placeholder="Search..." autofocus/>
required:
<input type="email" placeholder="Enter your email..." required/>
partten and tel input
<input type="tel" pattern="[0-9]{10}"/>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具