HTML5 | <footer> Tag

The <footer> tag in HTML is used to define a footer of HTML document. This section contains the footer information (author information, copyright information, carriers etc). The footer tag are used within body tag. The <footer> tag is new in the HTML5. The footer elements require a start tag as well as an end tag.

Syntax :

<footer> ... </footer>

A footer element typically contain authorship information, copyright information, contact information, sitemap, back to top links, related documents etc

Below examples illustrate the <footer> Tag in HTML elements:

Example:



filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>HTML footer Tag</title>
        <style>
            a {
                font-size:25px;
                text-decoration:none;
            }
            p {
                font-size:25px;
            }
        </style>
    </head>
    <body>
        <footer>
            <nav>
                <p>
                    <a href="https://www.geeksforgeeks.org/about/">About Us</a> |
                    <a href="https://www.geeksforgeeks.org/privacy-policy/">Privacy Policy</a> |
                    <a href="https://www.geeksforgeeks.org/careers/">Careers</a
                </p>
            </nav>
            <p>@geeksforgeeks, Some rights reserved</p>
        </footer>
    </body>
</html>                    

chevron_right


Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>footer tag</title>
        <style>
            .column {
                float: left;
                width: 27%;
               height: 300px; 
            }
            p {
                font-size:20px;
                font-weight:bold;
            }
        </style>
    </head>
    <body>
        <footer>
            <div class="column">
                <p>Company</p>
                <ul style="list-style-type:disc">
                    <li>About Us</li>
                    <li>Careers</li>
                    <li>Privacy Policy</li>
                    <li>Contact Us</li>
                </ul>
            </div>
                
            <div class="column">
                <p>Learn</p>
                <ul>
                    <li>Algorithms</li>
                    <li>Data Structures</li>
                    <li>Languages</li>
                    <li>CS Subjects</li>
                    <li>Video Tutorials</li>
                </ul>
            </div>
                 
            <div class="column">
                <p>Practice</p>
                <ul>
                    <li>Company-wise</li>
                    <li>Topic-wise</li>
                    <li>Contests</li>
                    <li>Subjective Questions</li>
                </ul>
            </div>
        </footer>
    </body>
</html>

chevron_right


Output:

Browser Support: The footer tag is new in HTML5 and it supports in the browser which are listed below:

  • Apple Safari 5.1+
  • Google Chrome 6+
  • Firefox 4+
  • Opera 11.1+
  • Internet Explorer 9+


My Personal Notes arrow_drop_up

I am a technology enthusiast who has a keen interest in programming I am pursuing Engineering in Computer Science from GEU, Dehradun I like to unwind by watching movies and English sitcomsI have a keen interest in music

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.