The Essential Guide to HTML5

(Greg DeLong) #1

THE BASICS



Second example

This will appear as is.







Jeanine Meyer's Academic
Activities






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

Free download pdf