10.07.2015 Views

Building the User Interface by Using HTML5: Text, Graphics ... - server

Building the User Interface by Using HTML5: Text, Graphics ... - server

Building the User Interface by Using HTML5: Text, Graphics ... - server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28 | Lesson 2Figure 2-5Effects of improper nestingof tags6. To see <strong>the</strong> effect of improper nesting, move <strong>the</strong> end tag to appear after <strong>the</strong> last tag. Save L2-pet-test.html again and view it in a browser. Now all of <strong>the</strong> contentfrom “fresh water” to <strong>the</strong> end of <strong>the</strong> document is in boldface and italics, asshown in Figure 2-5.LICENSED PRODUCT NOT FOR RESALEFigure 2-6A copyright symbol appears in<strong>the</strong> lower-left corner7. Close <strong>the</strong> L2-pet-test.html file in <strong>the</strong> editor and open L2-pet-orig.html.8. Add a copyright line to <strong>the</strong> bottom of <strong>the</strong> page <strong>by</strong> pressing Enter a few times after<strong>the</strong> closing tag and typing &copy; 2012. Substitute <strong>the</strong> current yearfor “2012”, if necessary. Press Enter to add a blank line. Make sure <strong>the</strong> copyright lineis above <strong>the</strong> and end tags.9. Create a new file again <strong>by</strong> saving L2-pet-test.html as L2-pet-copyright.html andview it in <strong>the</strong> browser. Does <strong>the</strong> circle C symbol appear as shown in Figure 2-6? Ifnot, change &copy; to &#169;, save <strong>the</strong> file, and <strong>the</strong>n view it again.Copyright line with symbolTAKE NOTE*When viewing Web pages that you’re editing, it’s best to use a variety of Web browsers toensure your markup renders as expected for <strong>the</strong> widest audience. Some editing tools letyou select a browser for previewing Web pages from a list. If your tool doesn’t includethat option, you’ll need to install three or four different browsers and open your Webpages in each one.10. Go to <strong>the</strong> W3C Markup Validation Service Web page at http://validator.w3.org.Upload L2-pet-copyright.html and click Check to have <strong>the</strong> service check it. Fix anyerrors reported <strong>by</strong> <strong>the</strong> checker that relate to missing tags or typos, if any.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!