1.学习视频:html 进阶篇 - 高级标签

    2.学习内容
    空格、回车是文本分隔符(不管是多少个空格或回车)
    html编码
    1)  —> 一个空格文本
    2)&less than , great than—程度上的比较)
    3)a
    b —>a 换行 b 补充:不需要成对出现,叫单标签
    4)


    —> 代表水平线
    5)有序列表
    1.
      超过26字母,就按27进制继续排序
      2.
        倒序
        3.
          从第三个 c 才是排序
          可以用阿拉伯数字、小写罗马数字、大写罗马数字、小写字母、大写字母排序
          1,2,3… i,ii,iii… I,II,III… a,b,c… A,B,C…

          1. <!--<ol type="a" reversed="reversed">-->
          2. <ol type="a" start="3">
          3. <li>marvel</li>
          4. <li>速8</li>
          5. <li>返老还童</li>
          6. <li>了不起盖茨比</li>
          7. </ol>

          6)无序列表
          1.

            discircle—>实心圆
            2.
              方块
              3.
                空心圈
                4.ul 和 li 是父子结构

                1. <html>//该程序不可运行,为注解部分
                2. <head>
                3. <meta charset="utf-8">
                4. <title>document</title>
                5. <style type="text/css">
                6. *{
                7. margin: 0;
                8. padding: 0;
                9. }
                10. <!--空隙去除-->
                11. ul{
                12. list-style:none;
                13. }
                14. <!--圆圈去除-->
                15. li{
                16. margin: 0 10px;<!--加点空隙-->
                17. float: left;
                18. color: #f40;<!--淘宝红-->
                19. font-weight: bold;<!--字体加粗-->
                20. font-size: 14px;<!--字号大小设置-->
                21. height: 25px;
                22. line-height: 25px;
                23. padding: 0 5px;
                24. }
                25. <!--横过来,在一行上面-->
                26. li:hover{
                27. border-radius: 15px;<!--把边框设置成圆角的-->
                28. background-color: #f40;
                29. color: #fff;<!--背景颜色变成白色-->
                30. }
                31. </style>
                32. </head>
                33. <body>
                34. <ul type="circle">
                35. <li>天猫</li>
                36. <li>聚划算</li>
                37. <li>天猫超市</li>
                38. </ul>
                39. </body>
                40. </html>
                1. <html>
                2. <head>
                3. <meta charset="utf-8">
                4. <title>document</title>
                5. <style type="text/css">
                6. *{
                7. margin: 0;
                8. padding: 0;
                9. }
                10. ul{
                11. list-style:none;
                12. }
                13. li{
                14. margin: 0 10px;
                15. float: left;
                16. color: #f40;
                17. font-weight: bold;
                18. font-size: 14px;
                19. height: 25px;
                20. line-height: 25px;
                21. padding: 0 5px;
                22. }
                23. li:hover{
                24. border-radius: 15px;
                25. background-color: #f40;
                26. color: #fff;
                27. }
                28. </style>
                29. </head>
                30. <body>
                31. <ul type="circle">
                32. <li>天猫</li>
                33. <li>聚划算</li>
                34. <li>天猫超市</li>
                35. </ul>
                36. </body>
                37. </html>

                7)图片
                1.网上url —> 网上图片的浏览地址
                2.本地的绝对路径
                2.本地的相对路径
                1—D:/a/b/lesson2.html
                2—D:/a/b/123.jpg
                3—D:/a/b/c/123.jpg
                2021/02/09html 进阶篇 - 高级标签 - 图1
                当HTML文件和这张图片在同一个文件夹下的时候,他俩的路径成相对关系(1和2)
                2021/02/09html 进阶篇 - 高级标签 - 图2
                不是一个地址就是绝对关系,需要将地址写全(1和3)

                1. <img src="C:\Users\hp\Desktop\大学\大一(下)\壁纸\校园.jpeg" style="width: 200px;" alt="这是校园" title="this is college"><!--image图片-->
                2. <!--alt图片占位符-->

                8)href 1.超链接
                2.锚点
                3.打电话

                1. <html>
                2. <head>
                3. <meta charset="utf-8">
                4. <title>document</title>
                5. </head>
                6. <body>
                7. hyperText reference超文本引用
                8. //1.超链接 anchor -- 抛锚,记录锚点
                9. <a href="https://www.baidu.com" target="_blank"> www.baidu.com</a>
                10. <!--图片跳转,新的页面 blank空的-->
                11. <a href="https://www.baidu.com" style="width: 100px;height: 100px;background-color: red;display: block;">
                12. </a><!--图片跳转,当前页面-->
                13. id唯一标识的意思
                14. //2.锚点
                15. <div id="demo1" style="width: 100px;height: 100px;background-color: green;">demo1</div>
                16. <br>
                17. <div id="demo2" style="width: 100px;height: 100px;background-color: red;">demo2</div>
                18. <br>
                19. <a style="display: block;position: fixed;bottom: 150px;right: 100px;border: 1px solid blank;height: 50px;width: 200px;background-color: #ffc;"href="#demo1">find demo1</a>
                20. <a style="display: block;position: fixed;bottom: 200px;right: 100px;border: 1px solid blank;height: 50px;width: 200px;background-color: #fcc;"href="#demo2">find demo2</a>
                21. //3.打电话
                22. <a href="tel:159xxxx2799" style="font-size: 12px">打电话啊</a>
                23. //4.发邮件
                24. <a href="mailto:2802791636@qq.com" style="font-size: 12px">发邮件</a>
                25. //5.协议限定符
                26. <a href="javascript:while(1){alter('弹窗内容')}">死循环弹窗</a>
                27. </body>
                28. </html>

                9)提交数据、单选、输入框

                1. <html>
                2. <head>
                3. <meta charset="utf-8">
                4. <title>document</title>
                5. <style type="text/css">
                6. input{
                7. border: 1px soild #999;
                8. }
                9. </style>
                10. </head>
                11. <body>
                12. 提交数据
                13. <form method="get" action="接收地址">
                14. <p>
                15. username:<input type="text" name="username" style="color: #999" value="请输入用户名" onfocus="if(this.value=='请输入用户名'){this.value='';this.style.color='#424242'}" onblur="if(this.value==''){this.value='请输入用户名';this.style.color='#999'}">
                16. </p>
                17. <p>
                18. password:<input type="password" name="password">
                19. </p>
                20. //单选框
                21. 1.<input type="radio" name="star" value="数据值">
                22. 2.<input type="radio" name="star" value="xiaolai">
                23. 3.<input type="radio" name="star" value="handsome">
                24. <input type="submit" value="login">
                25. </form>
                26. 提交成功之后:
                27. file:///E:/HTML/%E6%8E%A5%E6%94%B6%E5%9C%B0%E5%9D%80?username=123&password=456
                28. md5 加密,不可逆
                29. </body>
                30. </html>

                总结:
                通过这节课的学习,了解到了很多的标签用法及用途,对html的认识也更进一步