Web Design and Production Exam Questions | Generated by AI

Home 2026.01

Question: Generate 30 multiple-choice exam questions based on the Guangdong Higher Education Self-Examination course “Web Design and Production (Practical)” (Course Code: 13168). Do not show the answers.

Answer:

Here are 30 multiple-choice questions covering the key topics from the course outline, including browser and editor basics, HTML5, CSS3, and comprehensive web development.

  1. Which of the following is the correct DOCTYPE declaration for an HTML5 document?
    A) <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”>
    B) <!DOCTYPE html>
    C) D) <!HTML5>

  2. What is the primary purpose of the tag in HTML5?
    A) To set the page background color
    B) To specify the character encoding for the document
    C) To define the page title
    D) To link an external CSS file

  3. Which HTML tag is used to create a hyperlink?
    A)
    B)
    C) D)

  4. To open a link in a new browser tab, which attribute and value should be used with the tag?
    A) target=”_self”
    B) target=”_blank”
    C) href=”_new”
    D) open=”new”

  5. Which attribute is used to provide alternative text for an image in case it fails to load?
    A) src
    B) alt
    C) title
    D) border

  6. In an HTML table, which attribute allows a cell to span multiple columns?
    A) rowspan
    B) colspan
    C) merge
    D) span

  7. Which HTML element is used to create a dropdown list in a form?
    A)
    B)

  8. Which new HTML5 input type is used for selecting a date?
    A)
    B)
    C)
    D)

  9. Which HTML5 tag is used to embed video content?
    A) B)

  10. Which of the following is a semantic structural element introduced in HTML5?
    A) <div>
    B)
    C) <header>
    D)

  11. What is the default display value for a <div> element in CSS?
    A) inline
    B) block
    C) inline-block
    D) none

  12. Which CSS selector targets an element with a specific ID?
    A) .classname
    B) #idname
    C) element
    D) *idname

  13. In CSS, which property is used to change the text color?
    A) font-color
    B) text-color
    C) color
    D) foreground-color

  14. Which CSS property controls the space between the border and the content inside an element?
    A) margin
    B) padding
    C) border-spacing
    D) spacing

  15. To make an element float to the left of surrounding content, which CSS property and value is used?
    A) position: relative
    B) float: left
    C) display: inline
    D) clear: both

  16. Which CSS property is used to set a background image for an element?
    A) background-color
    B) background-image
    C) background-src
    D) image-background

  17. What does the CSS value “border-radius: 10px;” do?
    A) Adds rounded corners to the border
    B) Increases the border width
    C) Changes the border color
    D) Removes the border

  18. Which pseudo-class is used to style a link when the mouse hovers over it?
    A) :visited
    B) :active
    C) :hover
    D) :link

  19. In CSS, how can you link an external stylesheet to an HTML document?
    A)
    B)
    C)
    D) <import “styles.css”>

  20. Which CSS unit is relative to the font size of the root element?
    A) px
    B) em
    C) rem
    D) %

  21. To center a block element horizontally, which CSS properties are commonly used?
    A) margin: 0 auto
    B) padding: 0 auto
    C) text-align: center
    D) float: center

  22. Which HTML5 element is typically used for the main navigation links of a website?
    A) <nav>
    B) <menu>
    C) <aside>
    D) <section>

  23. In a form, which attribute makes an input field required before submission?
    A) mandatory
    B) validate
    C) required
    D) need

  24. Which CSS property removes the default bullet points from an unordered list?
    A) list-style: none
    B) bullet: none
    C) list-type: none
    D) display: block

  25. What is the purpose of the “clear: both” CSS property?
    A) To clear the background color
    B) To prevent floating elements from affecting the element
    C) To clear the cache
    D) To remove borders

  26. Which browser is NOT mentioned in the course outline as a common browser to master?
    A) Chrome
    B) Firefox
    C) Edge
    D) Safari

  27. In Visual Studio Code, what is the primary purpose of installing plugins like “JS-CSS-HTML Formatter”?
    A) To change the editor theme
    B) To automatically format code
    C) To add Chinese language support
    D) To preview web pages

  28. Which file format is commonly recommended for transparent images on the web?
    A) JPEG
    B) BMP
    C) GIF
    D) PNG

  29. In CSS box model, the total width of an element includes which of the following?
    A) Only content
    B) Content + padding + border + margin
    C) Content + padding + border
    D) Content + margin

  30. For a comprehensive website layout, which structure is commonly used with DIV+CSS?
    A) Header, main content, footer
    B) Only body
    C) Table-based layout
    D) Frameset


Back

x-ai/grok-4.1-fast

Donate