+ 1
Why my code doesn't work?
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body style="background:green"> <style> #containar{ width:50%; hieght:50%; background:red; position:absolute; } </style><div id=container></div> </body> </html>
13 Antworten
+ 5
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body style="background:green">
<style>
#container{
width:50%;
hieght:50%;
background:red;
position:absolute;
}
</style><div id="container">this is added to see effect Mr. Unknown </div>
</body>
</html>
+ 7
You spelled containar instead of container
+ 3
Your div tag was empty.
+ 2
When i put it between head tag another head tag appeare.automatically in code by cpu.
+ 2
O😲.
Jayakrishna🇮🇳 thank you ,it worked .
+ 2
And thanks to all .............🙏🙏🙏🙏
+ 2
Gggg
+ 1
the <style> tag should not be between <body> it should be in the between <head> tag
+ 1
Not worked
+ 1
Don't spell wrong and "":.,etc😊😊
0
Till not worked 😟
0
Mr. Unknown Can you add more details what not working?
Note : you can't see any working there because you don't have any value in container to see changes...
Add something to div, you can see..
0
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body style="background:green">
<style>
#container{
width:50%;
hieght:50%;
background:red;
position:absolute;
}
</style><div id="container">thisMr. Unknown </div>
</body>
</html>