在 css 中编写 input[type=text] 或 input[type="text"] 的更好方法是什么

What is the better way of writing input[type=text] or input[type="text"] in css

为我自己的项目写一些 CSS。在给form元素写样式的时候,我写了一些CSS如下:

input[type="text"], input[type="email"] {}

现在我很困惑什么是最好的写法CSS。这是最好的方法还是我应该写成:

input[type=text], input[type=email] {}

我的意思是在第三个括号中有双引号或没有任何引号。

这是最好的使用方式:

input[type="text"], input[type="email"] {}

参考:

有关详细信息,请参阅此处:

https://www.w3schools.com/css/css_attribute_selectors.asp

http://www.w3.org/TR/CSS2/selector.html#attribute-selectors