+ 1

This is a question ! An error in coding !

I have tried the codes given here in Atom code editor from git. When i opened the .html file in firefox , attributes are not working. For Eg: type="password"... when i inspected, in the inspect window of firefox it is shown as, type=" "password" "...... when i removed " (quotes) from my codes , it is working flawlessly.......if someone have this problem, just keep this in mind.....!! Why this is happening ?

26th Sep 2020, 7:26 AM
VISHNU S KUMAR
VISHNU S KUMAR - avatar
7 Answers
+ 1
Different browsers *may suffort different syntax. type="password" or type = password but prefered way is type="password". Both works fines. And In CSS, it will be like type:password;
26th Sep 2020, 3:07 PM
Jayakrishna 🇮🇳
+ 1
Any ways.. You already know the correct answer,.. What's the purpose making question...VISHNU S KUMAR But type = "password" is a proper way of writing.. type = " " password "" is wrong here, type = " " and unnecessary text after as password, " "
26th Sep 2020, 1:10 PM
Jayakrishna 🇮🇳
0
This section is for question and answer related to programming only. If not a question, then it is recommended to use personal feed post for those purpuses..tq
26th Sep 2020, 12:12 PM
Jayakrishna 🇮🇳
0
Jayakrishna🇮🇳 Now it is a question !!!
26th Sep 2020, 12:37 PM
VISHNU S KUMAR
VISHNU S KUMAR - avatar
0
Jayakrishna🇮🇳 i said that when i saw two quotes in the inspect area, i tried removing the extra quotes.... But still i dont know why the browser interpreted my code like this.... This is what my question is... I got and mentioned the solution , but i don't know the reason !!
26th Sep 2020, 1:17 PM
VISHNU S KUMAR
VISHNU S KUMAR - avatar
0
OK. That may be typo mistake, double quotes typed twise.. The correct way is the one I posted above..
26th Sep 2020, 2:03 PM
Jayakrishna 🇮🇳
0
if i try like u said or given in this course, firefox shows 2 quotes... if i wont give any quotes in the code, then it will work correctly..... 😓
26th Sep 2020, 2:08 PM
VISHNU S KUMAR
VISHNU S KUMAR - avatar