企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# HTML5语言 头标记 ``` <pre class="calibre14">``` <span class="token"><</span><span class="token">!</span>DOCTYPE html<span class="token">></span> <span class="token"><</span>meta charset<span class="token">=</span><span class="token4">"utf-8"</span><span class="token">></span> <span class="token"><</span>base href<span class="token">=</span><span class="token4">"http://www.runoob.com/images/"</span><span class="token">/</span><span class="token">></span> <span class="token"><</span>link rel<span class="token">=</span><span class="token4">"stylesheet"</span> type<span class="token">=</span><span class="token4">"text/css"</span> href<span class="token">=</span><span class="token4">"mystyle.css"</span><span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"keywords"</span> content<span class="token">=</span><span class="token4">"HTML, CSS, XML, XHTML, JavaScript"</span><span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"description"</span> content<span class="token">=</span><span class="token4">"Free Web tutorials on HTML and CSS"</span><span class="token">></span> <span class="token"><</span>meta name<span class="token">=</span><span class="token4">"author"</span> content<span class="token">=</span><span class="token4">"Hege Refsnes"</span><span class="token">></span> <span class="token"><</span>meta http<span class="token">-</span>equiv<span class="token">=</span><span class="token4">"refresh"</span> content<span class="token">=</span><span class="token4">"30"</span><span class="token">></span> ``` ``` 框架 ``` <pre class="calibre14">``` <span class="token"><</span>iframe src<span class="token">=</span><span class="token4">"demo_iframe.htm"</span> width<span class="token">=</span><span class="token4">"200"</span> height<span class="token">=</span><span class="token4">"200"</span> frameborder<span class="token">=</span><span class="token4">"0"</span><span class="token">></span><span class="token"><</span><span class="token">/</span>iframe<span class="token">></span> ``` ``` 视频 ``` <pre class="calibre14">``` <span class="token"><</span>video width<span class="token">=</span><span class="token4">"320"</span> height<span class="token">=</span><span class="token4">"240"</span> controls<span class="token">></span> <span class="token"><</span>source src<span class="token">=</span><span class="token4">"movie.mp4"</span> type<span class="token">=</span><span class="token4">"video/mp4"</span><span class="token">></span> <span class="token"><</span>source src<span class="token">=</span><span class="token4">"movie.ogg"</span> type<span class="token">=</span><span class="token4">"video/ogg"</span><span class="token">></span> 您的浏览器不支持Video标签。 <span class="token"><</span><span class="token">/</span>video<span class="token">></span> ``` ``` 音频 ``` <pre class="calibre14">``` <span class="token"><</span>audio controls<span class="token">></span> <span class="token"><</span>source src<span class="token">=</span><span class="token4">"horse.ogg"</span> type<span class="token">=</span><span class="token4">"audio/ogg"</span><span class="token">></span> <span class="token"><</span>source src<span class="token">=</span><span class="token4">"horse.mp3"</span> type<span class="token">=</span><span class="token4">"audio/mpeg"</span><span class="token">></span> 您的浏览器不支持 audio 元素。 <span class="token"><</span><span class="token">/</span>audio<span class="token">></span> ``` ``` 连接 ``` <pre class="calibre14">``` <span class="token"><</span>a href<span class="token">=</span><span class="token4">"http://www.runoob.com/"</span> target<span class="token">=</span><span class="token4">"_blank"</span><span class="token">></span>访问菜鸟教程<span class="token">!</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span> ``` ``` 表单数字 ``` <pre class="calibre14">``` <span class="token"><</span>select id<span class="token">=</span><span class="token4">"select"</span> multiple<span class="token">></span> <span class="token"><</span>option value<span class="token">=</span><span class="token4">"中国0"</span> selected<span class="token">></span>中国<span class="token3">0</span><span class="token"><</span><span class="token">/</span>option<span class="token">></span> <span class="token"><</span>option value<span class="token">=</span><span class="token4">"中国1"</span><span class="token">></span>中国<span class="token3">1</span><span class="token"><</span><span class="token">/</span>option<span class="token">></span> <span class="token"><</span>option value<span class="token">=</span><span class="token4">"中国2"</span><span class="token">></span>中国<span class="token3">2</span><span class="token"><</span><span class="token">/</span>option<span class="token">></span> <span class="token"><</span>option value<span class="token">=</span><span class="token4">"中国3"</span><span class="token">></span>中国<span class="token3">3</span><span class="token"><</span><span class="token">/</span>option<span class="token">></span> <span class="token"><</span><span class="token">/</span>select<span class="token">></span> <span class="token"><</span>input type<span class="token">=</span><span class="token4">"number"</span> name<span class="token">=</span><span class="token4">"quantity"</span> min<span class="token">=</span><span class="token4">"1"</span> max<span class="token">=</span><span class="token4">"5"</span><span class="token">></span> <span class="token"><</span>input type<span class="token">=</span><span class="token4">"text"</span> name<span class="token">=</span><span class="token4">"lname"</span> form<span class="token">=</span><span class="token4">"form1"</span><span class="token">></span>form表示表单外依然属于这个表单id <span class="token"><</span>input type<span class="token">=</span><span class="token4">"file"</span> name<span class="token">=</span><span class="token4">"img"</span> multiple<span class="token">></span> 多选属性 pattern<span class="token">=</span><span class="token4">"[A-Za-z]{3}"</span> 正则 placeholder<span class="token">=</span><span class="token4">"First name"</span> 提示 required 必填 readonly只读 ``` ``` 实体 ``` <pre class="calibre16">``` 空格 <span class="token">&</span>nbsp<span class="token2">;</span> © <span class="token">&</span>copy<span class="token2">;</span> 换行 <span class="token">&</span><span class="token3">13</span><span class="token2">;</span> <span class="token">&</span> <span class="token">&</span>amp<span class="token2">;</span> <span class="token"><</span><span class="token">></span> <span class="token">&</span>lt<span class="token2">;</span> <span class="token">&</span>gt<span class="token2">;</span> <span class="token2">{</span><span class="token2">}</span> <span class="token">&</span>#<span class="token3">123</span><span class="token2">;</span> <span class="token">&</span>#<span class="token3">125</span><span class="token2">;</span> " <span class="token">&</span>quot<span class="token2">;</span> ``` ```