国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

前端學(xué)習(xí)——HTML5

這篇具有很好參考價值的文章主要介紹了前端學(xué)習(xí)——HTML5。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

新增語義化標(biāo)簽

新增布局標(biāo)簽

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 頭部 -->
    <header>
        <h1>尚品匯</h1>
    </header>
    <hr>
    <!-- 主導(dǎo)航 -->
    <nav>
        <a href="#">首頁</a>
        <a href="#">訂單</a>
        <a href="#">購物車</a>
        <a href="#">我的</a>
    </nav>
    <!-- 主要內(nèi)容 -->
    <div class="page-content">
        <!-- 側(cè)邊欄導(dǎo)航 -->
        <aside style="float:right;">
            <nav>
                <ul>
                    <li><a href="#">秒殺專區(qū)</a></li>
                    <li><a href="#">會員專區(qū)</a></li>
                    <li><a href="#">品牌專區(qū)</a></li>
                    <li><a href="#">優(yōu)惠專區(qū)</a></li>
                </ul>
            </nav>
        </aside>
        <!-- 文章 -->
        <article>
            <h2>《如何一夜暴富》</h2>
            <section>
                <h3>第一種方式:白日夢</h3>
                <p>你應(yīng)該......</p>
            </section>
            <section>
                <h3>第二種方式:白日夢</h3>
                <p>你應(yīng)該......</p>
            </section>
            <section>
                <h3>第三種方式:白日夢</h3>
                <p>你應(yīng)該......</p>
            </section>
        </article>
    </div>
    <hr>
    <footer>
        <nav>
            <a href="#">友情鏈接</a>
            <a href="#">友情鏈接</a>
            <a href="#">友情鏈接</a>
            <a href="#">友情鏈接</a>
        </nav>
    </footer>
</body>
</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

新增狀態(tài)標(biāo)簽

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        progress {
            width: 50px;
        }
    </style>
</head>
<body>
    <span>手機電量:</span>
    <meter max="100" min="0" value="5" low="10" high="20" optimum="90"></meter>
    <br>
    <span>當(dāng)前進度:</span>
    <progress max="100" value="80"></progress>
</body>
</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

新增列表標(biāo)簽

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="#">
        <input type="text" list="mydata">
        <button>搜索</button>
    </form>
    <datalist id="mydata">
        <option value="周杰倫">周杰倫</option>
        <option value="周冬雨">周冬雨</option>
        <option value="馬冬梅">馬冬梅</option>
        <option value="溫兆倫">溫兆倫</option>
    </datalist>
    <details>
        <summary>如何一夜暴富?</summary>
        <p>好好學(xué)習(xí),天天上線</p>
    </details>
</body>
</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5
前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

新增文本標(biāo)簽

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ruby>
        <span>魑魅魍魎</span>
        <rt>chī mèi wǎng liǎng</rt>
    </ruby>
    <hr>
    <ruby>
        <span></span>
        <rt>chī</rt>
    </ruby>
    <hr>
    <p>Lorem ipsum <mark>dolor</mark> sit amet consectetur adipisicing elit. Tenetur impedit quasi, minima ullam sequi quaerat veniam fugiat distinctio. Iure temporibus laborum earum tenetur suscipit odit ad excepturi ut eaque ab!</p>
</body>
</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

表單相關(guān)新增

新增表單控件屬性

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="">
        賬號:<input type="text" name="account" placeholder="請輸入賬號" required autofocus autocomplete="on" pattern="\w{6}">
        <br>
        密碼:<input type="password" name="pwd" placeholder="請輸入密碼" required pattern="\w{6}">
        <br>
        性別:
        <input type="radio" value="mail" name="gender" required><input type="radio" value="femail" name="gender" required><br>
        愛好:
        <input type="checkbox" value="book" name="hobby">讀書
        <input type="checkbox" value="music" name="hobby" required>音樂
        <input type="checkbox" value="movie" name="hobby">電影
        <br>
        其他:<textarea name="other" required></textarea>
        <br>
        <button>提交</button>
    </form>
</body>

</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

