html入门实例代码2

2025-05-20 21:12:59

1、<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><body><h1 align="center">This is heading 1</h1><p>上面的标题在页面中进行了居中排列。上面的标题在页面中进行了居中排列。上面的标题在页面中进行了居中排列。</p></body></html>

2、<html><body><p>hr 标签定义水平线:</p><hr /><p>这是段落。</p><hr /><p>这是段落。</p><hr /><p>这是段落。</p></body></html>

3、<html><body><!--这是一段注释。注释不会在浏览器中显示。--><p>这是一段普通的段落。</p></body></html>

4、<html><head><meta http-e孥恶膈茯quiv="Content-Type" content="text/html; charset=gb2312" /><meta http-equiv="Content-Language" content="zh-cn" /></head><body bgcolor="yellow"><h2>请看: 改变了颜色的背景。</h2></body></html>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:77
  • 阅读量:56
  • 阅读量:62
  • 阅读量:53
  • 阅读量:44
  • 猜你喜欢