Files
2024-09-27 02:06:13 +08:00

58 lines
1.8 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
请选择你的爱好:
<select name="">
<option value="0">--请选择--</option>
<option value="1">编程</option>
<option value="2">骑车</option>
<option value="3">游泳</option>
<option value="4">跑步</option>
</select>
<table>
<tr>
<th>价格</th>
<th>品牌</th>
</tr>
<tr>
<td>100</td>
<td>小米</td>
</tr>
<tr>
<td>200</td>
<td>魅族</td>
</tr>
</table>
<p>
<strong>1. doctype 声明是不区分大小写的</strong> , 用来告知 Web 浏览器页面使用了哪种 HTML 版本。
<big>在HTML</big> 4.01 中,<!DOCTYPE><small>明需引</small> 用 DTD (文档类型声明),因为 HTML 4.01 是基于 SGMLStandard Generalized Markup Language 标准通用标记语言)。
HTML 4.01 规定了三种不同的 <!DOCTYPE> 声明分别是Strict、Transitional 和 Frameset。
HTML5 不是基于 SGML因此不要求引用 DTD。
2. 对于 <del>中文网页</del> 需要使用 <meta charset="utf-8"> 声明编码,否则会出现乱码。有些浏览器(如 360 浏览器)会设置 GBK 为默认编码,则你需要设置为 <meta charset="gbk">
目前在大部分浏览器中,直接输出中文会出现中文乱码的情况,这时候需要在头部将字符声明为 UTF-8。
</p>
<pre>
function loggingDecorator(wrapped) {
return function() {
console.log('Starting');
const result = wrapped.apply(this, arguments);
console.log('Finished');
return result;
}
}
</pre>
</body>
</html>