Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Should I put quotes around attribute values or not?

Answer Posted / guest

It depends. It is never wrong to use them, but you don't
have to if the attribute value consists only of letters,
digits, periods and/or hyphens. This is explained in the
HTML 2.0 specs.

Oh, and keep in mind that if you use double quotes, you
should escape any quotes inside the value with """ so you
don't accidentally terminate the value prematurely.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different ways to use different colors for different links or same link?

762


In html5, onblur and onfocus are?

1011


What is text tag in html?

717


Why is innerhtml used?

807


What Difference between FontSize and Font Size in DHTML?

894


What is transitional xhtml?

786


What is the use of output tag in html5?

787


What are the new features provided in HTML5?

795


Explain what is the use of localstorage in html5?

1009


What is the correct definition of an html element?

730


What is the difference between a tag and an element in html?

784


What is a label element?

845


What is meta information in html?

770


How do you make comments without text being picked up by the browser?

908


What is a web worker in html5? Explain

796