+ 1

Quotes around the value in HTML (Single vs Double)

In HTML attribute we have name=value. Which quote is the right one to add around the *value* as per the standard rule - single or double quote?

29th Sep 2020, 7:22 PM
Janvi
Janvi - avatar
2 Respostas
+ 4
it all depends on the situation. if I'm not wrong there is no as per the standard way of doing. https://stackoverflow.com/questions/273354/are-single-quotes-allowed-in-html
29th Sep 2020, 7:25 PM
minirkk
minirkk - avatar
+ 2
Anyone you choose to use is ok. Unlike HTML pep in python might tell you to use double quotes 😄😄.
29th Sep 2020, 7:36 PM
Light
Light - avatar