January 16, 2013

HTML and CSS Quiz Part 2

If you haven't done so, learn HTML, CSS and SEO first. Then attempt this second and final part of the quiz on HTML (HyperText Markup Language) and CSS (Cascading Style Sheets). If you have not answered the part 1 of this quiz, attempt that here first. Most of the questions below have just one correct answer. See how many of your answers are green :)

1. Which attribute(s) is used to define the size of a TEXTAREA?
size
rows, cols
height, width

2. Which input type is used to create a Browse button?
button
image
file

3. In CSS, which tag can be used to style multiple elements all at once?
<BODY>
<DIV>
<SPAN>

4. In CSS, which prefix is used before the class selector?
#
.
No prefix is required

5. Which of these CSS selectors for a paragraph is (are) INCORRECT?
p:first-line
p:last-line
p:first-child

6. Which position places an element down and left to its normal position?
fixed
absolute
relative

7. Which position places an element so that it stays in place even when the web page is scrolled?
fixed
absolute
relative

8. How are external stylesheets (styles applied to multiple web pages) written?
As regular HTML documents with <HTML>, <HEAD> <STYLE> and <BODY> tags
With only the <STYLE> tag
With only the specific styles

9. If there is a conflict between the style defined in an external stylesheet and that defined within the web page, which style is applied to the element?
The bottom most style is applied
The style defined within the web page is applied
The style defined in the external stylesheet is applied

10. Which of these attributes of a FORM tag is(are) INCORRECT?
action
target
post

1 comment:

Note: Only a member of this blog may post a comment.