Write an example that shows every attribute must have a value in XHTML?

DWQA QuestionsCategory: Web Design HTMLWrite an example that shows every attribute must have a value in XHTML?
Editor Staff asked 3 weeks ago

Write an example that shows every attribute must have a value in XHTML?

1 Answers
Editor Staff answered 3 weeks ago

Let’s take an example to show you in XHTML every attribute must have a value.
Example in HTML:

 

  1. <ol compact> <input type=“radio” name=“title” value=“decline” checked>decline</input>  

Same example in XHTML:

 

  1. <ol compact=“compact” > <input type=“radio” name=“title” value=“decline” checked=“checked”>