0

Pless see my coding wher is rong. The (div tag is not work

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div class="container"> <h1>my first websit</h1> </div> </body> </head>

16th Jun 2020, 3:10 AM
Md Azizul Islam
Md Azizul Islam - avatar
7 Answers
+ 5
You have not put the ending tag </html>in the ending of the code and instead of that you have used </head>tag. Please check it. ✌👍
16th Jun 2020, 4:34 AM
äž‚ć‚ă„©ć°ș捂äčƒć„
äž‚ć‚ă„©ć°ș捂äčƒć„ - avatar
+ 5
Post your css code also
17th Jun 2020, 8:21 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Md Azizul Islam did you define container in CSS ?
16th Jun 2020, 3:15 AM
BroFar
BroFar - avatar
+ 2
U forget html end tag </html> and u should put attributes for property class in css page
16th Jun 2020, 3:43 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
The body tag nested in head tag to HTML means that there is no body to this page and nothing to display on the webpage. You need to replace the last </head> with </html> P. S. Using correct language will make it easier for people to understand and answer your question. I'm just saying.
16th Jun 2020, 4:02 AM
Anubhav Mattoo
Anubhav Mattoo - avatar
0
Without css cod div tag not work????????
17th Jun 2020, 11:48 AM
Md Azizul Islam
Md Azizul Islam - avatar
0
Md Azizul Islam what exactly are you trying to do with the div w the class container now ?
17th Jun 2020, 12:31 PM
BroFar
BroFar - avatar