เลือกองค์ประกอบที่อ่าน-เขียนได้
:read-write เลือก <input> หรือ <textarea> ที่ไม่มี readonly และไม่ disabled
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
input:read-write {
background-color: blue;
color: white;
}
</style>
</head>
<body>
<form>
Subject: <input type="text" name="subject" value="Java"><br>
Student: <input type="text" name="student" readonly value="Amit"><br>
</form>
</body>
</html>