时间:2023-09-26 07:12:01 | 来源:网站运营
时间:2023-09-26 07:12:01 来源:网站运营
HTML语言基础:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>页面的标题</title></head><body> </body></html>
2、meta 元素<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>关于标题标签</title></head><body> <h1>一级标签</h1> <h2>二级标签</h2> <h3>三级标签</h3> <h4>四级标签 与默认文本大小基本相同</h4> <h5>五级标签</h5> <h6>六级标签</h6></body></html>
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>关于语义标签</title></head><body> <p>你好</p> <p><strong>你好</strong></p> <p><em>你好</em></p> <p><del>你好</del></p> <p><ins>你好</ins></p> <p>HTML 语言是一门 <ins>""</ins> 的语言</p></body></html>
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>关于段落</title></head><body><!-- 所有的 空格包括 /t 还有 /n;最终在浏览展示中都被视为一个空白 --><p>Click Duplicate The Duplicate button on the toolbar. A new template item is added to the same group as the original, and selected.</p><p>Click Duplicate The Duplicate button on the toolbar. A new template item is added to the same group as the original, and selected.</p></body></html>
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>关于段落</title></head><body><!-- 所有的 空格包括 /t 还有 /n;最终在浏览展示中都被视为一个空白 --><p>Click Duplicate The Duplicate<br> button<br> on the toolbar. A new template item is added to the same group as the original, and selected.</p><p>Click Duplicate The Duplicate button on the toolbar. A new template item is added to the same group as the original, and selected.</p></body></html>
<!DOCTYPE html><html> <head> <title>你好世界</title> </head> <body> <h1>我去春游</h1> <p>我玩得<em>很开心</em></p> <p>明天接着去!</p> <hr> </body></html>
<h1>有序列表</h1><ol> <li>cc</li> <li><a href="https://www.baidu.com/">百度</a></li> <li><img src="cc.jpg" height="120"></li></ol>
<h1>无序列表</h1><ul> <li>cc</li> <li><a href="https://www.baidu.com/">百度</a></li> <li><img src=".jpg" height="120"></li></ul>
<h1>自定义列表</h1><dl> <dt>标题</dt> <dd>项1</dd> <dd>项2</dd> <dd>项3</dd></dl>
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>关于 div 和 span</title></head><body> <!-- 每个 div 都是独立的,结束后必须跟换行 --> <div>111</div><div>222</div> <!-- span 不换行 --> <span>AAA</span> <span>BBB</span> <span>CCC</span></body></html>
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>关于图片</title></head><body> <!-- 浏览器取到的资源还是原图资源,只是最终显示的时候缩放 --> <img src="cc.jpg" height="300" alt="这是一个头像"></body></html>
<a href="target.html">本地的一个资源页</a><a href="https://www.baidu.com/">在当前页打开百度</a>
关键词:基础,语言