Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
hassan

Why Content Div Is Split Between Header And Footer

Recommended Posts

Hi

 

I wanted to ask why in chapter three the content div is split between the header and footer. Why do we not simply write that div in the content chunk of the php page?

 

Thanks in advance 

Share this post


Link to post
Share on other sites

I'm not sure if you've gotten to the page which explains ho to use "includes" but I think when you do you'll understand why the footer is separate. You will use "includes" a lot in your programming for information that appears on multiple pages. This way you don't have to edit many pages if you want to change it.

 

Larry's books often answer your questions -within a few pages- after they make you think of them. It's sometimes good to hang on to them for a while and you'll soon see that the mystery is resolved. That's part of what makes learning exciting and what makes for good teaching.

 

Glad you've come back to this subject and to hear you're excited about it.

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...