How do you apply multiple CSS styles in a single line?
Instruction: Describe the method to apply multiple styles directly within an HTML tag.
Context: This question tests the candidate's knowledge of inline CSS and the syntax for applying multiple styles within a single line.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
Put a semicolon-separated list of property/value declarations in the element's style attribute. A colon separates each property from its value. Whitespace around the colon and value is allowed.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>CSS example</title> <style> .message { color: darkgreen !important; } </style> </head>...