Which of the following is not a difference between HTML and XHTML?a)Ch...
Charset
- In HTML, the charset is specified as "text/html".
- In XHTML, the charset is specified as "application/xml+xhtml".
Tags and Attributes
- Tags and attributes are case-insensitive in HTML, meaning that capitalization does not matter.
- In XHTML, however, tags and attributes are case-sensitive, so proper casing must be used.
Special Characters
- In XHTML, special characters must be escaped using character entities to avoid parsing errors.
- HTML does not require the use of character entities for special characters.
In summary, the difference between HTML and XHTML lies in how they handle charsets, tag and attribute casing, and special characters. The charset for HTML is "text/html", whereas for XHTML it is "application/xml+xhtml". Additionally, XHTML requires proper casing for tags and attributes, while HTML is case-insensitive. Special characters must be escaped using character entities in XHTML, unlike HTML.
Which of the following is not a difference between HTML and XHTML?a)Ch...
HTML is case insensitive while XHTML is case sensitive. In XHTML, special characters can be escaped using character entites but not in HTML. Charset in HTML is “text/html” where as it is “application/xml+xhtml” for XHTML.