jerkwg Posted November 9, 2017 Report Share Posted November 9, 2017 (edited) Can the div tag be the parent of <p> in the code shown below? <body> <div id=#navigation> <p> hi </p> </div> <body> Edited November 9, 2017 by jerkwg Quote Link to comment Share on other sites More sharing options...
administrator Posted November 9, 2017 Report Share Posted November 9, 2017 Yep. You are good. Stef Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 9, 2017 Report Share Posted November 9, 2017 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> Quote Link to comment Share on other sites More sharing options...
administrator Posted November 9, 2017 Report Share Posted November 9, 2017 Good catch! Wasn't looking close enough ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.