To Lecture Notes

IT 238 -- Mar 31, 2025

About IT 238

Course Website

Course Topics

Review Questions

  1. Who designed the first version of HTML?
    Answer: Tim-Berners Lee. He also designed the first version of HTTP.
  2. What does HTML mean? List some HTML tags that you know.
    Details: some newer HTML commands. Commands new to HTML5 are marked with *. <abbr> <address> <area> <article>* <aside> <audio> <base> <bdi>* <bdo> <blockquote> <canvas> <caption> <cite> <code> <col> <colgroup> <data>* <datalist> <dd> <del> <details>* <dfn> <dialog>* <dl> <dt> <embed>* <fieldset> <figcaption> <figure>* <footer>* <header>* <hgroup>* <ins> <kbd> <keygen>* <legend> <main>* <map> <mark>* <menu> <menuitem>* <meter>* <nav>* <noscript> <object> <optgroup> <output>* <param> <picture>*  <progress>* <q> <rp>* <rt>* <ruby>* <s> <samp> <section> <small> <source>* <summary>* <svg>* <tbody> <template>* <tfoot> <thead> <time>* <track>* <var> <video>* <wbr>*

    Answer: Here are some frequently used HTML tags:
    <!DOCTYPE html> <html> <body> <head>
    Tags included in the <head> tag:
    <meta> <title> <link> <style> <script>
    Tags included in the <body> tag:
    <div> <span> <br> <h1> <h2> <h3>
    <p> <ul> <ol> <li> <table> <tr> <td> <th>
    <a> <img> <input> <button> <label>
  3. Set up an HTML page that uses tags that you know from Exercise 2. Upload your page to the studentweb server.
    Answer: Here is the HTML file that we looked at in class and uploaded to the studentweb server:
    <!DOCTYPE html>
    <!-- Source code for exercise3.html --/>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Exercise 3</title>
    </head>
    <body>
        <h1>Exercise 3</h1>
        <p>This is a test paragraph.<br>
           This is the second line.</p>
        <ol>
            <li>Item 1</li>
            <li>Item 2</li>
            <li>Item 3</li>
        </ol>
        <table>
            <tr>
                <th>State</th>
                <th>Capitol</th>
                <th>State Bird</th>
            </tr>
            <tr>
                <td>Illinois</td>
                <td>Springfield</td>
                <td>Northern Cardinal</td>
            </tr>
            <tr>
                <td>Nebraska</td>
                <td>Lincoln</td>
                <td>Meadowlark</td>
            </tr>        
        </table>
    </body>
    </html>
    
    The directory structure on the studentweb server should look like this. Indentation means subfolder.
    public_html
        it238
           sample-page
               index.html
    
    This is the URL for accessing this file on studentweb, if ssmith is your campusconnect username:
    https://studentweb.cdm.depaul.edu/ssmith/it238/sample-page/index.html
    
  4. What is the root node of an HTML page?
    Answer: the html node defined by the <html> and </html> tags.
  5. In this CSS style:
    h2 { color: navy; }
    
    identify the property, selector, and value.
    Answer: h2 is the selector, color is the property, navy is the value.

Practice Quiz

Project 0

Some HTML5 Examples

These examples were not discussed in class on Jan 6, but are included here for your reference.

  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

Project 1a