To Lecture Notes

IT 238 -- Apr 1, 2026

Review Questions

  1. How can you use Visual Studio Code to create a skeleton web page?
    Answer: starting with an empty HTML page, type exclamation mark (!), then Enter.
  2. Suppose your name is Emma Saldana with CampusConnect username esaldan5. What folder structure should you use on the studentweb server to display the HTML file index.html? Which URL should you use to view this page? Answer: use this folder structure:
    public_html
        it238
            index.html
    
    To view this page, use this URL:
         https://studentweb.cdm.depaul.edu/esaldan5/it238/index.html
  3. Add an external stylesheet to the HTML page that you created for Review Question 3 of the Mar 30 Notes. Then upload it to the studentweb server. Because of new security restrictions, you must now use WinSCP instead of FileZilla to move files between your PC and the server.
  4. How do you submit projects to D2L for IT 238?
    Answer: on your PC, copy the project files into a folder named proj0Smith (replace with your last name). Then create a zipfile from this folder named proj0Smith.zip. Submit this zipfile on D2L.
  5. What does this CSS statement define?
    .twf { font-family: "Courier New"; 
           font-weight: bold; }
    
    Answer: This is a CSS class. The leading dot on the class name .twf indicates that this class can be applied to any HTML element. For example, in the HTML code, to apply this class to the tag <p> (paragraph), add a class attribute to the tag:
    <p class="twf">This is a paragraph.</p>
    
  6. What is the CSS box model and how do you set one up using CSS?
    Answer: The box model controls how much space is between an element and its border (padding) and the space between its border and adjacent elements. Here is an example:
    BoxModel Example
    Web Page   Source Code
  7. How do you write comments in HTML, CSS, and JavaScript code?
    Answer:
    <!-- This is an HTML comment -->
    /* This is a CSS comment */
    // This is a JavaScript comment
    

Project 0

CSS Shorthand Styles

Some HTML5 Examples

  1. Details Example
    Use a details element to hide information:
    Web Page  Source Code
  2. Table Example
    A table with HTML5 elements:
    Web Page  Source Code
  3. Iframe Example
    Use an <iframe> tag to display text:
    Web Page  Source Code
  4. Drawing1 Example
    Draw two shapes (circle and polygon) using scalable vector graphics (SVG).
    Web Page  Source Code
  5. Drawing2 Example
    Drawing can also be accomplished using JavaScript:
    Web Page  Source Code

Some CSS Examples

  1. AbsolutePositioning Example
    Display div sections using absolute positioning and a background image.
    Web Page  Source Code
  2. Float Example
    Use the CSS float property to allow text to flow around an image.
    Web Page  Source Code

How are CSS Property Values Applied?

Project 1a