javascript学习笔记(1) 简单html语法

<html>

<head>
<meta http-equiv="content-type" content="text/html" charset="UTF-8"></meta>
<title>Page Title</title>
</head>

<body bgcolor="yellow" onload=alert("message onload.")>

<p>sdfjaslfdj salfjdsalfjdsafsafasfdasfsafdsafsadfsadfsadfsaf
sdfasdfasfdasfdasfsadf dsfafsadfsafasfdsafdsafsadf</p>
<p>fasdfksajf;lksaklsjdfl</p>
<hr></hr>

<h1 align="center">春晓</h1>
<h2 align="center">孟浩然</h2>
<p>
春眠不觉晓,
<br></br>
处处闻啼鸟。<br></br>
夜来风雨声,<br></br>花落知多少。<br></br>
</p>
<hr></hr>

<p>
<pre>
for (i = 0; i <= 10; i++) {
    print i;
}
</pre>
</p>
<tr>

<p>
http address:<a href="http://www.baidu.com">baidu.com</a><br>
mail address:<a href="mailto:[email protected]?subject=Hello%20world!!!&body=hahahahaha%20hahahaha">zhangliang</a>
</p>
<tr>

<p>
<abbr title="World Wide Web">WWW</abbr><br>
<acronym title="World Wide Web">WWW</acronym>
</p>
<tr>

<p>
一打有 <del>二十</del> <ins>十二</ins>件。
</p>
<tr>

<p>
图像链接:<a href="http://www.baidu.com" target="_blank"><img border="0" src="img/eg_buttonnext.gif"></img></a>
</p>
<tr>

<p>
<a href="" target="_top">top</a>
</p>
<tr>

<script type="text/javascript">
document.write("<h1>hello world</h1>")
</script>

<!--
this is a segment
comment
-->

</body>

</html>

你可能感兴趣的:(JavaScript)