[Java Web] 3、WEB开发之HTML基础程序试手

1、初试:

1 <html>
2     <body>
3         <h1>My First Heading</h1>
4         <p>My first paragraph.</p>
5     </body>
6 </html>

2、标题:

HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。显然由大标题变为小标题....

1 <html>
2     <body>
3         <h1>This is a heading</h1>
4         <h2>This is a heading</h2>
5         <h3>This is a heading</h3>
6     </body>
7 </html>

3、段落:

HTML 段落是通过 <p> 标签进行定义的。

1 <html>
2     <body>
3         <p>This is a paragraph.</p>
4         <p>This is another paragraph.</p>
5     </body>
6 </html>

4、链接:

HTML 链接是通过 <a> 标签进行定义的。

1 <html>
2     <body>
3         <a href="http://www.cnblogs.com/zjutlitao/">This is a link</a>
4     </body>
5 </html>

5、图像:

HTML 图像是通过 <img> 标签进行定义的。必须该图片资源存在,否则会出现下面的效果:

1 <html>
2     <body>
3         <img src="w3school.jpg" width="104" height="142" />
4     </body>
5 </html>
原文地址:https://www.cnblogs.com/zjutlitao/p/3903606.html