-
<br>换行:
html第一行<br>第二行 -
<hr>水平分割线:
html上文<hr>下文 -
<img>插入图片:
html<img src="pic.jpg" alt="描述" width="300"> -
<input>输入控件:
html<input type="text" name="user" placeholder="用户名"> -
<meta>设置字符集与视口:
html<meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> -
<link>引入外部 CSS:
html<link rel="stylesheet" href="style.css"> -
<area>图片热点区域:
html<map name="m"> <area shape="rect" coords="0,0,100,100" href="page1.html"> </map> <img src="map.png" usemap="#m"> -
<base>指定基础 URL/打开方式:
html<base href="https://example.com/" target="_blank"> -
<col>设置列样式:
html<table> <col style="background:#eee"> <col style="width:150px"> <tr><td>列1</td><td>列2</td></tr> </table> -
<embed>嵌入插件内容:
html<embed src="video.swf" width="400" height="300"> -
<source>给多媒体提供多格式:
html<video controls> <source src="mv.mp4" type="video/mp4"> <source src="mv.webm" type="video/webm"> </video> -
<track>视频字幕:
html<video controls> <source src="mv.mp4" type="video/mp4"> <track kind="subtitles" src="zh.vtt" srclang="zh" label="中文"> </video> -
<wbr>建议断字处:
html超长单<wbr>词可在此处换行
HTML常用单标签速查手册
float_六七2025-11-05 10:38
相关推荐