Cover Image for How to make a Footer in Html
61 views

How to make a Footer in Html

To create a footer in HTML, you can use the <footer> tag along with appropriate HTML and CSS styling. Here’s an example of how you can create a basic footer:

HTML
<!DOCTYPE html>
<html>
  <head>
    <style>
      /* CSS styles for the footer */
      footer {
        background-color: #f2f2f2;
        padding: 20px;
        text-align: center;
        font-size: 14px;
      }
    </style>
  </head>
  <body>
    <!-- Your HTML content goes here -->
  
    <footer>
      <p>This is the footer text.</p>
    </footer>
  </body>
</html>

In the example above, we use the <footer> tag to define the footer section. Inside the <footer> tag, you can include any desired content such as text, links, images, or other HTML elements.

The CSS styles defined within the <style> tag customize the appearance of the footer. You can adjust the background color, padding, text alignment, font size, and other properties according to your design preferences.

Feel free to add more content or apply additional styling to the footer as needed.

YOU MAY ALSO LIKE...

The Tech Thunder

The Tech Thunder

The Tech Thunder


COMMENTS