CSS ::placeholder Selector
CSS ::placeholder Selector
Example
HTML Online Editor
<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
::-webkit-input-placeholder { /* Edge */
color: blue;
}
:-ms-input-placeholder { /* Internet Explorer */
color: blue;
}
::placeholder {
color: blue;
}
</style>
</head>
<body>
<h1>CSS ::placeholder Selector</h1>
<input type="text" placeholder="Your Name">
</body>
</html>
Syntax
Using CSS
::placeholder {
color: red;
}
Reminder
Hi Developers, we almost covered 98.7% of CSS Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in CSS.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.