Sie sind auf Seite 1von 2

CST 250 - Web Design and Development II

Midterm Study Questions


1. What is the difference between HTML and XHTML?
2. What is the newest version of HTML? What is the newest version of XHTML?
3. What is the doctype? What is the purpose of the doctype?
4. What is the doctype definition for html5?
5. What is the doctype definition for xhtml?
6. List four(4) new structural tags in html5?
7. List four(4) new semantic tags in html5?
8. What are the two parts of a CSS rule?
9. What are the three types of CSS selectors?
10. Write the CSS rule to specify that all h1 elements should have a background color of blue.
11. Write the CSS rule to specify that the element with the top id should have a color of red.
12. Write the CSS rule to specify that all elements assigned to the red class have a background color
of red.
13. What are the three ways of inserting CSS into a web page.
14. Assuming we want to link our html file to the style sheet mystyle.css, specify the code for the
<link> element.
15. What are the three common audio formats used in HTML5?
16. Assuming we we want to embed the audio file beats.mp3 into a web page, specify the code
for the <audio> element?
17. What is the purpose of the controls attribute in the audio element?
18. What attribute should we use if we want an audio file to play automatically?
19. What is the purpose of embedding the <embed> tag within the <audio> tag?
20. What are the four common video file formats in html5?
21. Assuming we we want to embed the audio file kidspartys.mp4 into a web page, specify the
code for the <video> element?
22. Assuming we we want to embed the Shockwave Flash file home.swf into a web page, with a
width = 300 and height = 300, specify the code for the <object> element?
23. What is the difference between client-side programs and server-side programs? Give an
example of each.
24. List two differences between Java and JavaScript.

CST 250 Web Design and Development II

Spring 2012

25. Answer the following questions based off the below JavaScript statement:
document.write(Welcome to my site + name);

a. What method of the document object is being called?


b. What is the argument being passed to the method?
c. What is the purpose of the + operator?

26. Write the JavaScript statement to declare a variable called test.


27. Write the JavaScript statement to declare a variable called name and initialize the variable to
the value Tom.
28. What are the four(4) JavaScript data types?
29. Assuming we want to access an external javascript file called functions.js specify the code for the
<script> element.
30. What html element is used to embed java applets into web pages?
31. What is the purpose of applet parameters?
32. Assume we want to embed a Java Applet logo.class into a web page, with a width = 200,
height = 200, and a parameter size equal to 50. Specify the code for the <object> element?

CST 250 Web Design and Development II

Spring 2012

Das könnte Ihnen auch gefallen