html基础

xiaoxiao2021-02-28  91

1.address code:

<address> Written by <a href="mailto:webmaster@example.com">Donald Duck</a>.<br> Visit us at:<br> Example.com<br> Box 564, Disneyland<br> USA </address>

输出: Written by Donald Duck. Visit us at: Example.com Box 564, Disneyland USA address标签定义文档或文章的作者/拥有者的联系信息。 如果address 元素位于 body元素内,则它表示文档联系信息。 如果 address元素位于article元素内,则它表示文章的联系信息。

2.table code:

<table width="100%" border="1"> <colgroup span="2" align="left"></colgroup> <colgroup align="right" style="color:#0000FF;"></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> <tr> <td>2489604</td> <td>My first CSS</td> <td>$47</td> </tr> </table>

输出:

3.footer页脚 code:

<footer> <p>Posted by: W3School</p> <p>Contact information: <a href="mailto:someone@example.com">someone@example.com</a>.</p> </footer>

输出: Posted by: W3School

Contact information: someone@example.com.

4.form用户提交表单 code:

<form action="/demo/demo_form.jsp"> First name:<br> <input type="text" name="firstname" value="Mickey"> <br> Last name:<br> <input type="text" name="lastname" value="Mouse"> <br><br> <input type="submit" value="Submit"> </form> <p>如果您点击提交,表单数据会被发送到名为 demo_form.jsp 的页面。</p>

输出:

转载请注明原文地址: https://www.6miu.com/read-73010.html

最新回复(0)