日期:2014-05-17  浏览次数:20645 次

HTML一些初级小代码
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jsPractice.js"></script>
<title>Insert title here</title>
</head>

<body bgcolor ="white">
<script type="text/javascript">
 document.write("Hello World!");
</script>
<INPUT TYPE="button" NAME="myButton" VALUE="Click Here" 
onClick="myFunc()">

<h1>My First Heading</h1>

<p>您不需要任何工具就可以学习 HTML.</p>
<p>您不需要任何 HTML 编辑器</p>
<p>您不需要 web 服务器</p>
<p>您不需要网站</p>
<p>
<a href="http://www.w3school.com.cn">This is a link</a>
</p>
<img src="11.jpg" width="79" height="24" />


<p>This is<br />a para<br />graph with line breaks</p>


<p style="font-family:verdana;color:red">
This text is in Verdana and red</p>

<p style="font-family:times;color:green">
This text is in Times and green</p>

<p style="font-size:30px">This text is 30 pixels high</p>
<br />


<br />

<table border="1">

<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

<form name="input" action="" method="get">
Username: <input type="text" name="user" />
           <input type="submit" value="Submit" />
</form>


<form>
我喜欢自行车:
<input type="checkbox" name="Bike">
<br />
我喜欢汽车:
<input type="checkbox" name="Car">
</form>

<map name="planetmap" id="planetmap">
  <area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
  <area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
  <area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>
</body>
</html>