Share on Google+Share on Google+

Clark
Quotes around attribute values.
3 Answer(s)      6 years and 6 months ago
Posted in : HTML

Should I put quotes around attribute values?

Ads

View Answers

November 2, 2010 at 4:44 PM


Hi friends,

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.



November 2, 2010 at 4:44 PM


Hi friends,

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.



November 2, 2010 at 4:44 PM


Hi friends,

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.










Related Tutorials/Questions & Answers:
Quotes around attribute values.
Quotes around attribute values.  Should I put quotes around attribute values
retrieve multiple attribute values
; What I would like is to retrieve both the attribute values of process...XML retrieve multiple attribute values  Hello All Am a beginner. Would like some help with this. The following is part of my XML file: <
Advertisements
retrieve multiple attribute values
like is to retrieve both the attribute values of process:Output during execution...retrieve multiple attribute values  Hello All Am a beginner. Would like some help with this. The following is part of my XML file: <process
retrieve multiple attribute values
like is to retrieve both the attribute values of process:Output during execution...retrieve multiple attribute values  Hello All Am a beginner. Would like some help with this. The following is part of my XML file: <process
single quotes or double quotes
single quotes or double quotes  Would you initialize your strings with single quotes or double quotes?   Hi friends, Both are good but I... quotes which would help in speeding process. Because the data inside the single
In tag files,does attribute values accept expressions or not? If not please explain the reason
In tag files,does attribute values accept expressions or not? If not please... org.apache.jasper.JasperException: /demo1.jsp(20,5) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
Would you initialize your strings with single quotes or double quotes?
Would you initialize your strings with single quotes or double quotes?  Would you initialize your strings with single quotes or double quotes
Tattoo Ideas for Girls with Quotes
Amazing Tattoo Ideas for Girls with Quotes: Words of Wisdom Ask any creative person and he will have plenty of amazing tattoo ideas for girls with quotes. Some quotes can be sensitive, some can be romantic and some funny while some
Getting around in Agra
Getting around in Agra  Hi, I am looking for complete information on getting around in Agra? Thanks
border around frames
border around frames  How do I remove the border around frames
PHP SQL Quotes and Quoting
PHP SQL Quotes and Quoting     ... quotes in the php application with sql query. In php page, if user enters data... enters the values like: User Name: sum'an  Password: [email protected]
Travel places around delhi
Travel places around delhi  Hi, Can any one tell me the names of all the travel places around Delhi? Thanks
Php Sql Quotes and Quoting
Php Sql Quotes and Quoting This example illustrates different ways to define single and double quotes in the php application with sql query. By default, PHP..., GET, or cookies, will have all single quotes turned into backslash single
space around/between my images
space around/between my images  How do I eliminate the space around/between my images
multivalued attribute
multivalued attribute  I have a author as multivalued attribute and i have inserted values for it in database but now how to insert values... . String query4="INSERT INTO author_det(accno,isbn,author) VALUES ('"+accno
How to convert String double quotos to String double double quotes(
How to convert String double quotos to String double double quotes(  Hi How to convert String double quotos to String double double quotes("----->"") By replace? Problem is: String column is "Age is 60" now . whenver
jsf attribute
jsf attribute  What is the different between value and binding attribute of jsf
MySQL Attribute
into atttribute (attribute_name) values('collate'); Output...MySQL Attribute This example illustrates how to use the COLLATE attribute in MySQL. In this example we use the COLLATE attribute to define the attribute
how to create triangles around square
how to create triangles around square   7 6 8 5 9 4 5 6 7 8 9 10
how to create triangles around square
how to create triangles around square   7 6 8 5 9 4 5 6 7 8 9 10
Places Around Jaipur
Places Around Jaipur Tourists on a visit to Jaipur often wish to visit various interesting places around Jaipur. Not only the pink city, the places around Jaipur are tourist favorites and highly thronged by visitors from around
Which is the best way to travel around Delhi
Which is the best way to travel around Delhi  Please suggest us the best way to travel in and around Delhi. Thanks
multivalued attribute?
multivalued attribute?  I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute
multivalued attribute?
multivalued attribute?  I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute
Spring AOP Around Advice
.style1 { background-color: #FFFFCC; } Spring AOP Around Advice Around Advice performs the custom behavior before and after method invocation.... To implement around advice you need to implement MethodInterceptor of import
What is attribute oriented programming?
What is attribute oriented programming?  Hi, What is attribute oriented programming? Thanks
Language Attribute In Page Directive
Language Attribute In Page Directive  How use language attribute in page directive
JSF Rendered Attribute
JSF Rendered Attribute  i need the example for jsf with rendered attribute
Use of immediate attribute
Use of immediate attribute  What is the use of immediate attribute
value and binding attribute
value and binding attribute  What is the difference between value and binding attribute of jsf tag
value and binding attribute
value and binding attribute  What is the difference between value and binding attribute in jsf
Tutorials   
Java Spring Hibernate Struts Training How to display button as a link in vaadin? hi change navbar dropdown color in bootstrap How to remove the background color of bootstrap menu bar? How to change color of opened Bootstrap drop down toggle? Setting bootstrap container background color Help school all activities and admision process.. add one row after another date make a webpage HTMl HTMl Source code how to apply globalisation to a world wide asp.net application how to print HTML using javascript or Jquery How to recover from google panda update? How to survive google panda 4.0 update How to find if you have been hit by Panda 4.0 Design a web page using XHTML and JavaScript that does the followings: ffmpeg converting file mp4 to mov JavaScript How to Disable Catch-all Emails on CPanel z-index always on top What is Web hosting Database and HTML web development trainee Uploading files Image Gallery Image Gallery dropdown How to redirect from a HTML page? Easiest method for expiring the css and js headers HTML WITH AJAX VB 6 Read Web Page Header string palindrom using vbscript? html button How to add mod_deflate to apache without recompiling How to use place hoder in IE(version : 8) Html Software Question div align left css Fetching data from excel file on other website and display in interactive graph form where do I find the fix for tree view catalog not expanding and collapsing correctly for roseindia shopping cart 1.1 pass to next page to enter into a particular page only if the username,password and listbox value mtches hi Cricket stadium ticket booking design Need some help creating an order form. HTML div tag HTML div tag

Ads

 
Advertisement null

Ads