您好,欢迎访问一九零五行业门户网

HTML标签

html中的元素用于描述元数据,即描述、关键字、文档作者等。该元数据不会显示在页面上,但由搜索引擎、网络浏览器等使用。
现在,您还可以在下设置视口来设置网页的尺寸 -
<meta name="viewport" content="width=device-width, initial-scale=1.0">
以下是属性 -
sr.no类型和描述
1 名称
属性的名称。可以是任何东西。示例包括关键字、描述、作者、修订版本、生成器等。
2 内容
指定属性的值。
3 方案(已弃用)
指定解释属性值的方案(如内容属性中声明的那样)。
4 http-equiv
用于http响应消息头。例如,http-equiv 可用于刷新页面或设置 cookie。值包括 content-type、expires、refresh 和 set-cookie。
5 字符集
字符编码。
示例现在让我们看一个实现 标记的示例 -
 现场演示
<!doctype html><html><head><meta name="description" content="learn for free"><meta name="keywords" content="video tutorials, free tutorials, learn, web"><meta http-equiv="refresh" content="20"><meta name="author" content="jack sparrow"></head><body><h2>tutorials</h2><p>programming tutorials for free:</p><ol><li>java</li><li>c++</li><li>c</li><li>c#</li></ol></body></html>
输出这将产生以下输出 -
以上就是html标签的详细内容。
其它类似信息

推荐信息