To Lecture Notes

IT 130 -- 4/07/2011

 

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 Notepad 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 Notepad 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 folder.
    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.

  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: In some DePaul computer labs you are not allowed to save files directly on the C: drive. 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; color:red">

  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.

 

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 (and other HTML character entities)