Why do double and single double quotes work in this line of code?

Joined
Aug 31, 2022
Messages
8
Reaction score
0
Both of these lines of code work. One has a single double quote at the end and the other has a double double quote at the end.

HTML:
form class=""action="index.html">

HTML:
form class=""action="index.html"">

I'm confused as to why.
 
Joined
Nov 13, 2020
Messages
302
Reaction score
38
Browsers are good at figuring out and correcting coding errors, but my editor shows it as an error.
 
Joined
Sep 4, 2022
Messages
133
Reaction score
16
any web browser will swallow a code html ( with or without error ) and will display 'something' ..
sometimes display is broken because of faulty code...

It's mainly due to a flexibility and to the lot of languages and version involved.
text file / image / movie / sound /html in all version / pdf / js same thing / java plugins /flash ....
a browser can handle it all ... It's a huge machine, with the aim to display to the user the submit files.

It's a debugging tool too , that why all is display in, bugs or good code...

take a html file , random delete few blocks of code , see the result on display.
 
Joined
Mar 11, 2022
Messages
226
Reaction score
32
the first one is kind of right.

HTML is no coding language. So it's not strict at all. It's just a structure language. (A blue print if you will. Use a marker in a blue print instead of a pencil, and you are still able to recognize a house). No browser will throw back an error because there is no parsing involved. You can mess up completely with HTML, eg. <headBoDy>my inner site</body> and you're still able to read "my inner site".

The whole discussion is worthless. If somebody can't follow the few HTML rules, than this person is completely misplaced in the world of web developing. The world needs plumpers.
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top