To Lecture Notes

IT 231 -- 9/9/15

Course Prerequisites

Course Documents

Course Overview

Review Questions

  1. List the HTML tags that you know. Ans: Here are some common tags.
    html 
    head title style link script meta
    body h1 ... h7 img p div span 
    br ol ul li 
    table tr td th a img form input
    textarea select
    strong em pre sub sup
    
  2. How does HTML5 differ from older versions of HTML?
    Ans: A matching closing tag is no longer required for an HTML tag.
    Combination start/end tags are no longer required.
    Quotes are not needed for attribute values.
    Tag names and attribute names are case insensitive.
    New simpler validation tag:
    <!DOCTYPE html>
    
    The validation tag is important. It determines how the HTML page is rendered in the browser.
     
    These older HTML tags are depreciated in HTML5:
    font  center  frame  big  applet  s  u  type  width
    These attributes are depreciated: align
    bgcolor border cellpadding cellspacing type width (for table)
    
  3. Why are CSS files called cascading style sheets?
    Ans: Because multiple styles and stylesheets can be applied consecutively to a document. If more than one style is relevant: (a) the last style applies (b) the most specific style applies , e.g.: ( <p> is more specific than <body>).
  4. List the CSS properties that you know. Ans:
  5. List the HTML special symbols that you know.
    Ans: Some of the most common special symbols are &nbsp;  &lt;  &gt;  &amp; 
    Some web designers think that these special symbols are necessary for professional web pages:
     
    Name HTML Appearence
    Left Double Quote &ldquo;
    Right Double Quote &rdquo;
    Left Single Quote &lsquo;
    Em Dash &mdash;
    En Dash &ndash;

    Here are links to tables of HTML special symbols:
    www.chami.com/tips/internet/050798i.html
    www.w3schools.com/tags/ref_entities.asp
    www.w3schools.com/tags/ref_symbols.asp
  6. Create a Rails project named TestStyle with a controller named Test and a view named page1. On page1, show a single paragraph that contains "This is a test." Set the font family to Verdana, the the font size to 300% larger than normal, and the font color to maroon. Use the usual three methods of setting the style: (a) inline style, (b) document-level style, and (c) external style.
    Ans: See the Styles Example.

Project 1