+ 13
Hey, friends is there any way to format the text written inside JS like bold ,italic , underline etc.
27 odpowiedzi
+ 12
AL Araf can you please explain in detail
+ 9
AL Araf oh,so sorry, I didn't noticed it ๐
and also thank you for your help ๐๐๐
+ 8
AL Araf what if you want the bold ,italic or underlined effect
+ 8
Muhd Khairul Amirin Bin Yaacob thank you so much ,sir .It will help a lot ๐๐๐๐๐๐
+ 8
Muhd Khairul Amirin Bin Yaacob thank you so much for your kind words ๐๐๐ท๐ท ๐ท
+ 8
Muhd Khairul Amirin Bin Yaacob ๐๐๐๐๐๐
+ 7
AL Araf ๐๐๐๐
+ 7
H4CK3R๐บ๐บC4t๐บ๐บ thanks a lot for your help ๐๐๐
+ 7
H4CK3R๐บ๐บC4t๐บ๐บ ๐๐๐๐
+ 6
โญJanhviโญ You are welcome๐
+ 6
You can use JQuery or in the Regular JS example โ
document.getElementById(โDemoโ).style.color = โA colorโโ
for color
and use โ
document.getElementById(โDemoโ).style.backgroundColor = โA colorโโ
in the A color put a color in there like a RGBA, RGB, HEX, etc.
Hopes this helps!๐โบ๏ธโ๏ธ
+ 5
You can decorate your JavaScript text by CSS!!!
Write a text in JS part and decorate that on CSS part!(according to SoloLearn's Code Playground)!
+ 5
This is mainly a JavaScript code(string)! I have decorated that by CSS!
+ 5
You have to use CSS property!! You can see my code!๐
+ 5
โญJanhviโญ Glad to help you. Good luck in coding๐
+ 5
โญJanhviโญ No Problem!
+ 4
By the way,if you don't understand, I will suggest and request you to complete CSS and JavaScript course fully at first then you can understand that easily!!๐๐
+ 4
โญJanhviโญ You are welcome!!๐๐