input新增type屬性值

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="" novalidate>
        <!-- 郵箱:<input type="email" name="email"> -->
        <br>
        <!-- url:<input type="url" requried name="url"> -->
        <br>
        <!-- 數(shù)值:<input type="number" name="number" step="2" max="80" min="20"> -->
        <br>
        <!-- 搜索:<input type="search" name="keyword"> -->
        <br>
        <!-- 電話:<input type="tel" name="phone"> -->
        <br>
        <!-- 范圍:<input type="range" name="range" max="80" min="20" value="22"> -->
        <br>
        <!-- 顏色:<input type="color" name="color"> -->
        <br>
        <!-- 日期:<input type="date" name="date"> -->
        <br>
        <!-- 月份:<input type="month" name="month"> -->
        <br>
        <!-- 周:<input type="week" name="week"> -->
        <br>
        <!-- 時間:<input type="time" name="time"> -->
        <br>
        <!-- 日期+時間:<input type="datetime-local" name="time2"> -->
        <button>提交</button>
    </form>
</body>
</html>

新增多媒體標(biāo)簽

新增視頻標(biāo)簽

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        video {
            width: 600px;
        }
    </style>
</head>
<body>
    <video src="./資料/resource/小電影.mp4" controls muted loop poster="./資料/封面.png" preload="auto"></video>
</body>
</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

新增音頻標(biāo)簽

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        audio {
            width: 600px;
            border: 1px solid skyblue;
        }
    </style>
</head>
<body>
    <audio src="./資料/小曲.mp3" controls muted loop preload="auto"></audio>
