January 13, 2013

HTML and CSS Quiz Part 1

HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) are the fundamental building blocks of web pages. Learn HTML, CSS and SEO. Then attempt this quiz to see how well you understand these. Most of the questions have just one correct answer.
1. The HTML tag for creating a link is
<LINK>
<L>
<A>

2. The correct attribute in the <A> tag when creating a destination within the same web page is
NAME
HREF
TARGET

3. The HTML tag to create a auto numbered list is
<NL>
<LI>
<OL>

4. An HTML table with no data entered in the <TD> tag shows what in the browser?
A small empty table with the defined number of rows and columns
Error
Nothing at all

5. The correct attribute in the <TABLE> tag to give space between the cell border and the cell data is
BORDER
CELLPADDING
CELLSPACING

6. Where are the style definitions of CSS given in an HTML document?
Within the <HTML> tag as an attribute
<HEAD> section.
<BODY> section

7. Where in the CSS are defined styles that apply to the entire HTML document?
BODY element
Styles are individually defined for each tag used in the document.
Both the previous choices

8. In CSS, which property is used to change the bullet points icon in both unordered lists and ordered lists?
list-style
list-style-type
list-bullet-style

9. In CSS, which of the following link states is INCORRECT?
a:link
a:visited
a:hovered

10. When styling a table, from which element does the table row <TR> get its property value when not specified?
<TABLE>
<TH>
<TD>
Now, go to the part 2 of this quiz here.

5 comments:

  1. Sir is It possible to update these kind of questions for Windows application

    ReplyDelete
    Replies
    1. @Sandeep,
      HTML/ CSS is primarily used for web applications. Though it may be used in an internet/ browser control within a Windows application.
      Which kind of questions are you looking for Windows applications?

      Thanks for your comment and take care.
      Inder

      Delete
  2. 8 correct. Thanks Inder

    ReplyDelete
    Replies
    1. Very good, Amit. Did you attempt part 2 of the quiz?

      Delete

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