Footer Tag in HTML

0
126

The <footer> tag in HTML is used to define the footer section of a web page. This section typically contains information about the author, copyright information, or links to related pages. The <footer> tag is an important part of the HTML document structure, as it provides context and information to users and search engines.

Syntax: The <footer> tag has the following syntax:

<footer>
<!– content goes here –>
</footer>

Example: Here is an example of how to use the <footer> tag:

<footer>
<p>&copy; 2023 John Doe. All rights reserved.</p>
</footer>

This will display the copyright information in the footer section of the web page.

Attributes: The <footer> tag does not have any specific attributes, but it can contain other HTML elements, such as <p>, <a>, or <ul>, to provide additional information or links.

Accessibility: The <footer> tag is an important part of the HTML document structure, as it helps users and search engines to understand the content and purpose of the web page. When using the <footer> tag, it is important to follow accessibility guidelines and provide clear and concise information about the author, copyright, or related pages.

Also Read:  table in HTML

CSS: The <footer> tag can be styled using CSS to provide additional visual effects, such as background color, font size, or padding. Here is an example of how to style the <footer> tag using CSS:

footer {
background-color: #f2f2f2;
padding: 10px;
text-align: center;
font-size: 12px;
color: #999;
}

This will display the footer section with a light gray background, centered text, and smaller font size.

Conclusion: The <footer> tag is an important part of the HTML document structure, as it provides context and information to users and search engines. When using the <footer> tag, it is important to follow accessibility guidelines and provide clear and concise information about the author, copyright, or related pages. The <footer> tag can also be styled using CSS to provide additional visual effects.

Previous articleFont Tag in HTML
Next articleForm Tag in HTML
Namaskaar, Friends main Kapil byteshastra.com ka Founder hu. Mere kai English blog bhi hai ,par mera motive yahan par easy language mein Technology se related Gyan ko aap tak pahunchane ka hai .taki aap kuch naya shikh sake. meri koshish hai ki bilkul simple tarike se aap ko nyi updates deta rahu taki aap bhi technology ke is yug mein peeche na rahe aur shikte rahe.Mujhse judne ke liye app mujhe Social Media par follow kar sakte hai.

Leave a Reply