I am making a simple signup form of a website. i need to display a text line saying "manager or customer" It only should appear when i place my mouse on the third field(type) of the form. I am new to these css things. i am sory if my question is odd but i need to do it.
<!DOctype html>
<html>
<head>
<style>
body{
background: url("2.jpg");
background-size: cover;
background-repeat: no-repeat;
}
div.transbox {
width: 400px;
height: 360px;
margin: 30px 50px;
background-color: #ffffff;
border: 2px solid;
border-radius: 25px;
opacity: 0.8;
filter: alpha(opacity=60);
}
span {
display: none;
border:1px solid #000;
height:30px;
width:290px;
margin-left:10px;
}
input:hover {
background-color: brown;
}
form:hover{
border-color: green;
}
h1 {
text-align: center;
}
</style>
</head>
<center><body>
<div class = "transbox">
<form
method = POST action = makeaccount.php>
<p>
<h1>Make Your account Here</h1>
<br> <br> USERNAME <INPUT TYPE = TEXT NAME = USERNAME>
</p>
<p> <BR>
USERPASS <INPUT TYPE="password" NAME = USERPASS>
</p>
<p> <BR>
TYPE <INPUT TYPE= TEXT NAME = TYPE>
</p>
<br> <BR>
<INPUT TYPE =submit name="submit" VALUE = "LOGIN">
</p>
</form>
</div>
</body>
</center>
<br><br><br>
<form action="home.html">
<input type="submit" style="width:100px; height:30px;" value="Back">
</form>
</html>
title
attribute to the field.<INPUT TYPE="TEXT " NAME ="TYPE" titel="manager or customer">
– MicromhoType
input field aselect
(dropdown) with two options manager and customer. However it is relatively easy to do what you want. – Fritzscheselect
seems best, you could also add a placeholder attribute – Gitlow