Skip to content Skip to sidebar Skip to footer

Different Delimiters To Seperate Attributes In Html Tags

What are different delimiters used to separate HTML attributes when spaces,double quotes,single quote are not allowed

Solution 1:

By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39). [w3.org]

HTML attributes follow the SGML definition of attributes, therefore you cannot have a HTML attribute without these characters. If " and ' are not allowed then you cannot write valid HTML.

Post a Comment for "Different Delimiters To Seperate Attributes In Html Tags"