+ 3

How to change color of text (username, password)

https://code.sololearn.com/W42lDUs9h1WZ/?ref=app

20th Feb 2018, 4:22 AM
đŸșMichaelđŸș
đŸșMichaelđŸș - avatar
5 Answers
+ 8
You can, as you are doing now, use CSS. However, please be more specific and provide more information with what you want help with so we can help you 😊
20th Feb 2018, 4:51 AM
Learnsolo
+ 4
<!-- Copy and paste in the code editor and check the output, sorry I'm new to the coding world, ask a more precise question so that we can help. good luck guys!! --> <html> <head> <title>My page</title> </head> <body bgcolor="#000099"> <h1> <font color="#FFFFFF"> Big Headline</font> </h1> <h2 color="black">Smaller Headline</h2> <p style="color:#00ff00">Hi there, my name is Amine, and this is an inline styling using CSS, you'll learn more about it when you do the CSS course on Sololearn</p> <form> <label for:"username" style="color:red">Username: </label><input type="text" name="username" id="username"></input> </form> </body> </html>
21st Feb 2018, 12:25 PM
Amine Makhlouf
Amine Makhlouf - avatar
+ 2
Are you wanting to change the text red if there’s an error, or just have it a different color than other text?
20th Feb 2018, 9:20 AM
SQrL
SQrL - avatar
+ 2
you can use the code below input{ background-color:green; } background of all the input type change
20th Feb 2018, 1:08 PM
Qutaba Qais Mahmood
Qutaba Qais  Mahmood - avatar
+ 1
@SQrL just different than other text
20th Feb 2018, 11:54 AM
đŸșMichaelđŸș
đŸșMichaelđŸș - avatar