[title=W3School]
{ border:5px solid blue; }
说明:对所有title="W3School"的元素设置样式
input[type="text"] { width:150px; display:block; margin-bottom:10px; background-color:yellow; font-family: Verdana, Arial; } input[type="button"] { width:120px; margin-left:35px; display:block; font-family: Verdana, Arial; }