Lecture Notes

HCI201 -- Lecture 2′

Review/Discussion Questions

  1. What does HTML mean?

    Ans: Hypertext Markup Language

  2. What does XHTML mean?

    Ans: Extensible Hypertext Markup Language.

  3. What does CSS mean?

    Ans: Cascading Style Sheets.

  4. Why use CSS?

    Ans: Cascading Style Sheets (CSS) deal with issues that HTML cannot handle. CSS is a powerful, flexible way to specify HTML formatting. It lets you separate the style and layout of your HTML from its content, allowing you to control the position, margins, spacing, fonts, colors, typefaces, and other aspects of a web document's elements without compromising its structure.

  5. What does W3C mean?

    Ans: World Wide Web Consortium.

  6. What is the purpose of W3C?

    Ans: A body formed to define standards for HTML and XHTML. Beyond that, they have the responsibility of standardizing any technology related to the Web; they manage the HTTP, CSS, and XML standards.

  7. Name some popular Web browsers.

    Ans: Internet Explorer, Firefox, Netscape, Opera, Mozilla, Crome (Goggle), Safari (Apple).

  8. What is the file extension of an HTML file?

    Ans: .htm or .html

  9. What does it mean to upload a webpage?

    Ans: It means to copy a file from a local PC to the web server so that it can be viewed by anyone over the internet.

  10. What software can you use to upload a webpage?

    Ans: SSH, FTP. A web browser is not used to upload a web page because browsers are read only for web content.

  11. Should SSH be used to view or edit HTML files?

    Ans: Definitely NO! A browser like Internet Explorer is used for viewing purposes. You can get yourself in lots of trouble if you start using SSH for viewing and editing files.

  12. What does it mean to download a webpage?

    Ans: It means to move the page from the server to the local PC.

  13. When working on the PC, what application should you always have open?

    Ans: Windows Explorer     (launch it:   Start | Programs | Accessories)

  14. Why is it important to set Windows Explorer to display file extensions?

    Ans: Because you will want to know the exact name of the file without trying to guess the file extension from the icon beside the file. It is also easy to make mistakes when changing the name of a file.
    (Invoke Windows Explorer >> Tools >> Folder Options >> View Tab >> Uncheck the box "Hide extensions for known file types.")

  15. What is the name of the server on which all of your HTML files will reside?

    Ans: students.depaul.edu

  16. What is the name of the folder on students.depaul.edu into which all of your HTML files are uploaded?

    Ans: public_html

  17. If I'm working on a PC in the classroom lab, how should I have the file structure set up?
    Ans: On the C drive (or your memory stick):

      yourname
        HCI201
          images

  18. In my account on students, how should I have the file structure set up?
    Ans:

      public_html
        HCI201
          images

  19. 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 an ending comment tag, i.e., -->
    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.

  20. 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.

 

Look at Homework Assignment 1.