HTML学习笔记——head、body及简单标签
2024-10-18 20:21:31
1> title标签、网站关键词、网站描述、实现百度网的跳转
2> 单标签、对标签、p标签
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- title标签 -->
<title>我是title</title> <!-- 网站关键词 -->
<meta name='keywords' content="切糕,卖切糕,卖切糕"/> <!-- 网站描述 -->
<meta name='description' content="本网站介绍,要有可读性,100-200字"/> <!-- 5秒钟后跳转到百度网 -->
<meta http-equiv='refresh' content="5;url='http://www.baidu.com'"/>
</head> <body> <!-- 单标签 -->
<img src="dog.jpg" width="100" height="150" title="图片"/> <!-- 对标签 -->
<a href="http://www.baidu.com" id="link" class="test">百度</a> <strong>我是strong标签</strong>
<p>我是p标签</p> </body>
</html>
3> h1标签、h2标签、font标签、加粗文字、下划线、嵌套
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head> <body> <!-- h1文章标题/只能用一次 -->
<h1>我是p标签</h1> <!-- h2文章标题/可以用多次/权重较低 -->
<h2>我是p标签</h2> <!-- font/color可以是英文或00ff00/size从1到7 -->
<font color="red" size="7">我是font标签</font> <!-- 加粗文字 -->
<strong>我是strong标签</strong> <!-- 嵌套 -->
<font color="red"><u><del>红色文字加下划线</del></u></font> </body>
</html>
最新文章
- 11月8日PHP练习《留言板》
- localStorage兼容ie6/7 用addBehavior 实现
- [POJ1338]Ugly Numbers
- C#:数据交互
- 注册码 myeclipse6.5-6.8
- Linux中errno使用 - [Linux]
- UltraEdit (Ctrl + F) 查找、(Ctrl + R)替换功能失效
- nyoj 67 三角形面积【三角形面积公式】
- UIView下使用Animation控制动画
- c++之 常用类型
- java基础解析系列(五)---HashMap并发下的问题以及HashTable和CurrentHashMap的区别
- SpringCloud Netflix Eureka(服务注册/发现)
- [IOI2000] 邮局
- 【nodejs】--express的中间件multer实现图片文件上传--【XUEBIG】
- vue实现tab切换功能
- [SequenceFile_1] Hadoop 序列文件
- 每天刷Web面试题(前10天汇总)
- Android studio 一个项目引入另一个项目作为Libary
- VS2003在解决方案范围内搜索卡死问题的解决
- POJ3304(KB13-C 计算几何)