To Lecture Notes

IT 238 -- Apr 6, 2026

Review Exercises

  1. What is the folder structure on the studentweb server for Project 0?
    Answer: indentation means subfolder
    public_html
        it238
            index.html
            styles.css
            proj1a
                index.html
            proj1b
                index.html
            images
                myimage.jpg
    
    For your zipfile, make a copy of the it238 folder, then change the name of the copy to proj0Saldana (replace Saldana with your last name). Then create a zipfile  of proj0Saldana, which results in the zipfile named proj0Saldana.zip.
  2. What is a stub page?s
    Answer: a stub page is a placeholder the actual page (in this case your proj1a or proj1b index.html page). The stub page is used to check if the hyperlinks from the Project 0 index page to the stub page and from the stub page back to the Project 0 index page work. These stub pages will be replaced with the actual Project 1a and 1b pages when they are completed.
  3. What is an entity? What are some common HTML entities that you know?
    Answer: An HTML entity is a symbol that cannot be directly represented by a keyboard character. It is of the form &entity_name; Here are some common entities:
    Entity   Symbol
    &lt;       <
    &gt;       >
    &amp;      &
    &quot;     "
    &apos;     '
    &nbsp;   nonbreaking space
    &beta;     β  (Greek letter beta)
    &rarr;     →  (right arrow)
    &larr;     ←  (left arrow)
    &ldquo;    “  (left double quotes)
    
    You can look up other entities as needed. Here is a reference that contains the complete list of HTML entities:
         https://www.freeformatter.com/html-entities.html.
  4. List the JavaScript operators that you remember from IT 130.
    Arithmetic Operators:
    +  -  *  **  /  %
    ** is exponentiation.
    
    Comparison Operators:
    ==  <  <=  >  >=  !=  ===  !== 
    
    Logical Operators:
    &&  ||
    
    Arithmetic Operators:
    =  +=  -=  *=  /=
    
    Increment/Decrement Operators:
    ++  --
    
    Array Lookup Operator:
    [ ]
    
  5. How you define a textfield that looks like this?


    Answer: <input type="text" id="txt1">
  6. What is the difference between these two HTML tags?
    <button id="btn1">Click Me</button>
    <input type="button" id="btn1" value="Click Me">
    
    Answer: Basically they mean the same thing. However, with the <button> tag, you can place additional HTML markup between the start and end tags like this:
    <button id="btn1"><strong>Click Me</strong></button>
    
    You can't put HTML markup in the value attribute of the <input> tag.
  7. Finish separating the source code for the BirthdayRiddle Example in the April 1 notes into .html, .css, and .js files.
    Here is an explanation of the riddle:
    Date My Age Description
    Dec 30, 2024 21 Day Before Yesterday
    Dec 31, 2024 22 My Birthday Last Year
    Jan 1, 2025 22 Today
    Dec 31, 2025 23 My Birthday This Year
    Dec 31, 2026 24 My Birthday Next Year

What is JavaScript?

JavaScript Output

Functions

Projects 1a and 1b