Is there any way to paste the colorful text inside our html code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there any way to paste the colorful text inside our html code?

Is there any way to paste the colorful text inside our html code? So that we can see same colourful text on the screen. Note that I have asked to paste not using any css upon that.

28th Jan 2022, 6:53 AM
saurabh
saurabh - avatar
3 Answers
0
ROOKIE you could use fonts
28th Jan 2022, 6:55 AM
hamishhr
hamishhr - avatar
0
hamishhr Actually i want to paste the code from anywhere in to our html document , we know code has syntaxes , expressions having different colors. I want to see them exact on the screen without using any css or attributes.
28th Jan 2022, 7:03 AM
saurabh
saurabh - avatar
0
ROOKIE i get what you mean . Coloured can only be imported . You can’t just simply copy and paste a green color font. Even if you copy a green one . It will be displayed as black. If you want them to be green . You should import them or add them to your project files.
28th Jan 2022, 7:10 AM
hamishhr
hamishhr - avatar