Jump to content
Killersites Community
jerkwg

Parent and Child?

Recommended Posts

Can the div tag be the parent of <p> in the code shown below?

<body>

    <div id=#navigation>

           <p> hi </p>

   </div>

<body>

Edited by jerkwg

Share this post


Link to post
Share on other sites

While the parent thing is no problem, you do have some errors in your code:

 

<body>

    <div id=#navigation>  This should be: <div id="navigation">

           <p> hi </p>

   </div>

<body>  This should be </body>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×