第一个网页

来源:互联网 发布:python 文本挖掘技术 编辑:程序博客网 时间:2024/05/16 19:37


<!DOCTYPE HTML><html><head><mefa charset="uft-8"></head><body><body align="center"><h2>你好!!</h2><image src="photo/a.jpg"><br/><table border="1px">用户名:<input type="text"/><br/>密  码:<input type="password"/><br/><input type="button" value="登录"><input type="button" value="注册"></table><table border="1" cellspacing="0" cellpadding="0">  <tr>    <td>用户名:<input type="text"/></td>  </tr>  <tr>    <td>密  码:<input type="password"/></td>  </tr></table></body></html>


HTML包括头部和躯干, 头部是head,head里面一般定义编码格式;然后body是躯干,所有的标签语言都写在它的里面

标签语言是成对出现,有开始就一定要有结束。

br是换行,input是类型的text是输入文本框,input类型的pussword是密码框,input=putton按钮框,h1、h2、h3,是标题

table是表格,加了border才会显示表格的线条,table里面需要有tr,tr里面需要有td,th是td的加深版

0 0