JavaScript Testing Beginners Guide
Chapter 1. Example 1
by Songhun
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>This is a sample title</title>
</head>
<body>
<h1>This is header 1</h1>
<h2>This is header 2</h2>
<h3>This is header 3</h3>
<p>This is a paragraph. It can be styled by CSS</p>
<hr>
<div style="position:absolute; background-color:black;
color:#ffffff;top:10px;right:10px;border:solid 3px yellow;
height:200px; width:200px;">Your content here</div>
<div>
<div>I am enclosed within a <i>div</i> tag. And it can be
styled on a document level.
<ol>
<li>This is an ordered list and it is centered</li>
<li>apple</li>
<li>orange</li>
<li>banana</li>
</ol>
<ul>
<li>This is an unordered list. And it can be styled by
CSS.</li>
<li>apple</li>
<li>orange</li>
<li>banana</li>
</ul>
</div>
<div>I am enclosed within a <i>div</i> tag. And it can be
styled by CSS.
<ol>
<li>This is an ordered list and it is centered</li>
<li>apple</li>
<li>orange</li>
<li>banana</li>
</ol>
<ul>
<li>This is an unordered list. And it can be styled by CSS</li>
<li>apple</li>
<li>orange</li>
<li>banana</li>
</ul>
<a href="#">This is a link. And it can be styled by CSS
</a>
</div>
</div>
</body>
</html>