Computer Science, asked by snehasakshi20, 5 months ago

What are the rules to write attributes in HTML?​

Answers

Answered by aditipandey99
1

Answer:

the rules to write attributes in HTML are

1 element names are not case sensitive.eg.

<BR> is same as<br>.

2. attribute names are also not case sensitive.eg_ <HR SIZE=5> is same as <HR size=5>.

3.element names can't contain space.

4. element can be nested.eg _ <b> <u> text <\u> </b> (correct order)

<b> <u> text <\b> </u> (incorrect order).

Similar questions