Semantics

HTML Footer

Creating Footer Sections

HTML footer contains closing content like copyright or contact info.

The <footer> element in HTML is used to define the footer of a document or section. It typically contains information like copyright details, contact information, or links to related content. This element helps in creating a consistent look and feel across web pages.

Let's look at a simple example of how to use the <footer> element in your HTML document.

The <footer> element can be used for various purposes, including:

  • Author or copyright information
  • Contact details
  • Links to terms of service or privacy policies
  • Site map or related links
  • Social media links

To enhance the appearance of your footer, you can apply CSS styles. Here's an example:

Best Practices for Using Footers

When using the <footer> element, consider the following best practices:

  • Keep content concise and relevant.
  • Ensure links are accessible and functional.
  • Use a consistent style across different pages for a cohesive look.
  • Always include copyright information to protect your content.

Accessibility Considerations

To ensure your footer is accessible, use semantic HTML and provide descriptive text for links. Screen readers should be able to interpret the content easily.

Previous
Header
Next
Nav