Docstoc

Exercise in Formatting Tables with CSS - bitsoflearning

Document Sample
Exercise in Formatting Tables with CSS - bitsoflearning Powered By Docstoc
					Exercise in Formatting Tables with CSS
1. Create a new HTML document named rockcafe.html

Set up the following table using HTML




2. Using <thead>, <tbody> and <th> tags, set up the table so that the top row
can be formatted differently from the other rows in the table.

3. Set up a separate style sheet named tablestyle.css

3. Set up the following CSS Styles for the body, table, th and td tags in the
tablestyle.css style sheet.

HTML Tag               Formatting Instructions
<body>                 Background colour of #0099CC

<table>                Width of 75%
                       Text centrally aligned in all cells
                       Background colour of #FFFF99
                       Double bottom border with a thickness of 4px with
                       #000033 colour
                       Border-collapse property set to “collapse”

<th>                   Groove border with a thickness of 4px with #FF0066
                       colour
                       Background colour of #FF3333
                       Font of Arial
                       Font size of 18px
                       Font colour of #FFCC00

<td>                   Solid border with a thickness of 1px with #FF6600 colour
                       Font of Verdana
                       Font size of 14px
                       Font colour of #000066
HTML Tag            Formatting Instructions
<h1>                Font of Arial
                    Font size of 36px
                    Font colour of #CC0000
                    Font weight of bold
                    Centrally aligned



   Align the table centrally using HTML code
   Set the web page title to Check out who’s playing at Rock Cafe!
   Add the text “Rock Cafe” to the web page, formatted in Heading 1, as
    follows:

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:3/13/2013
language:English
pages:2