我试图制作一个2x2表格,以便布局是“任务说明”和“图片UMES”,然后在“2017”和第二行无序列表,但似乎无法弄清楚,它都显示为一个列表。包含标题,表格标题,正文标记和表格数据标记的HTML表格
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1 {
background-color: gray;
color: black;
font-family: Verdana
}
h2 {
color: gray;
font-family: Verdana
}
h3 {
font-family: Verdana
}
table {
background-color: white
}
th {
background-color: black;
color: white;
font-size: smaller
}
td {
background-color: gray;
font-size: smaller
}
body {
font-family: Arial;
color: black;
background-color: white
}
address {
font-family: "Courier New", monospace;
font-size: larger
}
</style>
</head>
<body>
<h1>University of Maryland Eastern Shore </h1>
<table>
<tr width="100%">
<h2> UMES Mission Statement </h2>
<th> Picture UMES </th>
</tr>
<tr>
<body> 2017 </body>
<td>
<ul>
<li> Picture of <a href="hawk_mascot.jpg"> our mascot </a> </li>
<li> Picture of <a href="UMES_Campus.jpg"> our campus </a> </li>
</ul>
</td>
</tr>
</table>
</body>
</html>
发布您的代码在你的问题吧。请参见[mcve] – j08691
刚刚意识到我没有添加那个对不起,这里张贴新内容 – EndlessClavicle
您的HTML在多个地方无效。尝试先通过验证程序运行它。例如:https://validator.w3.org/#validate_by_input – j08691