Lesson 6 Explanations

The Lesson 6 source code is the Lesson 5 source code with added source code for the "pre" Tag. This added code appears immediately after the Lesson 5 source code

The first line of new code is an "h2" heading tag containing the text "Pre tag" (scroll this line of code into view in the above frame; scroll through the lesson 5 source code to get to this code). This code causes the text "Pre tag" to appear on the web page in the heading size of "2".

The next line of new code is the opening "pre" tag (scroll this line of code into view in the above frame).

The new lines, blank lines, extra spaces, and indentaions between the opening and closing "pre" tags were created by striking the "Enter", "Space" and "Tab" keys on the keyboard. In this tag, each line of text on the web page will be identical to each line of text in the source code. This tag is not used frequently because the absence of text wrap makes editing tedious and difficult (scroll through and view all of the lines of code from the opening pre tag through the closing pre tag).

The last line of added code is the closing "pre" tag. The slash identifies this tag as a closing tag.

The remaining code is comprised of the closing body tag and the closing html tag.

Lesson 6 Practice Activities

End of Lesson 6.