liveBook · Manning

Footer section

As explained in Build a Website with ChatGPT

The footer element is an HTML element representing closing or supplemental content for a page or section.

A footer is the closing area at the bottom of a web page. It usually stretches across the page, while its height depends on what it contains. Common contents include a copyright notice, social media links, an address, or contact information. section 4.2.2 section 12.2.1

A simple footer

<footer> <p>Copyright 2023 Code & Prose</p> </footer> The opening and closing <footer> tags surround the footer content. The <p> tags mark the copyright notice as a paragraph. section 4.2.2 section 12.2.1

To have ChatGPT create one, specify the contents in your prompt: “Add a footer element with the word Copyright, the current year, and the site name.” A book club page could also place links to its social media accounts there. If those links are in the footer, avoid repeating them in the header. section 4.2.2 section 4.1

<footer>
    <p>Copyright 2023 Code & Prose</p>
    <p>
        <a href="https://www.facebook.com/CodeAndProse">
        <i class="fab fa-facebook-square"></i></a>
        <a href="https://www.instagram.com/codeandprose">
        <i class="fab fa-instagram"></i></a>
        <a href="https://twitter.com/codenprose">
        <i class="fab fa-twitter-square"></i></a>
    </p>
</footer>

This longer HTML example places social media links alongside a copyright notice inside one footer. section 12.2.1

A different background color can set the footer apart from the rest of the page. Once the generated HTML is saved, check that the footer contains the notice and links you requested; use the generated CSS file for its styling. section 4.2.2 section 4.2.6

How Build a Website with ChatGPT covers it

How deep it goes
Defines placement and contents, demonstrates footer tags, and gives a prompt instruction; stops short of detailed footer CSS.
Examples
Shows a copyright-only footer and a book club footer with copyright and social media links.
What it assumes
Assumes no coding experience and introduces the opening and closing footer tags through a small HTML example.
What you can do after
Apply it via ChatGPT by requesting footer contents, then checking the generated HTML and CSS files.
How it connects
Connects the footer to the header, main content, social media links, paragraphs, and CSS styling.

Also explained in

Compare how 3 books explain footer section →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.