HTML入门笔记五之HTML整体知识点

来源:互联网 发布:数据挖掘软件排名 编辑:程序博客网 时间:2024/05/16 17:42

一, 页面标记

1. html文件结构:
<html>…</html> <head>…</head> <body>…</body>

2. 语言字符集(charsets)

<meta http-equiv = “content-type”content = “text/html;charsets = #”>

# = gb2312 ;gbk;utf-8等等

3. 背景色彩和文字色彩

<bgcolor = # text = # link = #alink = # vlink = #>

Bgcolor ---背景色彩

Text---非可链接的文字色彩

Link---可链接文字的色彩

Alink—正在被点击的可链接文字的色彩

Vlink—已经被点击的可链接文字的色彩

#= rrggbb 色彩是用16进制的红-绿-蓝的值表示,16进制的数码有0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f.

背景图像<background = “image-URL”>

4. 页面空白(margin)

<body leftmargin = #>页面左边的空白

<body topmargin = #> 页面上方的空白

5. 链接

<a href = “URL”>…</a>

6. 标尺

<hr></hr>       <hr size = “*px”>  ; <hr noshade>; <hr color>

二, 字体

1. 字符标记(FONT TAGS)

标题字体(header)

<h#></h#>          # = 1,2,3,4,5,6;         1->6 变小

2. 字体大小

<font size = #>…</font>  # = 1,2,3,4,5,6,7;

<basefont size = #> # =1,2,3,4,5,6,7;

3. 物理字体 (physical)

<b></b> 字体加粗

<i> </i> 字体倾斜

<u> </u>字体下划线

4. 字体颜色

<font color = “#”>…</font>              

5. 客户端字体

<font face = “###”> …</font>    

# = 客户端可获得的字体

<font face = “楷体”> hello world!</font>

6. 字符实体

&anp;                &

&lt ;                  <

&gt ;                   >

&nbsp;                空格

 

三, 文字布局(text style)

1,   行的控制

<p>空行

<br>换行

2,   文字对齐

<hn align = #>…</hn>

<p align = #>… </p> #=left ,center ,right

 

 

1.    文字的分区

<div align = left>…</div>

四, 表格

五, 表格的色彩

六, 多窗口页面

七, 会移动的文字(marquee)

基本语法:

<marquee>..</marquee>

文字移动属性的设置

方向<direction= #>  # = left,right

<marquee direction = left>向左移<marquee>

<marquee direction = right>向右移<marquee>

方式:<behavior = #> # =scroll,一圈一圈绕着走;slide,只走一次;alternate,来回走;

循环<loop = #> # = 次数;若未指定则循环不止

<marquee loop = 3 width = 50px ></marquee>

速度<scrollamount = #>

<marquee scrollamount = 20></marquee>

延时<scrolldelay = #>

八, 多媒体页面

0 0
原创粉丝点击