To Lecture Notes

IT 231 -- Jan 9, 2024

About IT 231

Course Website

Course Topics

Server-side vs. Client-side Programming

Practice Quizzes

Review Questions

  1. What does HTML mean? List the HTML tags that you know.
    Details: some newer HTML commands. Commands new to HTML5 are marked with *. <abbr> <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> <option> <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: HTML means hypertext markup language.
    Here are some frequently used HTML tags:
    <!DOCTYPE html> <html>
    <head>
        <title> <style> <link> <script> <meta>
        <br> <hr> <div> <span>
    <body>
        <p> <h1> <h2> <h3> <h4> <h5>
        <ul> <ol> <li>
        <table> <header> <footer> <tr> <th> <td>
        <a> <img> <input> <label> <button> <select>
        <span>
  2. What is the root node for an HTML file?
    Answer: The root element is the element that contains all of the content on the HTML page; it is the <html> element.
  3. List the HTML entities that you know. Two examples of entities are &gt; and &amp; Answer:
    &lt; &gt; &amp; &quot; &apos; &nbsp;
    &alpha; &beta; &gamma;
    
    The entities &alpha; &beta; &gamma; look like the corresponding Greek letters when rendered on an HTML page:
         α β γ
    Here is a W3 Schools reference to HTML Entities:
         www.w3schools.com/html/html_entities.asp
  4. What does CSS mean? List the CSS properties that you know.
    Details: CSS properties new to CSS3: align-content  align-items  align-self  animation  backface-visibility  background-clip  background-origin  background-size  border-bottom-left-radius  border-bottom-left-radius  border-image  border-radius  border-top-left-radius  border-top-right-radius  box-shadow  box-sizing  column  columns  flex  font-size-adjust  font-stretch  justify-content  opacity  order  outline-offset  overflow  perspective  resize  tab-size  text-align-last  text-decoration-color  text-decoration-line  text-decoration-style  text-justify  text-overflow  text-shadow  transform  transition  word-break  word-wrap

    Answer: CSS means cascading style sheets.
    Here are some commonly used CSS properties:
    font-family  font-size  font-weight  font-style
    color  background-color  text-align vertical-align
    
  5. Set up an HTML page that uses some of the tags that you know from Exercise 1. View it with the Chrome or Edge browser. Answer:
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <title>Exercise 5</title>
            <meta charset="utf8">
        </head>
    
        <body>
            <h1>Exercise 5</h1>
    
            <p>This is a test paragraph.</p>
    
            <h1>Cities of origin</h1>
            <ol>
                <li>Henderson, NE</li>
                <li>Mundelein, IL</li>
                <li>Skokie, IL</li>
                <li>Oak Park, IL</li>
            </ol>
    
            <h1>Numbers in Different Languages</h1>
            <table>
                <tr> 
                    <th>English</th>
                    <th>French</th>
                    <th>German</th>
                </tr>
                <tr>
                    <td>One</td>
                    <td>Un</td>
                    <td>Eins</td>
                </tr>
                <tr>
                    <td>Two</td>
                    <td>Deux</td>
                    <td>Zwei</td>
                </tr>
                <tr>
                    <td>Three</td>
                    <td>Trois</td>
                    <td>Drei</td>
                </tr>
                <tr>
                    <td>Four</td>
                    <td>Quatre</td>
                    <td>Vier</td>
                </tr>
                <tr>
                    <td>Five</td>
                    <td>Cinq</td>
                    <td>F&uuml;nf</td>
                </tr>
            </table>
    
            <h1>Image of Puppy</h1>
                <img src="images/puppy.jpg">
        </body>
    </html>
    
    Here is the HTML page index.html, defined by the preceding source code.