More Tables, Forms, Cascading Style Sheets




CS174

Chris Pollett

Feb 15, 2021

Outline

Introduction

Tables and Accessibility

Controlling width

Still More on Tables

Cellpadding, cellspacing

Quiz

Which of the following statements is true?

  1. A shortcut icon for a web page can be specified with a syntax like:
    <icon   
        href="http://www.cs.sjsu.edu/faculty/pollett/favicon.ico" />
    
  2. To add an image to an HTML document we can use an <png> tag.
  3. A browser is supposed to treat a meta tag with http-equiv="foo" and content="la" as if the HTTP header foo:la had been sent.

Forms

Possible methods

Labels and Controls

select tags

<textarea>

Stylesheets

Levels of Style Sheets

Basics of Styles

Examples of Simple Selectors

h1 {font-size: 24pt;} /* would apply to all h1 tags in the document */

h2, h3 {font-size: 14pt;} /* notice applies to both h2 and h3 tags */

You can also specify that styles should only apply to elements in certain positions within the file:

body b i {font-size: 30pt;} /* only for bolded italic'd text within body of HTML*/