What are the three row groups and how do you create them?
- The three row groups are table header, table footer and table body
- The table header must be created before the footer and the header, and the table footer and header must be created before the table body. You can only have one table header and one table footer, but multiple table bodies
- What HTML code would you use to place the caption "Product Catalog" below a table? Where must this HTML code be placed in relation to the opening table tag?
- Product Catalog
- The tag must be placed immediately under the opening table tag
Session 4.2
- What attributes would you use to create a table with a 5-pixel-wide outside border, a 3-pixel-wide space between table cells, and 4 pixels of padding between the cell content and the cell border?
- What attributes would you use to vertically align a cell's contents with the top of the cell?
- What HTML code would you use to size a table to half the width of the browser window area, regardless of the resolution of a user's monitor?
- Under what conditions will a table cell exceed the size specified by the width attribute?
- It will exceed the size specified by the width attribute if the content is bigger and the nowrap attribute has been used or there is no spot in the content to break the line.
- What attribute creates a cell that spans three rows and two columns?
- What HTML code would you enter to create a column group spanning three columns that sets the background color of the column to yellow?
Session 4.3
- What is a columnar layout? Can text float from one column to another in such a layout?
- In a columnar layout, the content is laid out in two or more columns, similar to the layout of a newspaper.
- The content cannot float from one column to another, but has to be copied over manually when the size of the text changes.
- What is a jigsaw layout? What cell spacing values should you use in such a layout?
- A jigsaw layout is a layout with a table, where all the individual pieces are put together like a puzzle, with each puzzle piece in an individual cell.
- You should use a cell spacing of 0px so all the "jigsaw pieces" fit seamlessly together
- What is a fixed width layout?
- In a fixed width layout you enter an absolute width for the table, eg. 800px
- If the table has a fixed width, you can define the layout to the pixel
- It can be a bad choice if the user has a resolution either smaller than the table (content will be cut off/horizontal scrolling) or bigger (content looks lost occupying just a small part of the screen)
- What is a fluid layout?
- In a fluid layout you enter an relative width for the table, eg. 70%
- The look and feel of the layout changes with different window sizes and different resolutions
- Why can tables be difficult for aural (non-visual) browsers?
- Because aural browser usually cannot access the content of a table
- What HTML code would you use to create a 2 x 2 table nested inside the upper-left cell of another 2 x 2 table?
Applied HTML knowledge: Anchors, Nested Lists
| | |