Question:

Why double quotation is use in giving attributes in html code?

by  |  earlier

0 LIKES UnLike

such as,

<a href="p1.html">Page One</a>

or

<form action="xyz.php" method="POST">

..............

etc.

 Tags:

   Report

1 ANSWERS


  1. You have to be able to tell where the value ends somehow (and you can&#039;t use a space because spaces can appear in attribute values).

    Quote marks (double or single) are a good solution (especially since they are used for similar purposes throughout computing).

    That said, you don&#039;t need to use quote marks if your value consists solely of a limited set of characters - which all of your examples do.

    http://www.w3.org/TR/html4/intro/sgmltut...

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions