+ 3
How to change color of text (username, password)
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 š
+ 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>
+ 2
Are you wanting to change the text red if thereās an error, or just have it a different color than other text?
+ 2
you can use the code below
input{
background-color:green;
}
background of all the input type change
+ 1
@SQrL just different than other text