</body>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        audio {
            width: 600px;
        }
        .mask {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0,0,0,0.727);
        }
        .dialog {
            position: absolute;
            width: 400px;
            height: 400px;
            background-color: green;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            font-size: 40px;
            text-align: center;
            line-height: 400px;
        }
        span {
            border: 1px solid white;
            color: white;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <audio id="music" src="./資料/小曲.mp3" controls></audio>
    <div class="mask" id="mask">
        <div class="dialog">
            <span>點我登陸</span>
            <span onclick="go()">隨便聽聽</span>
        </div>
    </div>

    <script>
        function go(){
            music.play()
            mask.style.display = 'none'
        }
    </script>
</body>
</html>

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

新增全局屬性

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5

兼容性處理

前端學(xué)習(xí)——HTML5,前端,學(xué)習(xí),html5文章來源地址http://www.zghlxwxcb.cn/news/detail-532331.html

到了這里,關(guān)于前端學(xué)習(xí)——HTML5的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 前端之html5

    html5優(yōu)勢: ? ? 語義化標(biāo)簽: ? ? ? ? ? ? 布局標(biāo)簽: ? ? ? ? ? ? ?狀態(tài)標(biāo)簽: ? ? ? ??列表標(biāo)簽: ? ? ? ?文本標(biāo)簽: ? ? ? ? ?表單控件: ? ? ? ? 視頻標(biāo)簽: ? ? ? ? ?音頻標(biāo)簽: ? ? ? ? 全局屬性: article和section區(qū)別: 兼容性處理: ? ? ? ? ? ?1 針對javascr

    2024年02月13日
    瀏覽(24)
  • HTML5前端標(biāo)簽練習(xí)

    標(biāo)簽的分類 標(biāo)簽的嵌套 a標(biāo)簽 驗證form表單朝后端提交數(shù)據(jù) 效果 代碼

    2024年02月08日
    瀏覽(32)
  • 2023前端面試筆記 —— HTML5

    2023前端面試筆記 —— HTML5

    內(nèi)容 鏈接 2023前端面試筆記 HTML5 HTML5作為最新的HTML標(biāo)準(zhǔn),為前端開發(fā)帶來了許多新的特性和功能。在前端面試中,HTML5的知識和應(yīng)用已經(jīng)成為了必備的技能。本篇文章將總結(jié)HTML5的 重要知識點和常見面試題 ,幫助讀者更好地準(zhǔn)備前端面試,提升自己的競爭力。 HTML 超文本標(biāo)記

    2024年02月11日
    瀏覽(22)
  • html5學(xué)習(xí)筆記13-HTML5 新元素

    https://www.runoob.com/html/html5-new-element.html 新多媒體元素 新表單元素 新的語義和結(jié)構(gòu)元素 移除的元素,HTML 4.01 元素在HTML5中已經(jīng)被刪除:

    2024年02月11日
    瀏覽(33)
  • 前端-01Html5基本知識

    前端-01Html5基本知識

    內(nèi)容 使用瀏覽器打開 瀏覽器 谷歌瀏覽器 清緩存 ctrl+shift+delete vscode 生成瀏覽器文件.html的快捷方式 !+回車 常用快捷鍵 快速打開瀏覽器 插件open in browser 安裝,就會多出兩個選項來 概念 是一種用來描述網(wǎng)頁的一種語言,被稱為超文本標(biāo)記語言,本質(zhì)是標(biāo)記語言,標(biāo)記語言是

    2024年02月04日
    瀏覽(37)
  • 02-前端基礎(chǔ)第二天-HTML5

    02-前端基礎(chǔ)第二天-HTML5

    能夠書寫表格 能夠?qū)懗鰺o序列表 能夠?qū)懗?~4個常用input表單類型 能夠?qū)懗鱿吕斜肀韱?能夠使用表單元素實現(xiàn)注冊頁面 能夠獨立查閱W3C文檔 表格標(biāo)簽 列表標(biāo)簽 表單標(biāo)簽 綜合案例 查閱文檔 表格是實際開發(fā)中非常常用的標(biāo)簽: 表格的主要作用 表格的基本語法 1.1表格的主要

    2024年02月12日
    瀏覽(27)
  • HTML5+CSS3學(xué)習(xí)筆記(九)前端頁面六大布局(文檔流布局、浮動布局、定位布局、表格布局、彈性布局、網(wǎng)格布局)

    HTML5+CSS3學(xué)習(xí)筆記(九)前端頁面六大布局(文檔流布局、浮動布局、定位布局、表格布局、彈性布局、網(wǎng)格布局)

    本系列更多文章,可以查看專欄 HTML+CSS學(xué)習(xí)筆記 塊級元素自上至下垂直排列,行內(nèi)元素自左至右水平排列 塊級元素獨占一行,行內(nèi)元素不會另起一行 默認情況下,height和width決定內(nèi)容區(qū)的大??;內(nèi)容區(qū)、內(nèi)邊距和邊框構(gòu)成可見區(qū)域的大??;外邊距決定元素的位置 更多內(nèi)容可

    2024年02月02日
    瀏覽(70)
  • HTML5 跨屏前端框架 Amaze UI

    HTML5 跨屏前端框架 Amaze UI

    Amaze UI采用國際最前沿的“組件式開發(fā)”以及“移動優(yōu)先”的設(shè)計理念,基于其豐富的組件,開發(fā)者可通過簡單拼裝即可快速構(gòu)建出HTML5網(wǎng)頁應(yīng)用,上線僅半年,Amaze UI就成為了國內(nèi)最流行的前端框架,目前在Github上收獲Star數(shù)近萬,服務(wù)于全球50W開發(fā)者。 Amaze UI 的開發(fā)歷程 云

    2024年02月08日
    瀏覽(26)
  • h5(html5)+css3前端筆記二

    h5(html5)+css3前端筆記二

    一、表格標(biāo)簽 表格的主要作用: 表格主要用于 顯示、展示數(shù)據(jù) ,因為它可以讓數(shù)據(jù)顯示的非常的規(guī)整,可讀性非常好。特別是后臺展示數(shù)據(jù)的時候,能夠熟練運用表格就顯得很重要。一個清爽簡約的表格能夠把繁雜的數(shù)據(jù)表現(xiàn)得很有條理。 1. table/table 用來定義表格的標(biāo)簽

    2024年02月14日
    瀏覽(32)
  • HTML5學(xué)習(xí)簡記

    HTML5學(xué)習(xí)簡記

    目錄 HTML定義 標(biāo)簽 HTML基本骨架 常見標(biāo)簽 標(biāo)題標(biāo)簽 ?段落標(biāo)簽 ?換行與水平線標(biāo)簽 ?文本格式化標(biāo)簽 ????????圖像標(biāo)簽 ????????絕對路徑與相對路徑 ????????超鏈接標(biāo)簽 ????????音頻與視頻標(biāo)簽 ?列表標(biāo)簽 無序列表 有序列表 ?定義列表 表格標(biāo)簽? 表格結(jié)構(gòu)標(biāo)

    2024年02月16日
    瀏覽(49)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包