+ 8

What do you have to do to make somthing have color on a word in HTML?

3rd Jun 2018, 4:07 PM
hi user, #Have_Hope
hi user, #Have_Hope - avatar
8 odpowiedzi
+ 10
Just add it in the first tag of the element for example a paragraph. <p color="red">Hello </p> the word Hello in the paragraph Will be red now.
3rd Jun 2018, 4:12 PM
Vincenzinho
Vincenzinho - avatar
+ 5
please make your question more clear. :)
3rd Jun 2018, 4:11 PM
Random
Random - avatar
+ 5
thank you ifl,Vincent schipper and and Paul grasser
3rd Jun 2018, 4:32 PM
hi user, #Have_Hope
hi user, #Have_Hope - avatar
3rd Jun 2018, 4:13 PM
Paul Grasser
Paul Grasser - avatar
+ 4
google is your best friend.......always google first
3rd Jun 2018, 8:28 PM
developer_genius
developer_genius - avatar
+ 4
u can add it in css with selector{ color:your colour code;}
4th Jun 2018, 3:54 PM
King Frankostein®
King Frankostein® - avatar
+ 3
You can either use an attribute in the html element around the text, or define the colour in CSS for that element.
3rd Jun 2018, 4:23 PM
ifl
ifl - avatar
+ 3
there are two ways: 1) <color=“red”>hello</color> 2 <style=“color:red”> i hope you have been helpful
4th Jun 2018, 3:38 PM
Marco Zanrosso