To change the color and size of the text "France" in the question, you can use HTML/CSS formatting. Here's how you can modify the question:
json
{
question: "<span style='color: blue; font-size: 20px;'>Paper I - Test 1: What is the capital of <span style='color: red; font-size: 24px;'>France</span>?</span>",
options: ["Paris", "London", "Berlin", "Madrid"],
answer: 0
}
In this updated JSON object:
- I've wrapped the word "France" in a `<span>` tag with inline CSS styles.
- The word "France" will appear in red color and slightly larger font size (`24px`), while the rest of the question will appear in blue color and `20px` font size.
Adjust the `color` and `font-size` values within the `<span>` tags to achieve your desired styling.
Comments
Post a Comment
Share with your friends :)
Thank you for your valuable comment