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>

猜你喜欢