Post one or more of these questions in an area where students can read them and allow time for students to respond to the questions. Discuss the student answers these questions.
Review the definition of HTML with students from the text and describe that the tools needed to create a Web page or site can be as simple as a text editor application to a more complex Web design application. Explain to the students that we will be using a very simplistic word processing application called “Notepad” to create our first Web pages with HTML.
Web pages are viewed using a Web browser. The current most popular Web browsers include Internet Explorer, Mozilla Firefox, Netscape Navigator, and Apple Safari. Discuss the fact that an individual Web page may appear differently when viewed in each of these Web browsers due to the way that each browser renders the page.
Once students have copied the code into their word processing document, have them save the document as “tags.html.” The extension .html will identify this file as one to be opened by a Web site browser. Once the students have the file saved, ask them to go to the file on their computer (or other location where the file is saved) and open it.
Discuss that tags tell the browser how to display text and ask students to identify how they think the following examples of text would be displayed by a browser. (Note: For purposes of practicing the concepts of tags and for creating a few beginner Web pages, this text includes a few elements that were commonly used in earlier versions of HTML, but no longer meet the most recent HTML standards. Elements no longer supported by the most current version of HTML are referred to as “deprecated.” We will note these deprecations where they appear.)<b>How would this text look different?</b> bolded text (deprecated)<strong>Does this look any different?</strong> strong or bolded text<i>How would this text be displayed?</i> italicized text (deprecated)<em>Same as italicized?</em> italicized text<u>This tag might be useful for titles.</u> underlined text<body text=red>How would this tag change things?</body> text color would be redIf students are struggling with identifying the effect of each tag, have them add the code to their document so that they can visually see the differences.
Discuss that text can also be altered in its size. The use of a height tag will alter the size of the text.
Discuss that a browser ignores the use of the “enter” key. The extra space in our example did not show in the Web browser. Explain that the use of a break tag <br> will place text on the next line. Explain that no ending tag is needed. How students place a break tag after the phrase “easy to learn and use.” Now ask student to view their html document again. (Note: This would be a good time to explain the use of the refresh button for viewing a Web page.)
Discuss the difference between a “break” tag and a “paragraph” tag. A break tag places the following text on the next line. A paragraph tag places the text in a block, thus creating a paragraph. Ask students to remove the break tag they just created and place a beginning paragraph tag <p> right after the body tag <body> and place a closing paragraph tag </p> after the phrase “easy to learn and use.” Have students refresh their Web page to see the result.
Discuss the process of creating a comment. Ask students why someone creating a Web page would want to use a comment. Explain that comments are created using the following coding and are not displayed when viewing a Web page. <!--This is an example of a comment.-->
Review concepts covered if needed with the students and discuss the practice activity.
1. LESSON 1<br />Module 2: HTML Basics<br />Basic HTML<br />
2. Lesson Overview<br />In this lesson, you will learn to:<br /><ul><li>Write HTML code using a text editor application such as Notepad.
3. View Web pages created with HTML code.
4. Create a comment within an HTML document.
5. Format text within a Web page.
6. Creates tags with attributes.</li></li></ul><li>Guiding Questions for Lesson 1<br /><ul><li>How do Web designers create Web pages?
7. What tools are needed to create a Web page or site?
8. How is a Web page viewed from the browser?</li></li></ul><li>Web Page Structure<br /><ul><li>HTML is an example of a publishing language for the Internet
9. H Hyper
10. T Text
11. M Markup
12. L Language</li></li></ul><li>Viewing Web Sites<br /><ul><li>Web browsers</li></ul>Internet Explorer<br />Mozilla Firefox<br />Google Chrome<br />Apple Safari<br />Opera<br /><ul><li>Web sites may appear differently when viewed in different browsers</li></li></ul><li>Create an HTML file<br /><ul><li>The extension .html designates a file to be opened by a browser</li></li></ul><li>How will the following examples of text be displayed by a Web browser?<br /><b>How would this text look different?</b> bolded text (deprecated)<br /><strong>Does this look any different?</strong> strong or bolded text<br /><i>How would this text be displayed?</i> italicized text (deprecated)<br /><em>Same as italicized?</em> italicized text<br /><u>This tag might be useful for titles.</u> underlined text<br /><body text=red>How would this tag change things?</body> text color would be red<br />
13. Text size<br /><ul><li>Text size can be altered by the use of tags</li></ul> <h1>This tag creates large text</h1><br /> <h2>Creates a slightly smaller text</h2><br /> <h3>Is smaller yet, but still large</h3><br /> <h4>Starts getting smaller</h4><br /> <h5>Now the text is getting small</h5><br /> <h6>And finally, this is the smallest</h6><br />
14. Creating a Break<br /><ul><li>Browsers ignore the use of the “enter” key
15. To force the browser to place text on the next line use the “break” tag <br>
16. No closing tag is needed for this tag in HTML
17. Try placing a break tag in your work after the phrase “easy to learn and use.”
18. View your Web page again.
19. How did it change?</li></li></ul><li>Creating a Paragraph<br /><ul><li><br> vs. <p> … </p>
20. <br> places the text on the next line
21. <p> … </p> creates a block or paragraph of text
22. Remove the <br> tag in our work that you just added
23. Place an opening paragraph tag <p> after the <body> tag
24. Place a closing paragraph tab </p> after the phrase “easy to learn and use.”
25. Refresh your Web page and look at the difference.</li></li></ul><li>Creating a Comment<br /><ul><li>Why would a Web designer what to use a comment?
26. Comments can be created using code
27. Comments do not show in the Web page when viewed
28. <!-- This is an example of a comment --></li></li></ul><li>Lesson Review<br /><ul><li>Explain how to write the code for each of the following situations:
32. What is the tag for the largest size and smallest size text?
33. What does a comment code look like?
34. Explain the difference between <br> and <p>…</p></li>