HTML/CSS MCQs – Multiple Choice Questions and Answers – Part 7
Multiple choice questions and answers (MCQs) on HTML/CSS to prepare for exams, tests, and certifications. These questions are taken from a real written exam and some parts are taken from an interview. So you will find questions on basic techniques such as tags, web standards, CSS selector, objects, and more. This quiz will easily prepare anyone to pass their online test.
1. Which attribute can be used with the <table> tag to give your table a border?
A line
B border
C margin-left border
D All the answers are true
2. Which element has very similar properties to the DIV element?
A strong
B span
C table
D All the answers are true
<div id = "myDiv"> <p> Lorem <span class = "paper"> ipsum </span> </p> </div>
3. What is the alternative to the <b> tag, to make the text bold?
A <bold>
B <strong>
C <i>
D <emp>
4. What HTML stand for __________?
A HyperText Markup Language
B Hyper Teach Markup Language
C Hyper Tech Markup Language
D None of the above
5. HTML web pages can be read and rendered by the _________.
A Compiler
B Server
C Web browser
D Interpreter
6. Which of the following is not an attribute of the <form> tag
A action
B method
C name
D url
7. HTML is a subset of ______ ?
A SGML
B SGMD
C SGMT
D None of the above
8. Choose the correct HTML tag to render text in italics
A <italic>
B <it>
C <il>
D <i>
9. Which tag is used to create a checkbox in HTML?
A <checkbox>
B <input type = "checkbox">
C <check>
D <input type = "checkbox">
10. How to create a link to an email?
A <a href="mailto:xxx@yyy">
B <a href="xxx@yyy">
C Mail>xxx@yyy
D Mail href="xxx@yyy"
11. What is the latest version of CSS available?
A CSS2
B CSS3
C CSS3.1
D CSS4
12. Which of the following properties defines the font size of the text?
A text-size
B font-size
C size
D text
13. Which of the following properties defines the spacing between letters?
A space
B line-height
C letter-spacing
D None of the above
h1 { letter-spacing: 9px; }
GOOD QUESTION