表格元素的应用
<table>
<tr>
<td>row1 cell1</td>
<td>row2 cell2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
结果:
可以定义<th>表示头部分 <tbody>主体部分 <tfoot>尾部部分。
colgroup标签表示对列进行组合。
<table border="1">
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
html的块级元素:会以新行来开始和结束 块级元素可以设置行高 可以设置margin和padding 对应于display:block
常见块级元素有div section nav header article aside footer detail p h ul table
内联元素:内联元素在显示时通常不会以新行开始。行内元素起边距只有margin-right,margin-left,
在盒子模型中,margin表示外边距,border表示边框,padding表示内边距.对应于display:inline.
span strong b del
https://www.cnblogs.com/dxzg/p/6423922.html?utm_source=itdadao&utm_medium=referral
https://www.cnblogs.com/Bobo999/p/5783920.html
html的表单元素。
<form>input 元素</form>
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
</form>
html的alt标签表示,作文图片的替代文字出现,表示图片因为某些原因,例如网络加载原因无法显示时,显示出来的替代文字,title是图片的解释文字。
DOCTYPE的作用。
iframe标签的应用。表示在文档中嵌套另一个文档流的作用.