<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<table border="1px" width="600px" align="center" style="text-align: centerfont-size: 12px">
<tr>
<td>可乐</td>
<td>雪碧</td>
<td>馒头</td>
<td>米饭</td>
<td>酱汁</td>
<td>茄汁</td>
</tr>
<tr style="background-color: redfont-weight: bold color: white">
<td colspan="2">饮料</td>
<td colspan="2">主食</td>
<td colspan="2">调料</td>
</tr>
</table>
</body>
</html>
A B 正确
C:错误, border="3" 是指边框宽度为3像素 而不是厘米
D:错误: 该表格有3行2列 ,而不是2行3列
效果图
文件名为temperature-conversion.html的代码如下
<!DOCTYPE html>
<html>
<head>
<h1 style="color:redfont-size:32px">Temperature Conversions</h1>
<br/>
</head>
<body>
Author: CHEN Da Wen<br/>
Student ID: 123456789d<br/>
<br/>
<b>Use this form to convert celsius temperatures to fahrenheit:</b><br/>
<br/>
<table>
<form name="converter" action="temperature-converter.php" method="post">
<tr><td>Starting temperature(Celsius):</td>
<td><input type="text" name="start" value=""/></td></tr>
<tr><td>Ending temperature(Celsius):</td>
<td><input type="text" name="end" value=""/></td></tr>
<tr><td>Increment value:</td>
<td><input style="width:100px" type="text" name="increment" value=""/></td></tr>
<tr><td colspan=2>&nbsp</td></tr>
<tr><td colspan=2><input type="button" name="conversion" value="Display Conversion Table" onclick="converter.submit()"/>
<input type="button" name="clear" value="Clear" onclick="converter.reset()"/></td></tr>
</form>
</table>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)