目錄
HTML 中的頁腳標籤範例
範例#5
Footer Example
Footer Object Example
Uday Wire Industries
About US
Our Specialty
Share on
About US
Latest Technology trends in market
Robotic Process Automation
Machine Learing
Artificial Intelligence
BlockChain
All rights reserved @Techpanda 2019
結論
首頁 web前端 html教學 HTML 中的頁尾標記

HTML 中的頁尾標記

Sep 04, 2024 pm 04:23 PM
html html5 HTML Tutorial HTML Properties HTML tags

頁腳代表與作者相關的資料、包含版權資訊的資料或與該資料相關的一些連結。 中包含的作者資訊元素。這種類型的標籤稱為

。 HTML 中的標籤。 HTML 中的頁尾標籤在
標籤內定義。

可以在

、、

的語法標籤:

<footer>
<p>Some text</p>
</footer>
登入後複製
  • 標籤可以在內表示用
    括起來的標籤 –
    標籤內有一些文本,我們將在頁腳部分顯示這些文本。
  • ;是 HTML5 網頁或其他 HTML 文件中最有用的元素之一。它被視為單一區塊的一部分。
  • HTML ;沒有任何特殊類型的屬性列表,但它支援所有全域屬性,如accesskey、data、class、contenteditable、dir、draggable、hidden、id、lang、dropzone、拼字檢查、style、 title、translate 等作為事件屬性,如onafterprint、onbeforeprint、onbeforeunload、onerror、onload、onhashchange、onmessage、onoffline、onpopstate、onstorage、onresize 等

HTML 中的頁腳標籤範例

有多種方法可以將頁腳包含到 HTML 文件中;讓我們一一看看其中的一些:

範例#1

只需包含 在網路文件正文中新增標籤,例如。

HTML 程式碼:

<h2 id="Footer-Example"> 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> HTML 中的頁尾標記 US </u> </a>
</p></footer>
登入後複製

輸出:

HTML 中的頁尾標記

範例#2

Footer 物件用來表示最具修復性的 HTML 元素,即

元素。可以透過 getElementById(); 存取。此範例說明如何透過物件存取頁腳以及如何建立新物件來存取頁尾資料。

HTML 程式碼:

<h3 id="Footer-Object-Example">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>
登入後複製

輸出:

HTML 中的頁尾標記

範例 #3

以下是包含版權資訊的資料範例。

HTML 程式碼:


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


<h1 id="Uday-Wire-Industries">Uday Wire Industries</h1>
<h4 id="u-About-US-u"> <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 id="Our-Specialty">Our Specialty</h4>
登入後複製
  • 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

輸出:

HTML 中的頁尾標記

範例#4

以下是固定頁腳的範例。

HTML 程式碼:



<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="/static/imghw/default1.png" data-src="img.jpg" class="lazy"   style="max-width:90%" alt="HTML 中的頁尾標記" >
<div class="footerdemo">
<h4 id="About-US">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>

登入後複製

輸出:

HTML 中的頁尾標記

範例#5

在下面的範例中,頁腳用於顯示版權資訊。

HTML 程式碼:

<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 id="Latest-Technology-trends-in-market">Latest Technology trends in market </h1>
</div>
<div class="row">
<div class="part">
<h2 id="Robotic-Process-Automation">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 id="Machine-Learing">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 id="Artificial-Intelligence">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 id="BlockChain">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 id="All-rights-reserved-Techpanda">All rights reserved @Techpanda 2019</h4>
</div>
登入後複製

輸出:

HTML 中的頁尾標記

結論

因此,我們可以克服頁腳用於顯示作者資訊、版權資訊、一些重要資訊和其他數據的問題。它始終必須放在 body 部分內。在文件中可以使用多個頁尾。

以上是HTML 中的頁尾標記的詳細內容。更多資訊請關注PHP中文網其他相關文章!

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

HTML 中的表格邊框 HTML 中的表格邊框 Sep 04, 2024 pm 04:49 PM

HTML 表格邊框指南。在這裡,我們以 HTML 中的表格邊框為例,討論定義表格邊框的多種方法。

HTML 中的巢狀表 HTML 中的巢狀表 Sep 04, 2024 pm 04:49 PM

這是 HTML 中巢狀表的指南。這裡我們討論如何在表中建立表格以及對應的範例。

HTML 左邊距 HTML 左邊距 Sep 04, 2024 pm 04:48 PM

HTML 左邊距指南。在這裡,我們討論 HTML margin-left 的簡要概述及其範例及其程式碼實作。

HTML 表格佈局 HTML 表格佈局 Sep 04, 2024 pm 04:54 PM

HTML 表格佈局指南。在這裡,我們詳細討論 HTML 表格佈局的值以及範例和輸出。

HTML 輸入佔位符 HTML 輸入佔位符 Sep 04, 2024 pm 04:54 PM

HTML 輸入佔位符指南。在這裡,我們討論 HTML 輸入佔位符的範例以及程式碼和輸出。

HTML 有序列表 HTML 有序列表 Sep 04, 2024 pm 04:43 PM

HTML 有序列表指南。在這裡我們也分別討論了 HTML 有序列表和類型的介紹以及它們的範例

HTML onclick 按鈕 HTML onclick 按鈕 Sep 04, 2024 pm 04:49 PM

HTML onclick 按鈕指南。這裡我們分別討論它們的介紹、工作原理、範例以及各個事件中的onclick事件。

在 HTML 中移動文字 在 HTML 中移動文字 Sep 04, 2024 pm 04:45 PM

HTML 中的文字移動指南。在這裡我們討論一下marquee標籤如何使用語法和實作範例。

See all articles