Home > Web Front-end > HTML Tutorial > Regarding the special writing method of html control, I am a bit confused. Please give me some advice. _html/css_WEB-ITnose

Regarding the special writing method of html control, I am a bit confused. Please give me some advice. _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:10:17
Original
1107 people have browsed it

is written as follows:






This readOnly="readonly" and this disabled="disabled" writing method, the standard writing method should be What, why is it okay to write like this?


Reply to discussion (solution)

Not much difference. . One is read-only and the other is unavailable

There is not much difference. . One is read-only and the other is unavailable

I know what these two mean. I mean readOnly="readonly" is the standard way of writing it?
If it is an attribute, it is usually attribute name = status. So how did he explain this?

readonly cannot be modified, but can be copied.
And disabled directly disables the control.

readonly cannot be modified, but can be copied.
And disabled directly disables the control.

I’m depressed. It’s not that I don’t know the role of these two attributes. I just want to ask if this way of writing readOnly="readonly" is standard. I remember it’s not usually attribute name = status, or a certain one. Attribute = true or other, but these two attributes must be readOnly="readonly"
instead of readOnly=ture or flase.

Not much difference. . One is read-only and the other is unavailable
I’m depressed. It’s not that I don’t know the functions of these two attributes. I just want to ask if this way of writing readOnly="readonly" is standard. I remember it’s not usually the attribute name = status, or a certain attribute = true or something else, but these two attributes must be readOnly="readonly"
instead of readOnly=ture or flase.

http://www.w3schools.com/tags/att_input_readonly.asp
http://www.w3schools.com/tags/att_input_disabled.asp
Your writing style is standard

If you don’t know, check w3schools

I learned 2 more attributes~ Haha

Just know how to write, at the end of the day, writing this way is standard
Follow more html div Css can be found here http://blog.sina.com.cn/u/2760399482

http://blog.sina.com.cn/u/2760399482

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template