fix(curriculum): updated instructions on inline-styles (#42385)

This commit is contained in:
Mallikarjun Ople
2021-06-07 17:22:51 +05:30
committed by GitHub
parent fdf1de38e5
commit 40401b0792

View File

@ -14,7 +14,7 @@ All property value length units (like `height`, `width`, and `fontSize`) are ass
# --instructions--
If you have a large set of styles, you can assign a style `object` to a constant to keep your code organized. Initialize a `styles` constant and assign an `object` with three style properties and their values to it. Give the `div` a color of `purple`, a font-size of `40`, and a border of `2px solid purple`. Then set the `style` attribute equal to the `styles` constant.
If you have a large set of styles, you can assign a style `object` to a constant to keep your code organized. Declare your styles constant as a global variable at the top of the file. Initialize `styles` constant and assign an `object` with three style properties and their values to it. Give the `div` a color of `purple`, a font-size of `40`, and a border of `2px solid purple`. Then set the `style` attribute equal to the `styles` constant.
# --hints--