# HTML另类总结 菜鸟制作大家勿喷 当做手册用

**URL:** <https://forum.90sec.com/t/topic/3127>\
**Category:** 技术文章\
**Created:** [2012 年1 月 1 日 03:28 UTC](https://forum.90sec.com/t/topic/3127 "2012-01-01T03:28:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

作者： ![Hu0G4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@Hu0G4](https://forum.90sec.com/u/Hu0G4)\
发布日期： [2012 年1 月 1 日 03:28 UTC](https://forum.90sec.com/t/topic/3127/1 "2012-01-01T03:28:55Z")

</div>

_本帖最后由 淡然 于 2012-1-1 12:09 编辑_

一个月左右学了html，看了3份资料，

自己总结下， 因为我知道，学习后总结下，你会有很多的收获的

所以我把我总结的发出来大家看下，很多的不足，希望大家多多包涵

在这里向大家推荐个html资料，爱淘课的html教程 分常不错，也是欧欧大大推荐我看的，

下面学习asp 以后会和大家分享跟多的经验。。。。

写的不好 大家勿喷

[code="xhtml"]  
1.HTML文件结构

```xml
<html>
  <head>
  </head> 
  <body>
  </body>
</html>

```

2.Head中的标记  
\<title\>...\</title\>网页标题  
\<meta name="description/deywords/author" content="描述内容"\>

Body中的简单标记  
Body中的属性： bgcolor背景颜色  
Background 背景图片

标题属性\<h1\>-\<h6\>

Font文字标签  
Face="字体" 可以设置字体  
Size="值" 设置字体的大小  
Color="颜色值" 设定颜色值

\<Br\>换行 \<P\>段落 \<b\>粗体 \<i\>斜体 \<u\> 下划线  
\<sup\>上标\</sup\> \<sub\>下标\</sub\> \<big\>比普通字大一号\</big\>  
\<small\>普通字小一号\</small\>  
\<nobr\> 一行太长，不想让其换行\</nobr\>

Hr 水平线标签  
Width 设置宽度  
Size 高度  
Color 颜色  
Align 对其方式  
Noshade 去掉线的阴影，无参数

插入特殊字符 这里说几个常用的  
空格  
& &  
™ TM  
\< \<  
\> \>

\<img\> 图片标记  
Scr: 图片地址  
Alt：提示文字  
Height：图片高度  
Width；图片宽度  
Align： 对其方式

有序类表  
基本格式  
\<ol\>  
\<li\>...\</li\>  
\</ol\>  
Ol的属性  
Type 排序方式 （A a i I 1）  
Start表示冲第几个开始

无序列表  
\<ul\> 属性  
Type 3个值，默认disc(实心圆)/circle（空心圆)/square(实心框）

表格 \<table\>\</table\>  
属性  
Width 宽度  
Height 高度  
Bordercolor 边框色  
Background 背景图  
Cellspacing 单元格间距和文字  
Cellpadding 单元格边框间距  
Align 水平对齐方式  
Valign 垂直对齐方式  
Bgcolor 背景颜色  
Colspan 水平何必单元格  
Rowspan垂直合并单元格  
Border边框大小  
Bordercolorlight 边框有凸出的值是色彩值  
Bordercolordark 边框有凹进

超连接  
\<a href="地址"\>\</a\>  
属性  
Target="\_blank" 在新窗口打开  
锚点连接  
\<a herf="地址#2"\>\</a\>  
在要到的位置写上\<a name="2"\>\</a\>  
滚动文字  
\<marquee\>...\</marquee\>  
属性：  
Direction 控制滚动方向  
值：up(向上)//down(向下)/left(向左)/right(向右)  
Behavior控制滚动方式  
值: scroll(循环滚动默认)/slide(滚动一次)/alternate(来回滚动)  
Scrollamount 设置滚动快慢  
Scrolldelay 设置滚动延迟  
Loop 设置滚动次数  
滚动范围 widht height 例：用于类似公告栏

插入多媒体  
\<embed src="多媒体文件" width="像素" height="像素"\>/\<embed\>  
背景音乐 \<bgsound src="地址"\>  
Loop 设置播放次数

框架结构  
\<frameset rows="30%,70%"\> rows是水平分隔，cols是垂直分隔  
\<frame src="地址"\>  
\<frame src="地址"\>  
\</frameset\>  
Frameset属性  
Frameborder="yes/no" 显示和不显示边框  
Framespacing 边框大小  
Bordercolor 边框颜色  
Frame属性  
Noresize 无选项值禁止拖动分割线  
Scrolling="yes/no/auto" 显示/隐藏/自动(默认)

```
        左侧页面&lt;frame src="xx.html" name="test"&gt;
         到右侧的页面将所有连接架上target="test"
         如&lt;a href "xxxxx.html" target="text"&gt;

```

表单标签\<form\>\</form\>  
\<input\> 标签属性  
文本框type="text(文本)"/password(以\*显示)"  
Size 设置文本框的长度  
Value="默认显示内容"  
Maxlength="在type里面输入的最大长度"  
单选框/复选框 name="分组内容" name在单选框中值都是一样的，在复选框中值是不同的  
Type="radio(单选框)"/checkbox(复选框)  
Value="选项内容"  
Checked 无值 作为默认选中  
下拉菜单/列表项  
\<select\>...\</select\>  
有一个name的属性用来指定下拉列表的名称，值随便取  
定义菜单项  
\<option\>...\</option\> 在\<select\>...\</select\>中  
Option属性  
Value="菜单内选项内容"  
Selsected 无值，设置默认项  
列表项  
\<select name="列表名称" multiple(列表项) size="显示几列值"\>  
文本域  
\<textarea name="指定名称" cols="长度的值" rows="宽度值"\>\</textarea\>  
隐藏域  
\<input type="hidden" value="传送的数据" name=" 名称"\>  
文本域上传文件  
\<input type="file" size="显示长度值" name="名称"\>  
提交按钮  
\<input type="submit" name="名称" value="提交"\>  
重置按钮  
\<input type="reset" name="名称" value="重写"\>  
按钮可以设置成图片  
\<input type="image" name="名称" src="图片地址"\>

打包好的 也发下吧  
[html小小总结.rar](https://forum.90sec.com/discuz-migration/attachments/d399003c49cac9f592e71593bf839a649b5e8d638d40a7adb6b8568cdcd6ea4a)

---

<div class="post-metadata">

作者： ![cloudqqvip](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/4491bb/32.png) [@cloudqqvip](https://forum.90sec.com/u/cloudqqvip)\
发布日期： [2012 年1 月 1 日 05:24 UTC](https://forum.90sec.com/t/topic/3127/2 "2012-01-01T05:24:40Z")

</div>

写的不错 淡然牛牛

---

<div class="post-metadata">

作者： ![RH00T](https://forum.90sec.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@RH00T](https://forum.90sec.com/u/RH00T)\
发布日期： [2012 年1 月 1 日 06:40 UTC](https://forum.90sec.com/t/topic/3127/3 "2012-01-01T06:40:18Z")

</div>

排版用心了。 凑字数

---

<div class="post-metadata">

作者： ![cxzhack](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/c4cdca/32.png) [@cxzhack](https://forum.90sec.com/u/cxzhack)\
发布日期： [2012 年1 月 1 日 09:22 UTC](https://forum.90sec.com/t/topic/3127/4 "2012-01-01T09:22:09Z")

</div>

虽然简单。。但是还是用心学了。。。支持。。要多动笔 多动电脑键盘

---

<div class="post-metadata">

作者： ![user40](https://forum.90sec.com/user_avatar/forum.90sec.com/user40/32/11393_2.png) [@user40](https://forum.90sec.com/u/user40)\
发布日期： [2012 年1 月 1 日 13:49 UTC](https://forum.90sec.com/t/topic/3127/5 "2012-01-01T13:49:58Z")

</div>

很久很久以前学过····不过 都忘得差不多了·····

---

<div class="post-metadata">

作者： ![Hu0G4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@Hu0G4](https://forum.90sec.com/u/Hu0G4)\
发布日期： [2012 年1 月 13 日 11:01 UTC](https://forum.90sec.com/t/topic/3127/6 "2012-01-13T11:01:10Z")

</div>

\*\*回复 [10#](http://www.90sec.org/redirect.php?goto=findpost&pid=12511&ptid=1222) _aclie_ \*\*

```
TKS

```

{:4\_74:}

---

<div class="post-metadata">

作者： ![redfire](https://forum.90sec.com/letter_avatar_proxy/v4/letter/r/977dab/32.png) [@redfire](https://forum.90sec.com/u/redfire)\
发布日期： [2012 年1 月 13 日 12:06 UTC](https://forum.90sec.com/t/topic/3127/7 "2012-01-13T12:06:50Z")

</div>

作为有时候的参考 随处带小抄
