ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

HTML 初识

2022-05-20 01:00:50  阅读:180  来源: 互联网

标签:qq SAN List 初识 item HTML Heading name


<head>标签:放的是不被网页主题显示的内容:如标题,介绍等。 <body>标签:渲染给用户真正看到的内容 <!DOCTYPE HTML>:解释文档的类型,目前基本上都是HTML5

  • 块级元素

    • 在页面以快的形式展现
    • 出现在新的一行
    • 占全部宽度
    • <div> <h1>-<h6> <p>
  • 内联元素

    • 通常在块级元素内
    • 不会导致文本换行
    • 只占必要的部分宽度
    • <a> <ing> <em> <strong>
    • <strong>:加强
    • <em>:斜体化
    • <a>: 或称锚元素,具体的参考可查看<a>

HTMl一般不处理逻辑的信息

<!DOCTYPE html>
<html>
    <head>
        <title>This is a demo html</title>
    </head>

    <body>
        <h1>Heading One</h1>
        <h2>Heading Two</h2>
        <h3>Heading Three</h3>
        <h4>Heading Four</h4>
        <h5>Heading Five</h5>
        <!--paragraph-->
        <p>  unde illo rerum aliquid magnam voluptates sit accusantium asperiores quia tenetur!</p>
        <p>  <strong>unde illo rerum aliquid</strong> magnam voluptates sit accusantium asperiores quia tenetur!</p>
        <p>  unde illo rerum <a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/a" target="_blank">aliquid</a> magnam voluptates sit accusantium asperiores quia tenetur!</p>

        <!--lists-->
        <ul><!--无序列表-->
            <li>List item 1</li>
            <li>List item 2</li>
            <li>List item 3</li>
            <li>List item 4</li>
        </ul>
        <ol><!--有序列表-->
            <li>List item 1</li>
            <li>List item 2</li>
            <li>List item 3</li>
            <li>List item 4</li>
        </ol>

        <!-- Table -->
        <table>
            <thead>  <!--  表头 -->
                <tr>  <!-- 横 -->
                    <th>First name</th>  <!-- 表头的列 叫 th -->
                    <th>Last name</th>
                    <th>Age</th>
                    <th>Email</th>
                </tr>
            </thead>
            <tbody><!--  表数据 tbody -->
                <tr>
                    <td>ZHANG</td>       <!-- 数据的列 叫 td -->
                    <td>SAN</td>
                    <td>18</td>
                    <td>abc@qq.com</td>
                </tr>
                <tr>
                    <td>ZHANG</td>       <!-- 数据的列 叫 td -->
                    <td>SAN</td>
                    <td>18</td>
                    <td>abc@qq.com</td>
                </tr>
                <tr>
                    <td>ZHANG</td>       <!-- 数据的列 叫 td -->
                    <td>SAN</td>
                    <td>18</td>
                    <td>abc@qq.com</td>
                </tr>
                <tr>
                    <td>ZHANG</td>       <!-- 数据的列 叫 td -->
                    <td>SAN</td>
                    <td>18</td>
                    <td>abc@qq.com</td>
                </tr>

            </tbody>
        </table>

        <!-- Form 表单 -->
        <form action="form.js" method="post">
            <div>
                <label>first name </label>
                <input type="text" name="firstname" placeholder="Enter you first name">

            </div>
            <div>
                <label>Last name </label>
                <input type="text" name="lastname" placeholder="Enter you Last name">
            </div>
            <div>
                <label>Email </label>
                <input type="email" name="email" placeholder="Enter you Email">
            </div>
            <input type="submit" name="submit" value="Submit">
        </form>

        <br>

        <button>This is a button</button>
        
        <div style="margin-top: 100px;"></div>

        <!-- Image -->
        <img style="width: 100vw;" src="http://cairopulse.net/wp-content/uploads/2017/01/Keji-11.jpg" alt="This is a av woman">
        
        <!-- Quotation -->
        <blockquote>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel, repellat! Iste, quisquam sint enim voluptatem officia consequuntur repellat deleniti quaerat blanditiis illo delectus sunt nemo rerum consequatur? Autem, id iusto.</blockquote>

        <p><abbr title="abbr样式">MIT</abbr> this is a abbr attribut</p>

        <p><cite>MIT is a collage</cite></p>
    </body>
</html>

AT0ZBE
AT0ZBE
uIx42D
uIx42D

标签:qq,SAN,List,初识,item,HTML,Heading,name
来源: https://www.cnblogs.com/moniter/p/html-chu-shi.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有