COPA Module 10: Web Design Concepts (HTML & CSS) – all 25 MCQ questions with answers

  1. What is the correct HTML syntax for adding a background color in a webpage?

    Answer: <body bgcolor="yellow"> – The bgcolor attribute of <body> sets the page background colour.

  2. Which is an attribute of <Table> tag?

    Answer: CELLPADDING – CELLPADDING sets the space between the cell border and its content in a table.

  3. What will happen if height and width of a video is not set while loading?

    Answer: Page flickers – Without width and height the browser re-adjusts the layout while loading, so the page flickers.

  4. What is the first tag in html document?

    Answer: <html> – Every HTML document starts with the <html> tag (after the DOCTYPE).

  5. Which is a free WordPress domain name provided to WordPress.com users?

    Answer: yousite.WordPress.com – WordPress.com gives free sub-domains like yoursite.wordpress.com.

  6. Which HTML tag makes a text bold?

    Answer: <b> – <b> makes text bold (<strong> also gives bold with importance).

  7. Which publishes a webpage to a web hosting server?

    Answer: Kompozer – KompoZer is a web editor with a built-in FTP publisher to upload pages to a server.

  8. What are the two main parts available in html document?

    Answer: Head and Body – An HTML document has two main parts: <head> (information) and <body> (visible content).

  9. What is the other name for web address?

    Answer: URL – A web address is called a URL (Uniform Resource Locator).

  10. What is node in Drupal?

    Answer: Piece of individual content as a page, poll – In Drupal, a node is a single piece of content such as a page, article or poll.

  11. Which HTML tag displays power in the expression (A+B)²?

    Answer: <sup> – <sup> shows superscript (powers like ²); <sub> shows subscript (like H₂O).

  12. What is the correct html code for inserting a background image?

    Answer: <body background = “image.jpg”> – The background attribute of <body> sets a background image: <body background="image.jpg">.

  13. Which tag creates a checkbox in a form in html?

    Answer: <input type = “check box”> – A checkbox is created with <input type="checkbox">.

  14. How do you add a link that allows the visitor to send an email from the page?

    Answer: <a href = “mailto : youraddress”> – A mailto: link opens the visitor's email program: <a href="mailto:you@mail.com">.

  15. Which of the following HTML code is valid?

    Answer: <font color="red"> – The correct attribute spelling is color (American), so <font color="red"> is valid.

  16. Which web page contains the controls while interacting with user?

    Answer: Dynamic – Dynamic web pages change and respond to user actions (forms, logins, controls).

  17. What are the unchangeable web pages called?

    Answer: Static – Static web pages show the same fixed content to every visitor.

  18. Which tag is used to create a combo box?

    Answer: <select> – <select> with <option> tags creates a drop-down (combo) box.

  19. What is the full form of CSS?

    Answer: Cascading Style Sheet – CSS = Cascading Style Sheets – controls colours, fonts and layout of web pages.

  20. Which is the correct syntax for adding alternate text for image, if the image cannot be displayed?

    Answer: <img src = “boat.gif” alt = “big boat”/> – The alt attribute gives alternate text shown when the image cannot load.

  21. Which is correct about <label> tag in HTML?

    Answer: Increase the clickable area of FORM elements – Clicking a <label> also selects its form field, increasing the clickable area.

  22. Which of the following CSS property sets the background image of an element?

    Answer: background-image – background-image: url("img.jpg"); sets the background image of an element in CSS.

  23. Which tag is use for AUDIO in HTML?

    Answer: <audio> – HTML5 uses the <audio> tag to play sound files.

  24. What is the correct syntax for making a hyperlink?

    Answer: <a href = “http:// nimi.gov.in”>nimi</a> – A hyperlink uses <a href="URL">link text</a>.

  25. What is the full form of WYSIWYG?

    Answer: What you see is what you get – WYSIWYG = What You See Is What You Get – the screen looks like the final output.