Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Hello, world.</title>
</head>
<body>
Hello, world.
</body>
</html>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
<p>This is a paragraph</p>
To break<br />lines<br />in a<br />paragraph,<br />use the br element.
<html>
<head>
<title>Embedding Images</title>
</head>
<body>
<h3>Cash Cats</h3>
<img src="image01.jpg" /><br />
<img src="image02.jpg" /><br />
<p>
<ul>
<li>Item One</li>
<li>Item One</li>
</ul>
</p>
<div>
<div>
<p>
This paragraph of text is nested inside two containing divs.
</p>
</div>
</div>
p {
color: blue;
font-family: Arial, sans-serif;
font-size: 17px;
}
<p id="intro">Hi, I'm an introduction!</p>
<p class="normal">I'm a 'normal' block of text.</p>
<p class="indent">I'm a special block of text.</p>
#intro {
color: #FF0000;
font-family: "Times New Roman", serif;
font-size:48px;
}
.normal {
color: #999999;
font-family: Arial, sans-serif;
font-size: 15px;
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Interaction</title>
</head>
<body>
<div id="contentwrapper">
width:250px;
padding:10px;
border:5px solid gray;
margin:10px;