Monday, September 17, 2007

Today I returned Quiz #1. I collected the homework due today and we went over questions 2 and 3 in class:

2. If you want the text in a quote to be italicized, should you put that text in an <em> element? Explain your answer.
Don't use <em> to italicize the text of a quote. That element is intended to reflect emphasized text. Use it only for that. A style sheet rule is a better choice for italicizing the text.
3. Why does HTML include a <q> element when quotation marks serve the purpose? In other words, why code <q>To be or not to be.</q> instead of “To be or not to be”?
Again, tags are intended to reflect the structure of the document. If something is a quote, tag it as such. Using quotation marks loses the context of the quotation from the browser's perspective and, as such, style rules cannot be applied to style that quotation.

We finished up Chapter 3. There are some interesting new tags, including <hr>, <address>, <code>, and <pre>. The chapter also introduced character entities, which are used to put special characters on a page, such as <, >, and &. There are lots of others, too.

I started talking about Chapter 4 and getting pages on the Web. Web pages have to be on a Web server in order to be available on the Internet and the World Wide Web. Wofford students, faculty, and staff have access to a Web server on the Wofford domain, wofford.edu. On the lab PCs, your root folder on the Web server is accessible as the W:\ drive after you log in. Just put a file foo.html on that drive and it's available on the Web at http://webs.wofford.edu/yourusername/foo.html. You can also access your root folder on that Web server from your own computer when it's attached to the campus network by following the instructions on pages linked from Wofford College Student Technology Information page. Connect to nas/webs/yourusername instead of nas/students/yourusername, e.g. for a Mac use smb://wofford;nas/webs/yourusername. In class today, you created a page on the W:\ drive and accessed it through a browser. We talked about the significance of naming a page index.html.

On Wednesday I'll show you how to use FTP to put files on a server.

Homework

Create a Web page named index.html on the Wofford Web server. Give the page a favicon. This is your home page as a Wofford student so make it meaningful. (Don't be concerned about the presentation. We'll work on that when we get to CSS.) Then e-mail me the URL of your page.

Suggestion: Use a browser on a different computer to check the URL and to verify that the favicon works. I'll be viewing your page with Firefox.

Due by the start of class on Wednesday.

Note: You can use Paint on Windows to crop a photo to use for your favicon—in case you'd like to use a mini-photo of yourself as your favicon. It's best to start with a square image (any length per side) for a favicon.

No comments: