I am going to install a banner in the website, which target to run of the entire website. The banner is set to position:fixed
& bottom:0px
so it will be a floating banner at the bottom.
My website structure is a common header file, with many body files which corresponding to different pages.
If I put this DIV in the common header file (the <head>
section), it will automatically achieve the result. However, if I put this DIV in the body files instead (the <body>
section), I have to open the body documents one by one and add the DIV for so many times.
I see that on the Internet, people always don't recommend to put a DIV in <head>
section. May I know the reason? Is there any harm? As I have tested by myself, it seems there's not much difference.
<head>
portion of your page, or something else? – Estivate<head>
, description saysheader file
in the beginning andsection
in the end..! – Sundaysundberg