Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 3 MCQs Introduction to Cascading Style Sheets

CSE326 — Internet Programming Laboratory 50 questions. Pick an option to check it.

Read the notes

0 of 50 answered 0 right 0 wrong , 50 left

  1. Question 1 of 50

    What does CSS stand for?

  2. Question 2 of 50

    Which HTML tag is used to define an internal style sheet?

  3. Question 3 of 50

    Which HTML attribute is used to define inline styles?

  4. Question 4 of 50

    What is the correct HTML for referring to an external style sheet?

  5. Question 5 of 50

    Which is the correct CSS syntax?

  6. Question 6 of 50

    How do you insert a comment in a CSS file?

  7. Question 7 of 50

    Which CSS property is used to change the background color?

  8. Question 8 of 50

    How do you add a background color for all <h1> elements?

  9. Question 9 of 50

    Which CSS property is used to change the text color of an element?

  10. Question 10 of 50

    Which CSS property controls the text size?

  11. Question 11 of 50

    What is the correct CSS syntax for making all the <p> elements bold?

  12. Question 12 of 50

    How do you display hyperlinks without an underline?

  13. Question 13 of 50

    How do you make each word in a text start with a capital letter?

  14. Question 14 of 50

    Which property is used to change the font of an element?

  15. Question 15 of 50

    How do you select an element with id 'demo'?

  16. Question 16 of 50

    How do you select elements with class name 'test'?

  17. Question 17 of 50

    How do you select all p elements inside a div element?

  18. Question 18 of 50

    In the CSS Box Model, what is the innermost component?

  19. Question 19 of 50

    Which property is used to generate space around an element's content, inside of any defined borders?

  20. Question 20 of 50

    Which property is used to generate space outside the border?

  21. Question 21 of 50

    How do you specify a background image?

  22. Question 22 of 50

    How do you prevent a background image from repeating?

  23. Question 23 of 50

    Which CSS property specifies the alignment of text?

  24. Question 24 of 50

    What is the correct CSS shorthand for setting a border?

  25. Question 25 of 50

    Which property is used to set the height of a line of text?

  26. Question 26 of 50

    What is the difference between 'div' and 'span'?

  27. Question 27 of 50

    Which CSS property collapses table borders into a single border?

  28. Question 28 of 50

    How do you group multiple selectors to share the same styles?

  29. Question 29 of 50

    If 'margin: 10px 20px 30px 40px;' is set, what is the left margin?

  30. Question 30 of 50

    Which pseudo-class is used to define a special state of an element when the user moves the mouse over it?

  31. Question 31 of 50

    How do you create a 'zebra-striped' table using CSS?

  32. Question 32 of 50

    Which selector is used to select input fields with a specific type attribute?

  33. Question 33 of 50

    Which property specifies the stack order of an element?

  34. Question 34 of 50

    Which CSS property is used to italicize text?

  35. Question 35 of 50

    Which of the following has the highest priority?

  36. Question 36 of 50

    What value of the 'display' property makes an element completely disappear without occupying space?

  37. Question 37 of 50

    How can you center-align a block element (like a div) horizontally?

  38. Question 38 of 50

    Which property specifies the width of a table border?

  39. Question 39 of 50

    Which pseudo-class is commonly used to style an input field when it is clicked on or selected via tab?

  40. Question 40 of 50

    How do you make a list not display bullet points?

  41. Question 41 of 50

    What is the purpose of the Universal Selector (*) in CSS?

  42. Question 42 of 50

    Which CSS unit is relative to the font-size of the root element?

  43. Question 43 of 50

    Which property allows you to set the position of a background image?

  44. Question 44 of 50

    How can you specify that a text area in a form should not be resizable?

  45. Question 45 of 50

    Which property controls the space between the borders of adjacent table cells?

  46. Question 46 of 50

    How do you change the cursor to a pointer/hand when hovering over a submit button?

  47. Question 47 of 50

    What is the default positioning of HTML elements?

  48. Question 48 of 50

    Which property specifies the transparency of an element?

  49. Question 49 of 50

    Which CSS selector selects all elements with the class 'intro' inside a div?

  50. Question 50 of 50

    Which property adds a shadow to text?

That's unit 3

Answer a few questions and your score shows up here.