


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A midterm exam for a computer science course focusing on html and css. It includes multiple choice and written answer questions. The multiple choice questions cover topics such as absolute positioning, image formats, css and xhtml fragments, link elements, and xhtml markup. The written answer questions require creating xhtml and embedded css code for a webpage with specific requirements.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!
1) What is the primary purpose of absolute positioning?
d) Setting up a hyperlink with an absolute URL c) Changing the placement of elements within a webpage a) Fixing your website's position in a search engine's rankings b) Changing the position of pixels within an inline image
2) Which image format is not appropriate for the web?
a) .jpg d) .png c) .gif b) .bmp
3) Under the following CSS and XHTML fragments, how would the text appear?
CSS Fragment: div { color: red; } blockquote { color: blue; }
XHTML Fragment:
hello
world
d) hello is blue and world is blue a) hello is blue and world is red c) hello is red and world is red b) hello is red and world is blue
4) What is the link element best used for?
c) Indicating what external CSS file should be used to style a page d) Making a linked list data structure, particularly one with head and tail nodes b) Dynamically linking a webpage to the XHTML or CSS validator a) Creating a hyperlink to a webpage
1 (5 points) Write a line of XHTML inside the following div to make a clickable hyperlink to http://www.google.com
2 (5 points) Convert the hexadecimal number a3 to decimal.
3) (5 points) In plain English (one word), what color does #a300a3 represent?
4) (35 points) Make this webpage by filling in XHTML and embedded CSS on the first page of this exam. The GO text is a hyperlink that goes to the page blah.html, which resides in the same directory as the current .html file. The border of the box is green in color. The text on the left has no positioning applied, and assume “Page” is a major heading.