NEW
Font size
WorksheetsCODE THE WEB {P1}
Total questions: 30
Worksheet time: 15mins
Which of the following is used to style HTML elements?
CSS
HTML
JavaScript
SQL
What does HTML stand for?
Hyper Text Markup Language
Hyper Text Making Language
Hyperlink Text Markup Language
Home Tool Markup Language
Which of the following tags is used to create a table in HTML?
d) 5. Which of the following HTML attributes is used to define the source of an image? a) img-source b) src c) href d) url 6. Which of the following JavaScript methods is used to write output to the browser console? a) console.log() b) console.print() c) document.write() d) output() 7. What is the default value of the position property in CSS? a) relative b) absolute c) static d) fixed 8. Which CSS property is used to change the font of an element? a) font-family b) font-style c) font-size d) font-weight 9. Which HTML element is used to specify navigation links? a) b) c) d) 10. Which of the following is the correct syntax for a JavaScript function? a) function myFunction {} b) function = myFunction() {} c) function myFunction() {} d) myFunction function() {} 11. Which property is used to change the background color of an element in CSS? a) background-color b) bg-color c) color d) background 12. Which of the following is the correct syntax to link an external JavaScript file to an HTML document? a) b) c) d) 13. What is the purpose of the tag in HTML? a) To add styling to the page b) To provide metadata such as description, keywords, and author c) To link external JavaScript files d) To create navigation menus 14. Which CSS property is used to change the space between lines of text? a) line-spacing b) letter-spacing c) line-height d) word-spacing 15. What does the transform property in CSS allow you to do? a) Move, scale, rotate, and skew elements b) Change the color of elements c) Add shadows to elements d) Set the position of elements 16. What is the purpose of the alt attribute in an a) To add a border to the image b) To provide an alternative text for screen readers c) To specify the width of the image d) To make the image clickable 17. Which of the following is used to make a website responsive? a) Flexbox b) CSS Grid c) Media Queries d) All of the above 18. Which of the following is a JavaScript framework/library? a) Angular b) CSS c) SQL d) HTML 19. Which of the following is the correct HTML tag to add a title to a webpage? a) b) c) d) 20. Which CSS property is used to add space between an element's border and its content? a) padding b) margin c) border-spacing d) spacing 21. Which JavaScript function is used to parse a string and return an integer? a) parseInt() b) parseString() c) toInteger() d) parseNum() 22. Which of the following is NOT a valid CSS color value? a) #FF5733 b) rgb(255, 87, 51) c) blue d) color: rgb(0, 0, 0) 23. Which of the following methods is used to attach an event listener to an HTML element in JavaScript? a) element.addEventListener() b) element.addEvent() c) element.onEvent() d) element.attachEvent() 24. Which of the following is a valid way to center a block-level element in CSS? a) margin: auto; b) text-align: center; c) center: true; d) align: center; 25. Which of the following JavaScript data types is used to store multiple values? a) Object b) Array c) String d) Boolean 26. Which of the following is NOT a valid HTML5 input type? a) text b) date c) time d) textbox 27. What does the z-index property in CSS control? a) The background image b) The font size c) The stacking order of elements d) The color of text 28. Which of the following is the correct syntax to link an external CSS file to an HTML document? a) b) c) d) 29. Which CSS property is used to create a grid layout? a) display: grid; b) display: flex; c) grid-template-rows: 1fr; d) grid-columns: 2; 30. What does the box-sizing CSS property do? a) Changes the border size of an element b) Controls the layout of inline elements c) Changes the way the width and height of an element are calculated d) Sets the size of the page box Reset Similar Resources on Wayground25 questions Kuis Sistem Informasi Manajemen Worksheet • University 25 questions UTS Literasi TIK & Media Pembelajaran Worksheet • University 25 questions GPC_IT Networking Mar 25, 2025 Worksheet • University 25 questions Google Sheets Midterm Quiz - 21/10/2024 Worksheet • University 25 questions CSS Day-3 Worksheet • University 25 questions NovaQuest'25 - Junior Category Final Round Worksheet • 9th Grade - University 25 questions JavaScript Day-1 Worksheet • University 25 questions ECHELON 2K26 Worksheet • University |
