To Lecture Notes

IT 130 -- 9/18/08

 

Review Questions

  1. What is the name of the file on students.depaul.edu into which your HTML files are uploaded?

    Ans: public_html

  2. Suppose that you have composed an HTML page using the PSPad Editor and uploaded it to the server using SSH. However, the page is blank or does not appear at all. List some things that might be wrong?

    Ans:

    1. You might not have saved the page in PSPad after editing it.
    2. You might not have refreshed the page after uploading it.
    3. You might have spelled public_html incorrectly.
    4. You might not have uploaded the page into the public_html file.
    5. you might have created the public_html file inside the mail folder.
    6. You might have forgotten the </title> tag.
    7. You might have forgotten a --> tag.
    8. You might have omitted a closing " or a closing >.
    9. You might have the double version problem: you are editing one version and uploading and viewing a different version.
    10. The permissions for the page or folders containing it are incorrect.

    Here is a sample website for illustration: Website1

  3. You are trying to save an HTML page on the C: drive in the lab and you get the message "Unable to create the file mypage.htm. Access is denied." What is wrong?

    Ans: You are not allowed to save files directly on the C: drive in the computer labs. Create a folder on the C: drive and put the file in that folder.

  4. You upload a file to the server, then delete the original file on your PC. Does the uploaded file still exist?

    Ans: Yes, there is no connection between the two files after the copy is performed.

  5. Write a span tag with an inline style that will change the word really in a sentence to red italic like this:

    Ans: <span style="font-style:italic">

  6. What happens if you forget to include the matching end tag </span> for a <span> tag?

    Ans: The style defined in the span tag will continue until a </span> tag is encountered or to the end of the document.

  7. Give a tag in HTML that does not require a matching end tag. Look at Example 2.

    Ans: <br />

  8. What does &nbsp; mean?

    Ans: Non-breaking space. The text on either side of the non-breaking space will not be split across two lines.

  9. What is the importance of these persons in the history of computing and the internet?

    Ans: See the History of Computing and the Internet.

  10. What do the vacuum tube and transistor do?

    Ans: They both server as high-speed valves for electricity. The transistor, being smaller, is faster than the vacuum tube.

 

Rules for XHTML

  1. Every tag requires a matching end tag.

  2. Tags must be nested. Do this:

    not this:

  3. Use combination start-end tag when there is nothing between the start and end tag.
    Use <br /> instead of <br></br>. Using simply <br> is not legal in XHTML.

  4. Use double quotes for attribute values in a tag. Do this:

    not this:

  5. Use <strong> and <em> instead of <b> and <i>.

  6. Optional. Include this header tag at the beginning of an XHTML file:

 

Inline CSS Styles

 

The Nonbreaking Space Symbol

 

Project 2 -- The History of Computing