+ 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 ?
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;
+ 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, " "
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
0
Jayakrishna🇮🇳 Now it is a question !!!
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 !!
0
OK. That may be typo mistake, double quotes typed twise..
The correct way is the one I posted above..
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.....
😓