html笔记
**标题图标4种方法**
-1.使用后缀名为ico图标作为标题栏图标 -->
<link rel="icon" type="image/x-icon" href="img/123.ico"/>
2.使用jpg格式的图片作为标题栏图标
<link rel="icon" type="image/x-jpeg" href="img/123.jpg"/>
3.使用png格式的图片作为标题栏图标
<link rel="icon" type="image/x-png" href="img/123.png"/>
4.使用gif格式的图片作为标题栏图标
<link rel="icon" type="image/x-gif" href="img/123.gif"/>
**关键字和描述:**
关键字:
<meta name="keywords" content="我要自学网,自学html," />
描述:
<meta name="description" content="要设置的描述内容不超过100字" />
**页面自动跳转:**
<meta http-equiv="refresh" content="多少秒后执行跳转;url=要跳转的地址" />
**页面自动刷新:**
<meta http-equiv="refresh" content="多少秒后刷新" />
**引入样式文件语法:**
<link rel="stylesheet" type="text/css" href="引入文件路径"/>
**超链接:从一个页面链接到另外一个页面**
target:指定在哪里打开目标页面
-blank:在新窗口打开目标页面
<a href="https://www.51zxw.net" target="_blank">我要自学网</a>
HTML
最新推荐文章于 2020-10-09 23:06:21 发布