Font size
S
M
L
XL
WorksheetsHTML & CSS (including Bootstrap) Test
Total questions: 77
Worksheet time: 39mins
Name
Class
Date
1.
Full Name
4 lines
2.
Which HTML tag is used to define a table?
a)
d) 3. Which of the following is used to set the background color of an HTML element? a) color b) font-size c) font-weight d) background-color 4. What is CSS Grid? a) A programming language b) A web browser c) A layout system for creating complex grid layouts in HTML and CSS d) A type of database system 5. Which of the following is used to define a CSS class? a) # b) . c) : d) ; 6. Which of the following is used to set the width of a button to expand to fill the width of its container in Bootstrap? a) btn-small b) btn-medium c) btn-large d) btn-block 8. Which of the following is a Bootstrap glyph icon class for the "home" icon? a) glyphicon-envelope b) glyphicon-user c) glyphicon-search d) glyphicon-home 9. Which of the following is used to add a border around an HTML element in CSS? a) border b) padding c) margin d) All of the above 10. Which of the following is used to specify the space between the content and the border of an HTML element in CSS? a) border-width b) border-style c) border-color d) padding 11. Which of the following is used to specify the space between the border and the surrounding elements of an HTML element in CSS? a) border-width b) border-style c) border-color d) margin 12. What is a Bootstrap carousel? a) A type of database system b) A slideshow component for cycling through elements like images or slides of text c) A layout system for creating complex grid layouts in HTML and CSS d) A web browser 13. What does HTML stand for? a) Hyperlinks and Text Markup Language b) Hypertext and Text Markup Language c) Hypertext Markup Language d) None of the above 15. Which of the following is not a valid HTML color name? a) Blue b) Green c) Yellow d) Purple 16. Which of the following is used to add styling to an HTML document? a) JavaScript b) SQL c) Java d) CSS 17. Which CSS property is used to control the space between elements? a) margin b) padding c) border d) All of the options 18. Which of the following is a Bootstrap class used to create a carousel? a) carousel-inner b) carousel-item c) carousel-slide d) carousel 19. Which of the following is a Bootstrap class used to create a table with striped rows? a) table-striped b) table-bordered c) table-hover d) table-condensed 20. Which of the following is a JavaScript method used to add an event listener to an element? a) addEventListener() b) attachEvent() c) removeEventListener() d) All of the above 21. Which class is used in Bootstrap 3 to create a responsive navigation bar? a) .navbar-default b) .navbar-collapse c) .navbar-header d) .navbar-brand 22. Which class is used in Bootstrap 3 to create a container with fixed width? a) .container-fluid b) .container c) .row d) .col-md-6 23. Which class is used in Bootstrap 3 to create a button with a dropdown menu? a) .btn-group b) .btn-success c) .btn-block d) .dropdown-toggle 24. Which class is used in Bootstrap 3 to create a grid system? a) .grid-row b) .grid-cols c) .col-row d) .grid 25. Which class is used in Bootstrap 3 to create a carousel? a) .carousel-slide b) .carousel-item c) .carousel-control d) .carousel 26. Full Name 4 lines 27. Which of the following is the standard way to start an HTML document? a) b) c) d) 29. Which HTML attribute is used to specify a URL for the target page of a hyperlink? a) href b) src c) alt d) class 30. Which HTML tag is used to define a table row? a) b) c) d) |
