End Content
The end content section shows that there is an end of content on a particular page and helps to keep the end of the page of the website looking nice and clean.
Let's look at the code that is in this file. Open up HomeSite and then open the file "endcontent.inc.php". This file is located in the "includes" folder of the website. Here is what the code looks like:
The first line says "<div class="endline">". This line tells the cascading style sheet to follow the rules of this section. We will go over this in detail in the CSS Section.
The next line is a note "<!--- Start Google Search Box --->". TThis note announces the start of the code for a search box by Google. Everything between the "<!--- Start Google Search Box --->" and the <!--- End Google Search Box --->" is the code from Google to allow visitor to do a quick web search. It is included to show what it looks like. It would be great if this code was left here, but it's your site. You can get your own from Google, or delete it all together by deleting all the lines of code between the start and stop notes.
After the Google Search Box, is a <br> to add some space between the search box and the "<hr>".
The line "<hr width="80%" size="1">" is exactly like a generic <hr>, except this one has a few more features. The "width="80%"" tells the computer to only make the width of the line 80% of this section of the webpage. The "size="1"" tells the computer to display the line at only one pixel high.
Then there is another "<br>" to give some spacing.
TThe next line is important. This line allows visitors a contact option if they have any issues. The line starts with some simple text. It says "Any problems with this site, please feel free to contact the". Then there is a bit of code that says, "<a href="mailto:email@yoursite.com">". This is very similar to other hyperlinks we have looked at before, except, the instructions on where to link to is a bit different. The "mailto:" tells the computer that this link is an e-mail address instead of a web address. The e-mail address you want to link to is listed right after the "mailto:". Since computer spiders look at these addressees, we don't recommend using your personal e-mail address here. This should already have been changed to the e-mail address you want when we did the find/replace earlier. If not, go ahead and change it now. The text right after the start of the hyperlink "webmaster" tells the computer what to show the link as. When a visitor clicks on the word "webmaster", their e-mail program will open up and allow them to send an e-mail as they normally would. And finally, the "</a>" stops the hyperlinking.
The last two lines are very simple. The "</div>" stops the "endline" rules from the cascading style sheet so the computer can go onto the next set of rules. And also a "<br>" for some spacing to keep everything looking neat and tidy.
And that's it. Let's go on and look at the next section of your website.


