HTML & CSS Mock Test
Total Questions: 20 Marks: 20 Reward: ■100
Section A: HTML
1. What does HTML stand for?
a) Hyper Text Markup Language
b) High Text Machine Language
c) Hyperlinks and Text Mark Language
d) None
2. Which tag is used to create a hyperlink?
a) <link>
b) <a>
c) <href>
d) <url>
3. Which tag is used to insert an image?
a) <image>
b) <img>
c) <pic>
d) <src>
4. Largest heading element?
a) <heading>
b) <h6>
c) <h1>
d) <head>
5. Attribute for alternative text?
a) title
b) alt
c) src
d) href
6. Line break tag?
a) <break>
b) <lb>
c) <br>
d) <line>
7. Ordered list tag?
a) <ul>
b) <ol>
c) <li>
d) <list>
8. Correct HTML structure?
a) html-body-head
b) html-head-body
c) head-html-body
d) body-html-head
9. Table row tag?
a) <td>
b) <th>
c) <tr>
d) <table>
10. Email input type?
a) text
b) mail
c) email
d) input-email
Section B: CSS
11. What does CSS stand for?
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
12. Property to change text color?
a) font-color
b) text-color
c) color
d) text-style
13. Select id='demo'?
a) .demo
b) #demo
c) demo
d) *demo
14. Select class='test'?
a) #test
b) .test
c) test
d) *test
15. Property for text size?
a) text-size
b) font-size
c) size
d) text-style
16. Bold text?
a) font-weight: bold;
b) text-bold
c) style bold
d) font bold
17. Background color property?
a) bg-color
b) background-color
c) color-bg
d) bgcolor
18. CSS comment?
a) //
b) <!-- -->
c) /* */
d) #
19. Spacing inside element?
a) margin
b) padding
c) border
d) spacing
20. Flex container?
a) display:block
b) display:inline
c) display:flex
d) flex:enable