HTML/CSS MCQs – Multiple Choice Questions and Answers – Part 6
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. In order to upload an HTML file to a web server, you use ______?
A HTTP
B SMTP
C SIP
D FTP
2. In HTML5 we specify _______ so that the browser displays the page in standard mode.
A DOCTYPE
B HEAD
C BODY
D TITLE
[st_adsense]
3. An ordered list can be represented by ______.
A <ol>
B <ul>
C <li>
D <el>
<ol> <li>Lorem ipsum</li> <li>Lorem ipsum</li> <li>Lorem ipsum</li> </ol>
4. Which of the attributes is mandatory in the <img> tag?
A src
B href
C id
D alt
<img src="../../images/test.jpg">
5. PNG means _______________
A Portable Network Graphic
B Pivot Network Graphic
C Pichart Network Graphic
D Pythagorus Network Graphic
[st_adsense]
6. GIF means _______________
A Graph Interchange Format
B Graphics Interlinked Format
C Graphics Interchange Format
D None of the above
7. Which of the following CSS selectors selects an element that does not have sub-elements?
A :empty
B :nochild
C :inheritance
D :no-child
:empty { // CSS property }
8. Which of the following CSS selectors selects an element if it is the only child of its parent?
A :nth-oftype(n)
B :only-child
C :root
D None of the above
p:only-child { background: #ff0000; }
[st_adsense]
9. In css, what h1 can be called as ______
A Selector
B Attribute
C Value
D Label

10. In css, what can “color:red” be called?
A Rule
B Attribute
C Value
D Declaration

very good implementation…….