分享 11 个非常有用的 HTML One-Liners 代码
前端达人
共 2237字,需浏览 5分钟
·
2021-12-01 11:47
<body>
<p>
<abbr title="World Health Organization">WHOabbr> was founded in 1948.
p>
<p title="Free Web tutorials">W3Schoolsp>
body>
<a href="/images/myw3schoolsimage.jpg" download>
<a href="link/to/your/file" download="filename">Download linka>
<p>This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery<wbr>longwordthatwillbreakatspecific<wbr>placeswhenthebrowserwindowisresized.p>
<p dir="auto">This text is following dir=autop>
<details>
<summary>Epcot Centersummary>
<p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.p>
details>
![](https://filescdn.proginn.com/2cc7b11ad084bea4d1bd9882c8209cc8/ae3f98edf485c06b34680cdb98fdf38f.webp)
<p contenteditable='true'>This is a paragraph. Click the button to make me editable.p>
<video width="320" height="240" controls>
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="fgsubtitles_en.vtt" kind="subtitles" srclang="en" label="English">
<track src="fgsubtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian">
video>
<img src="/w3images/wedding.jpg" alt="Wedding" style="width:100%">
<img src="/w3images/rocks.jpg" alt="Rocks" style="width:100%">
<img src="/w3images/paris.jpg" alt="Paris" style="width:100%" loading="lazy">
<img src="/w3images/nature.jpg" alt="Nature" style="width:100%" loading="lazy">
<img src="/w3images/underwater.jpg" alt="Underwater" style="width:100%" loading="lazy">
<img src="/w3images/ocean.jpg" alt="Ocean" style="width:100%" loading="lazy">
<img src="/w3images/mountainskies.jpg" alt="Mountains" style="width:100%" loading="lazy">
<head>
<base href="https://www.w3schools.com/" target="_blank">
head>
<body>
<img src="images/stickman.gif" width="24" height="39" alt="Stickman">
<a href="tags/tag_base.asp">HTML base Taga>
body>
<input type="text" onpaste="return false" value="Paste something in here">
<div oncontextmenu="myFunction()" contextmenu="mymenu">
"true"
spellcheck="true">This is a praggagraph. It is editable. Try to change the text.
学习更多技能
请点击下方公众号 ![](https://filescdn.proginn.com/3442a6bfadb339948664c36897cf1f6c/b23fd044d0eac178b236a2453c2dd88d.webp)
![](https://filescdn.proginn.com/3442a6bfadb339948664c36897cf1f6c/b23fd044d0eac178b236a2453c2dd88d.webp)
评论