Home > Web Front-end > HTML Tutorial > Footer Tag in HTML

Footer Tag in HTML

王林
Release: 2024-09-04 16:23:31
Original
1223 people have browsed it

Footer represents data related to the author, data that contains copyright information or some links related to that data. This author information enclosed within

element. This type of tag known as
tag in HTML. Footer Tag in HTML is defined within
tag.

One can use footer element within

, ,

Syntax for

Tag:

<footer>
<p>Some text</p>
</footer>
Copy after login
  • tag can be represented within tag enclosed with
    tag having some text within it which we are going to show within footer section.
  • is one of the most useful elements within the HTML5 webpage or for another HTML document. It is considered as part of individual blocks.
  • HTML
    don’t have any special kind of attributes list, but it supports all global attributes like accesskey, data, class, contenteditable, dir, draggable, hidden, id, lang, dropzone, spellcheck, style, title, translate, etc. as well as event attributes like onafterprint, onbeforeprint, onbeforeunload, onerror, onload, onhashchange, onmessage, onoffline, onpopstate, onstorage, onresize, etc.

Examples of Footer Tag in HTML

There are multiple ways to include footer into the HTML documents; let’s see some of them one by one:

Example #1

Simply include

tag inside the body of the web document like.

HTML Code:

<h2> Footer Example </h2>
<footer>
<p>Published by EDUCBA</p>
<p>Contact us: <a href="%E2%80%9Dmailto:%5Bemail%C2%A0protected%5D%E2%80%9D"> <u> Footer Tag in HTML US </u> </a>
</p></footer>
Copy after login

Output:

Footer Tag in HTML

Example #2

Footer object is used to represent most reparative HTML element i.e

element. It can be access through  getElementById();.This example illustrates how to access the footer through the object as well as how to create a new object to access footer data.

HTML Code:

<h3>Footer Object Example </h3>
<footer id="footerDemo">
<p>all rights reserved @ EDUCBA </p>
</footer>
<p>Press button to check footer section.</p>
<button onclick=" footerFunction()">Click Me</button>
<p id="footerobject"></p>
<script>
function footerFunction() {
var f = document.getElementById("footerDemo").innerHTML;
document.getElementById(" footerobject ").innerHTML = f;
}
</script>
Copy after login

Output:

Footer Tag in HTML

Example #3

Following is an example of the data that contains copyright information.

HTML Code:


<style type="text/css">
#shareicons img {
width: 50px;
padding: 10px;
display: inline;
}
</style>


<h1>Uday Wire Industries</h1>
<h4> <u> About US </u> </h4>
<p>We provide all types of HB wires in different size 5.5 mm , 6.5 mm , 7 mm , 8 mm , 12mm.All those wires drawn from the machines which works on new latest technology for producing best quality of HB wires. Those are kinds of raw material which is going to be useful for various wire industries , Cement pipe making industries ,for nails manufacturing industries and many other industries in the market. Nails also in various sizes 1/10' , 1.5/10' , 2/10' , 2.5/10' , 3/10' 4/10 etc. We are dealing with wire rods and cut rods also. Binding wires also with various different types.</p> <h4>Our Specialty</h4>
Copy after login
  • Good quality
  • Smooth Wire rods
  • perfect coil bundle
  •   No cut rods in coil
  • coils in small size packaging bundle

Please send us Your requirements to us .So we can give best to You!
Thank You !

Share on



Uday wire Industries
Shed No. 5 , 6, 7 ,8
Industrial  Area, MIDC Sector
Pune.



All rights reserved @Uday wire Industries

Output:

Footer Tag in HTML

Example #4

Following is an example of a Fixed Footer.

HTML Code: 



<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.footerdemo {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color:blanchedalmond;
color: black;
text-align: left;
}
</style>


<img  src="img.jpg"   style="max-width:90%" alt="Footer Tag in HTML" >
<div class="footerdemo">
<h4>About US</h4>
<ul>
<li> <a href="#"> Home </a> </li>
<li> <a href="#"> About </a> </li>
<li> <a href="#"> Career </a> </li>
<li> <a href="#"> Contact US </a> </li>
<li> <a href="#"> Visit Here </a> </li>
</ul>
</div>

Copy after login

Output:

Footer Tag in HTML

Example #5

In the example below, the footer is used to show copyrights things.

HTML Code:

<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
.header {
background-color:aliceblue;
padding: 10px;
text-align: center;
}
.part {
float: left;
width: 25%;
padding: 10px;
}
.footer{
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color:darkgoldenrod;
}
</style>


<div class="header">
<h1>Latest Technology trends in market </h1>
</div>
<div class="row">
<div class="part">
<h2>Robotic Process Automation</h2>
<p>RPA is latest trending technology which is automating jobs. It deals with the software to automate business methodologies like processingtransactions, replying to the emails, iterpreting with data etc.</p>
</div>
<div class="part">
<h2>Machine Learing</h2>
<p>Machine learing is the process considered as subset of Artificial Intelligence.Its based on neural networks, deep learing and natural language processing (NLP)</p>
</div>
<div class="part">
<h2>Artificial Intelligence</h2>
<p>One of the fastest growing technology is AI, which is based on system which built  human intelligence to perform tasks. It helps to complete tasks more perfectly and in short time than humans.  </p>
</div>
<div class="part">
<h2>BlockChain</h2>
<p>blockchain is trendy technology in upcoming days for maintaining transactions with encrypted and decentralized nature. Here you are going to make chain of data, so there is no need to trust on third party.</p>
</div>
</div> <br>
<div class="footer">
<h4>All rights reserved @Techpanda 2019</h4>
</div>
Copy after login

Output:

Footer Tag in HTML

Conclusion

So, we can overcome that footer is used to show authors information, copyrights things, some important things, and other data. It always has to put within the body section. One can use more than one footer within documents.

The above is the detailed content of Footer Tag in HTML. For more information, please follow other related articles on the PHP Chinese website!

source:php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template