🎴 Flashcard Mode
HTML and Web Technologies Quiz
Card1 / 19
Mastered0
Review0
QuestionClick to flip
What is the correct HTML for adding a background color
AnswerClick to flip back
A
<body style="background-color:yellow">
💡 Explanation:
CSS is the correct way to style HTML elements including background colors. Option C uses inline CSS with the style attribute and background-color property, which is valid. Options A and D use non-existent tags. Option B uses the deprecated HTML attribute approach that should be replaced with CSS.