Blogger Information
Blog 6
fans 0
comment 0
visits 3770
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
HTML基础----01
Eachone的博客
Original
515 people have browsed it

1.html的基本语法

        <标签名 属性名="属性值" 属性名2="属性值">内容</标签名>

        注意:属性只能写在开始标签中

        写标签的时候,请一对一对的写,结束标签记得加/

2.html的基本结构

    <!DOCTYPE html>文档声明

            <html>定义html文件

                    <head>定义网页头部信息

                            <meta charset="utf-8"/>字符编码声明

                            <title>网页标题</title>

                    </head>

                    <body>

                    </body>网页的主体,要给用户看的内容都写body里面

            </html>

3.基本标签

        h1-h6标签:标题标签

        p标签:定义段落

        br标签:换行符

        hr标签:水平线


        strong标签:着重语义,加粗效果

        em标签:强调语义,效果为斜体


        big标签:大号字体

        small标签:小一号字体


        del标签:定义删除文本


        sub标签:下标

        sup标签:上标


        span标签:行内标签,没效果,搭配css使用

        div标签:块标签,没效果,搭配css使用

4.行内标签与块标签

        行内标签:不会独占一行,高宽由内容决定

        块标签:独占一行,默认宽度100%

5.特殊符号

        大于号     >    &gt;

        小于号     <    &lt;

        空格               &nbsp;

        大空格           &emsp;

        and符      &   &amp;


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post