网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

html入门实例代码2

时间:2024-10-13 11:55:55

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>

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com