初学 <html>
一、
<img src="http://www.baidu.com/img/bd_logo1.png" width=300px border=4>
</body><img src="http://www.baidu.com/img/bd_logo1.png" width=300px border=4>
<img src="http://www.baidu.com/img/bd_logo1.png" width=300px border=4>
</html><img src="http://www.baidu.com/img/bd_logo1.png" width=300px
特别说明src可以是外部网站的一个url
二. html表格案例
表格的主要用途是显示数据和图片,并且而且布局
案例:
<html>
<charset="UTF-8">
<head>
<meta >
<title>课程表</title>
</head>
<style>
body{
margin:0px 0px;
}//浏览器兼容性
.test-table{
border:1px solid;
border-color:#660099;
height:180px;
width:300px;
}
.test-table td{
border:1px solid;
}
</style>
<body>
<table class="test-table" >
<tr align=center>
<td colspan=3>这个星期的课程表
</td>
</tr>
<tr align=center >
<td rowspan=2>上午
</td>
<td>语文
</td>
<td>数学
</td>
</tr>
<tr align=center>
<td>历史
</td>
<td>政治
</td>
</tr>
<tr align=center>
<td rowspan=2>下午
</td>
<td>信息
</td>
<td>地理
</td>
</tr>
<tr align=center>
<td>化学
</td>
<td>体育
</td>
</tr>
</table>
</body>
</html>