HTML - Importance of Double Quotes in HTML Tags -


i have been working html time, question popped in mind when ever give tags

<input type = "text" name="c-id" /> <input type =text name=c-id /> 

with or without quotes there no difference, when working v-studio, ide doesn't put quotes automatically, while working dreamweaver if remember correctly put quotes automatically...

what want know @ point\s absence of quotes makes difference or creates problem, , best practice, go quoted or quotes-less...

p.s. there chance question has been asked before didn't show in search

it makes difference when attribute value contains space, linefeed, formfeed, or tab character, because attribute value end @ 1 of characters if value not wrapped in quotes.

from ide point of view, it's little more matter of preference whether add quotes or not when attribute value not contain 1 of whitespace characters.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -