Department of Computing

Local Navigation

COMP249 Web Technology

Tutorial - Week 3

Answer the following questions and submit your answers via WebCT before 9am Monday 10th March. Please also hand in a hardcopy with your name and id to your tutor.

  1. Give two examples of HTML tags that are meant to encode purely structural information in a document. What is their default appearance in a web browser? Give two examples of tags that imply something about their appearance; again, how do they normally appear?
  2. There are two broad categories of display types in CSS: block and inline (refer to the lecture example). List two HTML tags that fall into each category. Give an example of their use and write a CSS rule that modifies thier default appearance.
  3. What are the possible settings for font-size in a CSS stylesheet? What is the exact meaning of 'smaller' 'xx-small' and 'large'?
  4. What does the float property do in a CSS stylesheet? What elements can it be applied to? Illustrate the use of float in a document, be prepared to sketch the resulting rendered HTML.

Additional topics for discussion in the tutorial (not for handing in):

  1. You've been hired by the Wollongong Evening Herald to revamp their website which was written in the 90s and contains lots of font tags and other out of date HTML constructs. You remember that your COMP249 lecturer said that these were a bad idea and that putting the style in CSS files was better. How would you convince the Herald management that an approach based on structured HTML and CSS was better than what they had already?
  2. List some new HTML elements which are used in the HEAD part of an HTML document for specifying CSS or a script language. What other HTML elements can occur within the HEAD and what are they used for?
  3. What does Cascade mean in CSS? How do styles specified in different places in the HTML page interact? Where does a user supplied stylesheet fit in?

Comments to: comp249-admin@ics.mq.edu.au

Copyright & Site information