HTML and CSS

A test of HTML and CSS

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following tags in NOT related to creating a table?

  1. th
  2. td
  3. tr
  4. tt
  5. table
Question 2 Multiple Choice (Single Answer)

Which of the following attributes of a textbox limits the number of characters it can hold?

  1. length
  2. value
  3. size
  4. limit
  5. maxlength
Question 3 Multiple Choice (Single Answer)

HTML documents are read and rendered by ________.

  1. Compiler
  2. Interpreter
  3. Browser
  4. Network
  5. Web server
Question 4 Multiple Choice (Single Answer)

Which of the following statements is FALSE regarding HTML tags?

  1. HTML tags are case sensitive.
  2. Some html tags are not required to be closed.
  3. The opening and closing html tag is optional.
  4. HTML tags can have attributes.
  5. HTML tags can be written using any text editor.
Question 5 Multiple Choice (Single Answer)

What can be defined as a white space between the cell content and its borders?

  1. Cell spacing
  2. Cell width
  3. Table border
  4. Cell padding
  5. Cell height
Question 6 Multiple Choice (Single Answer)

Which of the following is NOT a valid HTML tag?

  1. INPUT
  2. SUB
  3. META
  4. CAPTION
  5. HEADING
Question 7 Multiple Choice (Single Answer)

Which of the following is NOT an attribute of the img tag?

  1. src
  2. align
  3. border
  4. size
  5. alt
Question 8 Multiple Choice (Single Answer)

Which of the following is NOT a valid attribute for a frame target?

  1. _blank
  2. _new
  3. _self
  4. _parent
  5. _top
Question 9 Multiple Choice (Single Answer)

Which attribute of the input tag is used to create a Text Box?

  1. input type = textbox
  2. input type = text
  3. input type = label
  4. input type = textfield
  5. textarea
Question 10 Multiple Choice (Single Answer)

Which of the following is NOT a value for the background-repeat property?

  1. repeat
  2. repeat-x
  3. repeat-y
  4. norepeat
  5. no-repeat
Question 11 Multiple Choice (Single Answer)

HTML is a subset of which of the following languages?

  1. SGML
  2. DHTML
  3. XML
  4. JSP
  5. None of the above
Question 12 Multiple Choice (Single Answer)

Which of the following is NOT a valid statement with reference to CSS?

  1. CSS defines how to display HTML elements.
  2. External style sheets are stored in CCS files.
  3. Styles were added from HTML 4.0.
  4. External style sheets can save a lot of work.
  5. A CSS rule has two main parts: a selector, and one or more declarations.
Question 13 Multiple Choice (Single Answer)

Which of the following is NOT a valid attribute of the a(anchor) tag?

  1. type
  2. rel
  3. href
  4. name
  5. link
Question 14 Multiple Choice (Single Answer)

Which of the following is the correct syntax for making all the paragraph (p) tags bold?

  1. p {text-size:bold;}
  2. p {text-size=bold;}
  3. p {font-weight:bold;}
  4. p style=text-size:bold;
  5. p={text-size:bold}
Question 15 Multiple Choice (Single Answer)

With reference to CSS, which font property is used to display the text in bold letters?

  1. font-style
  2. font-variant
  3. font-weight
  4. font-size
  5. font-family
Question 16 Multiple Choice (Single Answer)

Which of the following tags is used to display a heading in smallest size?

  1. h1
  2. p
  3. h5
  4. h6
  5. h7
Question 17 Multiple Choice (Single Answer)

Which html tag is used to divide an HTML document into different sections or parts?

  1. division
  2. frame
  3. div
  4. table
  5. body
Question 18 Multiple Choice (Single Answer)

Which of the following statements is the correct syntax to create an email hyperlink?

Question 19 Multiple Choice (Single Answer)

Which of the following is NOT a valid html form element?

  1. fieldset
  2. option
  3. select
  4. choice
  5. input
Question 20 Multiple Choice (Single Answer)

Which of the following statements is FALSE regarding !DOCTYPE declaration?

  1. It can appear anywhere in an HTML page.
  2. !DOCTYPE is not an HTML tag.
  3. It does not have an end tag.
  4. If the !DOCTYPE is not specified the page will be rendered in quirks mode.
  5. The !DOCTYPE refers to DTD.
Question 21 Multiple Choice (Single Answer)

Which of the following statements is FALSE regarding the class' selector in CSS?

  1. The class selector is used to specify a style for a single, unique element.
  2. The class selector is defined with '.' (dot).
  3. Class name should comprise only alpha numeric characters, and hyphens.
  4. The name of the class can be as desired by the user.
  5. It is used with style sheets.
Question 22 Multiple Choice (Single Answer)

Which of the following is NOT a valid attribute of the while creating a radio button using the input tag?

  1. checked
  2. value
  3. name
  4. type
  5. selected
Question 23 Multiple Choice (Single Answer)

Which tag is used to display the fullform of a abbreviation as a tooltip when the user places the mouse over it?

  1. acronym
  2. code
  3. dd
  4. blockquote
  5. cite
Question 24 Multiple Choice (Single Answer)

Which of the following is NOT a valid shape type with reference to ImageMap?

  1. oval
  2. rect
  3. default
  4. circle
  5. poly
Question 25 Multiple Choice (Single Answer)

Which of the following is tag is used to create an inline frame?

  1. iframe
  2. inframe
  3. form
  4. frame
  5. frameset