bHTMLb基本标记.docx
- 文档编号:2850951
- 上传时间:2023-05-04
- 格式:DOCX
- 页数:12
- 大小:20.46KB
bHTMLb基本标记.docx
《bHTMLb基本标记.docx》由会员分享,可在线阅读,更多相关《bHTMLb基本标记.docx(12页珍藏版)》请在冰点文库上搜索。
bHTMLb基本标记
HTML基本标记
Basictags
基本标记
CreatesanHTMLdocument
创建一个HTML文档
Setsoffthetitleandotherinformationthatisn'tdisplayedontheWebpageitself
设置文档标题以及其他不在WEB网页上显示的信息
Setsoffthevisibleportionofthedocument
设置文档的可见部分
Headertags
标题标记
Putsthenameofthedocumentinthetitlebar
将文档的题目放在标题栏中
#Bodyattributes
文档整体属性
> Setsthebackgroundcolor,usingnameorhexvalue 设置背景颜色,使用名字或十六进制值 > Setsthetextcolor,usingnameorhexvalue 设置文本文字颜色,使用名字或十六进制值 > Setsthecoloroflinks,usingnameorhexvalue 设置链接颜色,使用名字或十六进制值 > Setsthecoloroffollowedlinks,usingnameorhexvalue 设置已使用的链接的颜色,使用名字或十六进制值 > Setsthecoloroflinksonclick 设置正在被击中的链接的颜色,使用名字或十六进制值 Texttags 文本标记 Createspreformattedtext 创建预格式化文本 Createsthelargestheadline 创建最大的标题 Createsthesmallestheadline 创建最小的标题 Createsboldtext 创建粗体字 Createsitalictext 创建斜体字 Createsunderlinetext 创建下划线字 # Createsteletype,ortypewriter-styletext 创建打字机风格的字体 # Createsacitation,usuallyitalic 创建一个引用,通常是斜体 # Emphasizesaword(withitalicorbold) 加重一个单词(通常是斜体加黑体) # Emphasizesaword(withitalicorbold) 加重一个单词(通常是斜体加黑体) > Setssizeoffont,from1to7 设置字体大小,从1到7 > Setsfaceoffont,separatedbycomma 设置字体名称,用逗号隔开,用引号引起 > Setsfontcolor,usingnameorhexvalue 设置字体的颜色,使用名字或十六进制值 Links 链接 Createsahyperlink 创建一个超链接 # EMAIL"> Createsamailtolink 创建一个自动发送电子邮件的链接 Createsatargetlocationwithinadocument 创建一个位于文档内部的靶位 Linkstothattargetlocationfromelsewhereinthedocument 创建一个指向位于文档内部靶位的链接 Formatting 格式排版 Createsanewparagraph 创建一个新的段落 > Alignsaparagraphtotheleft,right,orcenter 将段落按左、中、右对齐 Insertsalinebreak 插入一个回车换行符 # Indentstextfrombothsides 从两边缩进文本 # Createsadefinitionlist 创建一个定义列表 # Precedeseachdefinitionterm 放在每个定义术语词之前 # Precedeseachdefinition 放在每个定义之前 # Createsanumberedlist 创建一个标有数字的列表 # Precedeseachlistitem,andaddsanumber 放在每个数字列表项之前,并加上一个数字 #
Createsabulletedlist
创建一个标有圆点的列表
#
Precedeseachlistitem,andaddsthebullet
放在每个圆点列表项之前,并加上一个圆点
>
AgenerictagusedtoformatlargeblocksofHTML,alsousedforstylesheets
一个用来排版大块HTML段落的标记,也用于样式表
> Agenerictagusedtoformatpartoftextinsideaparagraph,alsousedforstylesheets 一个用来排版段内部分文字的标记,也用于样式表 Graphicalelements 图形元素 Addsanimage 添加一个图像 # > Alignsanimage: left,right,center;bottom,top,middle 排列对齐一个图像: 左中右或上中下 # > Setssizeofborderaroundanimage 设置围绕一个图像的边框的大小 # Insertsahorizontalrule 加入一条水平线 # > Setssize(height)ofrule 设置水平线的大小(高度) # > Setswidthofrule,inpercentageorabsolutevalue 设置水平线的宽度(百分比或绝对像素点) # Createsarulewithoutashadow 创建一个没有阴影的水平线 Tables 表格 Createsatable 创建一个表格 Setsoffeachrowinatable 开始表格中的每一行 Setsoffeachcellinarow 开始一行中的每一个格子
Setsoffthetableheader(anormalcellwithbold,centeredtext)
设置表格头:
一个通常使用黑体居中文字的格子
Tableattributes
表格属性
Setswidthofborderaroundtablecells
设置围绕表格的边框的宽度
Setsamountofspacebetweentablecells
设置表格格子之间空间的大小
Setsamountofspacebetweenacell'sborderanditscontents
设置表格格子边框与其内部内容之间空间的大小
Setswidthoftable-inpixelsorasapercentageofdocumentwidth
设置表格的宽度-用绝对像素值或文档总宽度的百分比
>or > Setsalignmentforcell(s)(left,center,orright) 设置表格格子的水平对齐(左中右) >or > Setsverticalalignmentforcell(s)(top,middle,orbottom) 设置表格格子的垂直对齐(上中下) Setsnumberofcolumnsacellshouldspan(default=1) 设置一个表格格子应跨占的列数(缺省为1) Setsnumberofrowsacellshouldspan(default=1) 设置一个表格格子应跨占的行数(缺省为1) # Preventsthelineswithinacellfrombeingbrokentofit 禁止表格格子内的内容自动断行回卷 #Frames 窗框 Precedesthe 放在一个窗框文档的 Definestherowswithinaframeset,usingnumberinpixels,orpercentageofwidth 定义一个窗框内的行数,可以使用绝对像素值或高度的百分比 Definesthecolumnswithinaframeset,usingnumberinpixels,orpercentageofwidth 定义一个窗框内的列数,可以使用绝对像素值或宽度的百分比 Definesasingleframe-orregion-withinaframeset 定义一个窗框内的单一窗或窗区域 Defineswhatwillappearonbrowsersthatdon'tsupportframes 定义在不支持窗框的浏览器中显示什么提示 #Framesattributes 窗框属性 SpecifieswhichHTMLdocumentshouldbedisplayed 规定窗框内显示什么HTML文档 Namestheframe,orregion,soitmaybetargetedbyotherframes 命名窗框或区域以便别的窗框可以指向它 Definestheleftandrightmarginsfortheframe;mustbeequaltoorgreaterthan1 定义窗框左右边缘的空白大小,必须大于等于1 Definesthetopandbottommarginsfortheframe;mustbeequaltoorgreaterthan1 定义窗框上下边缘的空白大小,必须大于等于1 Setswhethertheframehasascrollbar;valuemayequal"yes,""no,"or"auto."Thedefault,asinordinarydocuments,isauto. 设置窗框是否有滚动栏,其值可以是"yes","no","auto",缺省时一般为"auto" Preventstheuserfromresizingaframe 禁止用户调整一个窗框的大小 Forms 表单 Forfunctionalforms,you'llhavetorunaCGIorJavaScriptscript.TheHTMLjustcreatestheappearanceofaform. 对于功能性的表单,一般需要运行一个CGI或JavaScript小程序,HTML仅仅是产生表单的表面样子。
Createsaform
创建一个表单
Createsapulldownmenu
创建一个下拉菜单
Setsoffeachmenuitem
设置每个菜单项的内容
Createsatextboxarea.Columnssetthewidth;rowssettheheight.
创建一个文本框区域,列的数目设置宽度,行的数目设置高度
Createsacheckbox.Textfollowstag.
创建一个复选框,文字在标记后面
Createsaradiobutton.Textfollowstag
创建一个单选框,文字在标记后面
Createsaone-linetextarea.Sizesetslength,incharacters.
创建一个单行文本输入区域,size设置以字符计的宽度
Createsacommandbutton
创建一个命令按钮,上面显示的是命令名
#
CreatesaSubmitbutton
创建一个submit(提交)按钮
#
CreatesaSubmitbuttonusinganimage
创建一个使用图象的submit(提交)按钮
#
CreatesaResetbutton
创建一个reset(重置)按钮
# > Createsascrollingmenu.Sizesetsthenumberofmenuitemsvisiblebeforeyouneedtoscroll. 创建一个滚动菜单,size设置在需要滚动前可以看到的表单项数目 CSS基本属性 属性名称 属性含义 属性值 字体属性(font) font-family 使用什么字体 所有的字体 font-style 字体是否斜体 normal、italic、oblique # font-variant 是否用小体大写 normal、small-caps font-weight 字体的粗细 normal、bold、bolder、lighter等 font-size 字体的大小 absolute-size、relative-size、length、percentage等 [即: 绝对单位、相对单位、长度、百分比] 颜色和背景属性 color 定义前景色 颜色 background-color 定义背景色 颜色 background-image 定义背景图案 url(image_file) background-repeat 重复方式 repeat、repeat-x、repeat-y、no-repeat # background-attachment 设置滚动 scroll、fixed # background-position 初始位置 percentage、length、top、left、right、bottom等 文本属性 word-spacing 单词之间的间距 normal letter-spacing 字母之间的间距 同上 text-decoration 文字的装饰样式 none|underline|overline|line-through|blink vertical-align 垂直方向的位置 baseline|sub|super|top|text-top|middle|bottom|text-bottom text-transform 文本转换 capitalize|uppercase|lowercase|none text-align 对齐方式 left|right|center|justify text-indent 首行的缩进方式 line-height 文本的行高 normal| # 边距属性 margin-top 顶端边距 length|percentage|auto margin-right 右侧边距 同上 margin-bottom 底端边距 同上 margin-left 左侧边距 同上 # 填充距属性 padding-top 顶端填充距 length|percentage padding-right 右侧填充距 同上 padding-bottom 底端填充距 同上 padding-left 左侧填充距 同上 # 边框属性 border-top-width 顶端边框宽度 thin|medium|thick|length border-right-width 右侧边框宽度 同上 border-bottom-width 底端边框宽度 同上 border-left-width 左侧边框宽度 同上 border-width 一次定义宽度 同上 border-color 设置边框颜色 color border-style 设置边框样式 none|dotted|dash|solid等 border-top 一次定义顶端 border-top-width|color等 border-right 一次定义右侧 同上 border-bottom 一次定义底端 同上 border-left 一次定义左侧 同上 width 定义宽度属性 length|percentage|auto height 定义高度属性 length|auto float 文字环绕 left|right|none clear 哪一边环绕 left|right|none|both # 分级属性 display 定义是否显示 block、inline、list-item、none white-space 怎样处理空白 normal、pre、nowrap list-style-type 加项目编号 disc、circle、square等 list-style-image 加图案 list-style-position 第二行起始位置 inside、outside list-style 一次定义列表 # 鼠标(cursor)属性 自动 auto 定位“十”字 crosshair 默认指针 default 手形 hand 移动 move 箭头朝右方 e-resize 箭头朝右上方 ne-resize 箭头朝左上方 nw-resize 箭头朝上方 n-resize 箭头朝右下方 se-resize 箭头朝左下方 sw-resize 箭头朝下方 s-resize 箭头朝左方 w-resize 文本“i”形 text 等待 wait 帮助 help
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- bHTMLb 基本 标记