input[type="password"] { ... }
<style>
label {
display: inline-block;
margin-top: 1rem;
}
input {
display: block;
}
input[type="password"] {
color: red;
}
</style>
<label for="search">Search</label>
<input type="search" id="search" name="search" placeholder="Search ...">
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Password">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lorem</title>
<link rel="stylesheet" href="style.css"><!-- your css style file -->
</head>
<body>
<h1>Lorem</h1>
<p>Lorem ipsum dolment.</p>
</body>
</html>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.