0
How can i style myvar Line 43. I want to style color red in instance class Color. Thanks you sir.
Style myvar color in instance class Color. https://code.sololearn.com/WsbFq8nOc4HH/?ref=app
1 Answer
+ 1
Style is generally appied to an element not on selective text.
If you want to style the product name put that textnode in an element like span and then append span in body and now you can style productname by styling span tag.