Two-point summary of the difference between the HTML header label and the footer label (with the example of element differentiation)

Source: Internet
Author: User
Tags html header
This article focuses on the two-point difference between the HTML header tag and the footer tag, so let's take a look at this article about HTML header tags and footer tags.

First, let's take a look at the differences between

The

Note:

<footer> tags define the footer of a document or part of a document.

The <footer> element should contain information about the elements it contains.

Typically, this element contains the name of the creator of the document, the copyright information for the document, a link to the terms of use, contact information, and so on.

In a document, you can define multiple <footer> elements.

<article>  

Here are:

Second, we will now look at the difference between the header label and the footer label on the other hand:

Header element:

Represents a set of guided content for its most recent parent element. The parent element of the header may be a section element (Artic,section,aside, etc.) or a root element (body element). When the nearest parent element of the header element is the BODY element, the header element represents a set of introductory content for the entire HTML page. If you have a new area content in your HTML document, you can add header elements based on the needs of your content, which improves the semantics of your document.

Footer elements:

Represents the content of its most recent parent element supplement, footer's parent element may be a section element or a root element.

The content of the footer element is usually related to the content of the current region, such as the relevant links, copyright information, etc. of the content of the current area.

When the nearest parent element of the footer element is the BODY element, then the footer element represents a supplemental description of the entire HTML page.

Footer elements are typically used to mark some extended information about the contents of a page, such as appendices, terms, version information, license agreements, or other content.

Here's an example of the difference between a header label and a footer tag:

<! DOCTYPE html>

The effect is this:

Above is the whole content of this article (want to see more, Welcome to topic.alibabacloud.com study. More programming courses waiting for your arrival), have the problem can leave a message below

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.