Html – the best way to put the logo into the footer of every website I make


What is the best method to put my company logo with a link at the end of the footer in every website which I make (if the client allows me)?

First, I would host the logo image on my site. What would then be the best method in xhtml and css for me to put in my logo?

Best Solution

Include a javascript from your server to add this. That way, you can modify it in the future if you need to without having to touch your client files. Of course, this won't get you an notoriety with people browsing while having javascript disabled.

    <script type="text/javascript" href=""></script>

siteby.js would exist on your server. It would have something similar to the following:

// Create a link
var link = document.createElement("a");
link.setAttribute("href", "");
link.innerHTML = "Site by Jonathan Sampson";

// Add it to the body

Just be sure that whatever you place in this script is efficient, and quick, and that your server delivers it with haste.