Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Quiz

Test your knowledge of style sheets and JavaScript by answering the following questions.

Questions

1:

Which of the following tags is the correct way to begin a CSS style sheet?

  1. <style>
  2. <style TYPE="text/css">
A1:

b. You begin a CSS style sheet with the tag <style TYPE="text/css">.

2:

Why isn't the normal HTML language very good at defining layout and presentation?

  1. Because it was designed by programmers.
  2. Because magazines feared the competition.
  3. Because its main purpose is to describe document structure.
A2:

c. HTML is primarily intended to describe the structure of documents.

3:

Which feature of new browsers allows you to use JavaScript statements to change styles?

  1. HTML 4.0
  2. The DOM
  3. CSS 2.0
A3:

b. The DOM (Document Object Model) allows you to change styles using JavaScript.

Share ThisShare This

Informit Network