HTML and CSS Reference
In-Depth Information
<head>
<title>Second example </title>
<body>
This will appear as is. <br/>
<img src="frog.jpg"/>
<br/>
<img src="frog.jpg" width="200"/>
<br/>
Activities </a>
<br/>
<a href=
http://faculty.purchase.edu/jeanine.meyer>
<img src="jhome.gif"/></a>
</body>
</html>
Figure 1-5 shows what this code produces.
Figure 1-5.
Text, images, and links with line breaks
There are many HTML element types: the
h1
through
h6
heading elements produce text of different sizes;
there are various elements for lists and tables, and others for forms. CSS, as well see in a moment, is also
used for formatting. You can select different fonts, background colors, and colors for the text, and control
the layout of the document. Its considered good practice to put formatting in CSS, interactivity in
JavaScript, and keep the HTML for the content. HTML5 provides new structural elements, such as
article
,
section
,
footer
, and
header
, and this makes it even easier to put the formatting in CSS. Doing