Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)

The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers " section that follows.

Quiz

1:

What is an aural web page?

2:

What happens to an external style sheet that is linked to a page without any media attribute being specified?

3:

How would you link a style sheet named freestyle.css to a page so that it applies only when the page is viewed on a television?

Answers

A1:

An aural web page is a page designed to be listened to. Right now, true aural web pages via CSS are a future consideration for web developers. However, they do provide a clue as to the direction the web is headed in, which is a heavier reliance on style sheets for more than just applying fonts, colors, and positioning.

A2:

The media attribute assumes its default value of all, which causes the style sheet to target all media types.

A3:

<link rel="stylesheet" type="text/css" href="freestyle.css" media="tv" />

Категории