HTML入门--Day02

# HTML入门

## HTML标记

双标记

<标记名>内容</标记名>即双标记

常见的有标题标记、段落标记、文本样式标记、格式标记等。

 最常见的如下:

          <html> </html>

        <head> </head>

        <body> </body>

        <title> </title>

        <font face=""  ; size=""  ; color=""   ;> </font>

                             <strong> </strong>

                             <em> </em>

                             <del> </del>

                             <ins> </ins>

单标记

常见的有:

​<hr />

<br />

 

注释标记

<!-- 注释语句 -->

特殊标记

常见的有:

&nbsp;

&lt;

&gt;

标记的属性

<标记名 属性="属性值"...>内容</标记名>

HTML 头部标记

      1. ​​<title>网页标题名称</title>
        2. 页面元信息标记<meta />
           (1) <meta name="名称" content="值" />
           (2) <meta http-equiv="名称" content="值" />
        3. 引用外部文件标记<link>
           <link 属性="属性值" />
           <link href="外部地址" rel="stylesheet" type="text/css" />
        4. 内嵌式标记<style>
           
           <style type="text/css">样式内容</style>

HTML图像标记

  1.  <img src="url"  />

  2. 图像属性

    (1) width height

    (2) border

    (3) 边距:vspace=垂直边距;hspace=水平边距;

    (4) 对齐align

    相对路径和绝对路径

    在Day01C中有相关知识

 

posted @ 2021-01-24 11:26  MGLblog  阅读(52)  评论(0)    收藏  举报