Which of the following statements related to business computing is/are true?…
2022
Which of the following statements related to business computing is/are true?
(i) The HTML style attribute is used to add styles to an element, such as colour, font, size, and more.
(ii) HTML colours are specified with predefined colour names, or with RGB, HEX, HSL, RGBA, or HSLA values.
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- D.
Neither (i) nor (ii)
Attempted by 125 students.
Show answer & explanation
Correct answer: C
Statement (i) is true because the style attribute applies inline CSS for properties like color and font. Statement (ii) is also true as HTML supports multiple color formats including names, HEX, RGB, and HSL. Since both statements are factually correct regarding web development standards, the valid response is Option 2.