HTML/CSS MCQs – Multiple Choice Questions and Answers – Part 20
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 CSS property allows you to position an element in a fixed way relative to the browser window?
A position: absolute;
B position: fixed;
C position: relative;
D position: sticky;
2. Which HTML tag is used to create an email input field?
A <input type="email">
B <input type="text">
C <input type="url">
D <input type="password">
3. Which CSS property is used to specify the font style?
A font-family
B font-style
C font-size
D font-weight
4. Which HTML tag is used to define a level 1 heading in a webpage?
A <h1>
B <title>
C <h2>
D <heading>
5. Which HTML tag is used to allow a user to upload a file?
A <form type="file">
B <file>
C <input type="upload">
D <input type="file">
6. What is the most commonly used character encoding in HTML?
A ISO-8859-1
B UTF-8
C ASCII
D Windows-1252
7. Which CSS property allows you to set rounded corners for an element?
A border-radius
B corner-radius
C border-curve
D round-corner
8. How do you create a link that directs the user to a specific section of a page?
A <a href="page#section">
B <a href="section">
C <a href="#section">
D <a href="section#">
9. Which CSS property allows you to change the style of list bullets?
A list-style
B bullet-style
C list-type
D marker-style
10. Which HTML tag is used to create a select list with multiple options in a form?
A <select multiple>
B <select>
C <option multiple>
D <select multi>