html网页制作代码大全,html网页制作代码大全图片
大家好,今天小编来为大家解答html网页制作代码大全这个问题,html网页制作代码大全图片很多人还不知道,现在让我们一起来看看吧!
网页设计常用HTML代码
网页设计常用HTML代码大全
HTML是用来描述网页的一种语言。下面我为大家分享HTML代码,希望对大家学习html代码有帮助!
忽视右键
<body oncontextmenu="return false">
或
<body style="overflow-y:hidden">
1.如何几秒后转到别的页面?
<META HTTP-EQUIV="Refresh" CONTENT="时间;URL=地址">
2.点击关闭窗口
<a rel="external nofollow" href="javascript:top.window.close();">点击关闭窗口</a>!
3.请问如何去掉主页右面的滚动条?
<body scroll="no">
<body style="overflow-y:hidden">
4.请问如何做到让一个网页自动关闭.
<html>
<head>
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
</head>
<body onload="window.setTimeout(‘‘‘‘closes.Click()‘‘‘‘,10000)">
这个窗口会在10秒过后自动关闭,而且不会出现提示.</body>
如何在不刷新页面的情况下刷新css?
<style>
button{ color:#000000;}
</style>
<button onclick=document.styleSheets[0].rules[0].style.color=‘‘‘‘red‘‘‘‘>点击按钮直接修改style标签里button选择符使按钮改为红色</button>
请问如何让网页自动刷新?
在head部记入<META HTTP-EQUIV="Refresh" content="20">其中20为20秒后自动刷新,你可以更改为任意值。
5.如何让页面自动刷新?
方法一,用refresh
HTML代码片段如下:
<head>
<meta http-equiv="refresh" content="5">
</head>
5表示刷新时间
[Ctrl+A全部选择提示:你可先修改部分代码,再按运行]
方法二,使用setTimeout控制
<img src=/logo.gif>
<script>
function rl(){
document.location.reload()
}
setTimeout(rl,2000)
</script>
6.如何让超链接没有下划线
在源代码中的<HEAD>…</HEAD>之间输入如下代码:
<style type="text/css"><!--
a{ text-decoration: none}
--></style>
7.请问如何去掉IE的上下滚动条?
<body style=‘‘‘‘overflow:scroll;overflow-y:hidden‘‘‘‘>
</body>
8.怎样才能把RealPlayer文件在网页做一个试听连接?
<embed height=25src=51js.rm type=audio/x-pn-realaudio-plugin width=50 autostart="false" controls="PlayButton">
9.如何用html实现浏览器上后退按钮的功能?
<a rel="external nofollow" href="java script:history.go(-1)">点击后退</a>
或者
<script> history.back()</script>
10.请问怎么在网页中改变鼠标的箭头形状?
HTML代码片段如下:
<body>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: auto;">auto</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: crosshair">crosshair</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: default">default</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: hand">hand</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: move">move</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: e-resize">e-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: ne-resize">ne-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: nw-resize">nw-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: n-resize">n-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: se-resize">se-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: sw-resize">sw-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: s-resize">s-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: w-resize">w-resize</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: text">text</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: wait">wait</a><br>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="#" style="cursor: help">help</a><br>
</body>
11.怎样不使用页面的缓存?即每一次打开页面时不是调用缓存中的东西
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
12.页面打开时自动弹出一个窗口的代码怎么写?
HTML代码片段如下:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="<B style="color:black;background-color:#A0FFFF">javascript</B>">
<!--
function MM_openBrWindow(theURL,winName,features){//v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow(‘‘‘‘http://www.35ui.cn/‘‘‘‘,‘‘‘‘,‘‘‘‘width=400,height=400‘‘‘‘)">
</body>
</html>
13.如何让我的页面出现一个会讲话的小人?Merlin
HTML代码片段如下:
<HTML>
<HEAD>
<TITLE>默林</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</HEAD>
<BODY>
<p><OBJECT id=sims classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F>
</OBJECT>
<SCRIPT>
var MerlinID;
var MerlinACS;
sims.Connected= true;
MerlinLoaded= LoadLocalAgent(MerlinID, MerlinACS);
Merlin= sims.Characters.Character(MerlinID);
Merlin.Show();
Merlin.Play("Surprised");
Merlin.Speak("大家好");
Merlin.Play("GestureLeft");
Merlin.Think("我是默林!");
Merlin.Play("Pleased");
Merlin.Think("可爱吗?");
Merlin.Play("GestureDown");
Merlin.Speak("哈哈!");
Merlin.Hide();
function LoadLocalAgent(CharID, CharACS){
LoadReq= sims.Characters.Load(CharID, CharACS);
return(true);
}
</SCRIPT>
</p>
<p></p>
<p>看此效果必须装有office2000!!!</p>
</BODY>
</HTML>
14.在页面中如何加入不是满铺的背景图片,拉动页面时背景图不动
HTML代码片段如下:
<html><head>
<STYLE>
body{background-image:url(logo.gif);
background-repeat:no-repeat; background-position:center}
</STYLE>
</head>
<body bgproperties="fixed">
</body>
</html>
[Ctrl+A全部选择提示:你可先修改部分代码,再按运行]
background-repeat:no-repeat;是让背景图不占满整个页面
body bgproperties="fixed"是拉动scroll时背景图不动
15.文本输入框什么属性能实现不可输入?
HTML代码片段如下:
<input type="text" name="textfield" disabled>
或者
<input type="text" name="textfield" readonly>
16.如何禁止自己的页面在别人的框架里打开?
把以下代码加至你的<head>区
<script>
if(window.top!=self){
window.top.location=self.location
}
</script>
17.如何实现首页全屏幕显示?
HTML代码片段如下:
<html>
<body><script language="<B style="color:black;background-color:#A0FFFF">javascript</B>">
var coolw=642
var coolh=400
var coolhuang=window.open("http://www.35ui.cn","coolhuang","width="+coolw+",height="+coolh+",
fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0")
window.close()
</script></body></html>
18.如何监听一个窗口被关闭了?
HTML代码片段如下:
<body onunload="alert(‘‘‘‘你关闭了这个窗口‘‘‘‘)">
19.如何禁止Ctrl+N?
HTML代码片段如下:
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey))>
如何把页面加入用户的收藏夹?
HTML代码片段如下:
<a rel="external nofollow" href="<B style="color:black;background-color:#A0FFFF">javascript</B>:window.external.AddFavorite(‘‘‘‘http://www.35ui.cn‘‘‘‘,‘‘‘‘无忧脚本‘‘‘‘)">收藏无忧脚本</a>
如何在我的'页面中加入背景音乐?
IE:<bgsound src="*.mid" loop=infinite>
NS:<embed src="*.mid" autostart=true hidden=true loop=true>
*.mid你的背景音乐的midi格式文件
关于页面转换效果
<meta http-equiv="page-enter" content="revealTrans(Duration=4,Transition=23)">
或
<meta http-equiv="page-exit" content="revealTrans(Duration=4,Transition=23)">
说明:Transition=23是随机效果,另可以选0-22任一数字固定某个效果
如何设定打开页面的大小
HTML代码片段如下:
<body onload="top.resizeTo(300,200);"><!--(width,height)-->
怎样双击滚屏,单击停止?
HTML代码片段如下:
<html>
<head>
<title>新网页1</title>
</head>
<body>
<script language"<B style="color:black;background-color:#A0FFFF">javascript</B>">
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",10);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if(currentpos!= document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</script>
<p>a</p><p>a</p><p>a</p><p>aa</p><p>aa</p><p>aa</p>
<p>aa</p><p>aa</p><p>aa</p><p>aa</p><p>aa</p><p>aa</p>
<p>aa</p><p>aa</p><p>aa</p><p>aa</p><p>aa</p><p>aa</p>
<p>aa</p><p>aa</p><p>aa</p><p>aa</p><p>a</p>
</body>
</html>
如何让body中的文字不被选中?
HTML代码片段如下:
<body onselectstart="return false">aaa</body>
如何让弹出的窗口不能关闭?
在新开的窗口中加入如下代码
<body onunload=open(location.href)>
</body>
如何让浏览器在保存页面时保存失败?
HTML代码片段如下:
<NOSCRIPT>
<<B style="color:black;background-color:#ffff66">IFRAME</B> SRC="*.html">
</<B style="color:black;background-color:#ffff66">IFRAME</B>>
</NOSCRIPT>
表单中如何用图片按钮实现 reset?
<html>
<head>
<script>
function aaa(){
document.forms[0].reset()
}
</script>
</head>
<body>
<form>
<textarea rows="2" name="S1" cols="20"></textarea>
<input type="submit" values="提交" name="B1">
<image src="logo.gif" onclick=aaa()>
</form>
</body></html>
进入网页时弹出的信息对话框
<body onLoad="window.alert(‘‘‘‘欢迎光临本站‘‘‘‘)">
关闭窗口后弹出对话框
<body onUnload="window.alert(‘‘‘‘谢谢你的光临!欢迎下次再来!‘‘‘‘)">
告别提示
<body onUnload= alert("再见,感谢你的访问!")>
右键菜单的制作
<OBJECT id=menu type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="Related Topics,menu">
<PARAM name="Item1" value="动易;http://www.35ui.cn">
<PARAM name="Item2" value="搜狐;http://www.35hu.cn">
<PARAM name="Item3" value="新浪;http://www.35no.cn">
<PARAM name="Item4" value="网易;http://www.chinsgp.cn">
<PARAM name="Item5" value="互动学院;http://www.35ui.cn">
</OBJECT><script> if(document.all) document.body.onmousedown=new Function("if(event.button==2) menu.Click();")</script>
下拉菜单
<object id=HHCtrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><PARAM name="Command" value="Related Topics,Menu"><PARAM name="Item1" value="aspease;http://www.35ui.cn"><PARAM name="Item2" value="byhu;http://www.35ui.cn"><PARAM name="Item3" value="lzz;http://www.35ui.cn"></object><a href=javascript:HHCtrl.Click() title="下拉菜单">下拉菜单</a>
;html代码大全
1.结构性定义
文件类型<HTML></HTML>(放在档案的开头与结尾)
文件主题<TITLE></TITLE>(必须放在「文头」区块内)
文头<HEAD></HEAD>(描述性资料,像是「主题」)
文体<BODY></BODY>(文件本体)
(由浏览器控制的显示风格)
标题<H?></H?>(从1到6,有六层选择)
标题的对齐<H? ALIGN=LEFT|CENTER|RIGHT></H?>
区分<DIV></DIV>
区分的对齐<DIV ALIGN=LEFT|RIGHT|CENTER|JUSTIFY></DIV>
引文区块<BLOCKQUOTE></BLOCKQUOTE>(通常会内缩)
强调<EM></EM>(通常会以斜体显示)
特别强调<STRONG></STRONG>(通常会以加粗显示)
引文<CITE></CITE>(通常会以斜体显示)
码<CODE></CODE>(显示原始码之用)
样本<SAMP></SAMP>
键盘输入<KBD></KBD>
变数<VAR></VAR>
定义<DFN></DFN>(有些浏览器不提供)
地址<ADDRESS></ADDRESS>
大字<BIG></BIG>
小字<SMALL></SMALL>
与外观相关的标签(作者自订的表现方式)
加粗<B></B>
斜体<I></I>
底线<U></U>(尚有些浏览器不提供)
删除线<S></S>(尚有些浏览器不提供)
下标<SUB></SUB>
上标<SUP></SUP>
打字机体<TT></TT>(用单空格字型显示)
预定格式<PRE></PRE>(保留文件中空格的大小)
预定格式的宽度<PRE WIDTH=?></PRE>(以字元计算)
向中看齐<CENTER></CENTER>(文字与图片都可以)
闪耀<BLINK></BLINK>(有史以来最被嘲弄的标签)
字体大小<FONT SIZE=?></FONT>(从1到7)
改变字体大小<FONT SIZE=+|-?></FONT>
基本字体大小<BASEFONT SIZE=?>(从1到7;内定为3)
字体颜色<FONT COLOR='#$$$$$$'></FONT>
2.连结与图形
连结<A href='/URL'></A>
连结到锚点<A HREF='URL#***'></A>(如果锚点在另一个档案)
<A HREF='#***'></A>(如果锚点目前的档案)
连结到目的视框<A href='/URL' TARGET='***'></A>
设定锚点<A NAME='***'></A>
图形<IMG src='/URL'>
图形看齐方式<IMG src='/URL' ALIGN=TOP|BOTTOM|MIDDLE>
图形看齐方式<IMG src='/URL'
ALIGN=LEFT|RIGHT|TEXTTOP|ABSMIDDLE|BASELINE|ABSBOTTOM>
取代文字<IMG src='/URL' ALT='***'>(如果没有办法显示图形则显示此文字)
点选图<IMG src='/URL' ISMAP>(需要CGI程式)
N2.0点选图<IMG src='/URL' USEMAP='URL'>
N2.0地图<MAP NAME='***'></MAP>(描述地图)
N2.0段落<AREA SHAPE='RECT' COORDS=',,,' href='/URL'|NOHREF>
3.0大小<IMG src='/URL' WIDTH='?' HEIGHT='?'>(以pixels为单位) N1.0图形边缘<IMG src='/URL' BORDER=?>(以pixels为单位)
N1.0图形边缘空间<IMG src='/URL' HSPACE=? VSPACE=?>(以pixels为单位)
N1.0低解析度图形<IMG src='/URL' LOWsrc='/URL'>
N1.1用户端拉<META HTTP-EQUIV='Refresh' CONTENT='?; URL=URL'>(使用端自动更新)
N2.0内嵌物件<EMBED src='/URL'>(将物件插入页面)
N2.0内嵌物件大小<EMBED src='/URL' WIDTH='?' HEIGHT='?'>
3.分隔
段落<P>(通常是两个return)
3.0段落<P></P>(新定义成容器型标签)
3.0文字看齐方式<P ALIGN=LEFT|CENTER|RIGHT></P>
换行<BR>(一个return)
N1.0文字部份看齐方式<BR CLEAR=LEFT|RIGHT|ALL>(与图形合用时)
横线<HR>
N1.0横线对齐<HR ALIGN=LEFT|RIGHT|CENTER>
N1.0横线厚度<HR SIZE=?>(以pixels为单位)
N1.0横线宽度<HR WIDTH=?>(以pixels为单位)
N1.0横线比率宽度<HR WIDTH=%>(以页宽为100%)
N1.0实线<HR NOSHADE>(没有立体效果)
N1.0不可换行<NOBR></NOBR>(不换行)
N1.0可换行处<WBR>(如果需要,可在此断行)
列举(可以巢状列举)
无次序式列举<UL><LI></UL>(<LI>放在每一项前)
N1.0公布式列举<UL TYPE=DISC|CIRCLE|SQUARE>(定义全部的列举项)
<LI TYPE=DISC|CIRCLE|SQUARE>(定义这个及其后的列举项)
有次序式列举<OL><LI></OL>(<LI>放在每一项前)
N1.0数标型态<OL TYPE=A|a|I|i|1>(定义全部的列举项)
<LI TYPE=A|a|I|i|1>(定义这个及其后的列举项)
N1.0起始数字<OL value=?>(定义全部的列举项)
<LI value=?>(定义这个及其后的列举项)
定义式列举<DL><DT><DD></DL>(<DT>项目,<DD>定义)
表单式列举<MENU><LI></MENU>(<LI>放在每一项前)
目录式列举<DIR><LI></DIR>(<LI>放在每一项前)
背景与颜色
3.0重复排列的背景<BODY background='/URL'>
N1.1+背景颜色<BODY BGCOLOR='#$$$$$$'>(依序为红、绿、蓝)
N1.1+文字颜色<BODY TEXT='#$$$$$$'>
N1.1+连结颜色<BODY LINK='#$$$$$$'>
N1.1+看过的连结<BODY VLINK='#$$$$$$'>
N1.1使用中的连结<BODY ALINK='#$$$$$$'>
4.特殊字元(以下标签需用小写)
特别符号?;(其中?代表 ISO 8859-1的编码)
<<>>&&''
注册商标TM?
N1.0+注册商标TM?
著作权符号?
N1.0+著作权符号?
5.表单(通常需要与CGI程式配合)
定义表单<FORM ACTION='URL' METHOD=GET|POST></FORM>
N2.0上传档案<FORM ENCTYPE='multipart/form-data></FORM>
输入栏位<INPUT TYPE='TEXT|PASSWORD|CHECKBOX|RADIO|IMAGE|HIDDEN|SUBMIT|RESET'>
栏位名称<INPUT NAME='***'>
栏位内定值<INPUT value='***'>
已选定<INPUT CHECKED>(适用於checkboxes与 radio boxes)
栏位宽度<INPUT SIZE=?>(以字元数为单位)
最长字数<INPUT MAXLENGTH=?>(以字元数为单位)
下拉式选单<SELECT></SELECT>
下拉式选单名称<SELECT NAME='***'></SELECT>
选单项目数量<SELECT SIZE=?></SELECT>
多选式选单<SELECT MULTIPLE>(多选)
选项<OPTION>
内定选项<OPTION SELECTED>
文字输入区<TEXTAREA ROWS=? COLS=?></TEXTAREA>
输入区名称<TEXTAREA NAME='***'></TEXTAREA>
N2.0输入区换行方式<TEXTAREA WRAP=OFF|VIRTUAL|PHYSICAL></TEXTAREA>
6.表格
3.0定义表格<TABLE></TABLE>
3.0表格框线<TABLE BORDER></TABLE>(有或没有)
N1.1表格框线<TABLE BORDER=?></TABLE>(可以设定数值)
N1.1储存格左右留白<TABLE CELLSPACING=?>
N1.1储存格上下留白<TABLE CELLPADDING=?>
N1.1表格宽度<TABLE WIDTH=?>(以pixels为单位)
N1.1宽度比率<TABLE WIDTH=%>(页宽为100%)
3.0表格列<TR></TR>
3.0表格列内容看齐<TR ALIGN=LEFT|RIGHT|CENTER VALIGN=TOP|MIDDLE|BOTTOM>
3.0储存格<TD></TD>(须与列并用)
3.0储存格内容看齐<TD ALIGN=LEFT|RIGHT|CENTER VALIGN=TOP|MIDDLE|BOTTOM>
3.0不换行<TD NOWRAP>
N3.0储存格背景颜色<TD BGCOLOR=#$$$$$$>
3.0储存格横向连接<TD COLSPAN=?>
3.0储存格纵向连接<TD ROWSPAN=?>
N1.1储存格宽度<TD WIDTH=?>(以pixels为单位)
N1.1储存格宽度比率<TD WIDTH=%>(页宽为100%)
3.0表格标题<TH></TH>(跟<TD>一样,不过会对中并加粗)
3.0表格标题对齐<TH ALIGN=LEFT|RIGHT|CENTER VALIGN=TOP|MIDDLE|BOTTOM>
3.0表格标题不换行<TH NOWRAP>
3.0表格标题占几栏<TH COLSPAN=?>
3.0表格标题占几列<TH ROWSPAN=?>
N1.1表格标题宽度<TH WIDTH=?>(以pixels为单位)
N1.1表格标题比率宽度<TH WIDTH=%>(页宽为100%)
3.0表格抬头<CAPTION></CAPTION>
3.0表格抬头看齐<CAPTION ALIGN=TOP|BOTTOM>(在表格之上/之下)
视框(定义与控制萤幕上的特定区域)
N2.0视框格式总定义<FRAMESET></FRAMESET>(取代<BODY>)
N2.0视框行长度分配<FRAMESET ROWS=,,,></FRAMESET>(pixels或%)
N2.0视框行长度分配<FRAMESET ROWS=*></FRAMESET>(*=相对大小)
N2.0视框栏宽度分配<FRAMESET COLS=,,,></FRAMESET>(pixels或%)
N2.0视框栏宽度分配<FRAMESET COLS=*></FRAMESET>(*=相对大小)
N2.0定义个别视框<FRAME>(定义个别视框)
N2.0个别视框内容<FRAME src='/URL'>
N2.0个别视框名称<FRAME NAME='***'|_blank|_self|_parent|_top>
N2.0边缘宽度<FRAME MARGINWIDTH=?>(「左」与「右」边界)
N2.0边缘高度<FRAME MARGINHEIGHT=?>(「天顶」与「地底」边界)
N2.0卷动条<FRAME SCROLLING='YES|NO|AUTO'>
N2.0不可改变大小<FRAME NORESIZE>
N2.0无视框时的内容<NOFRAMES></NOFRAMES>(如果浏览器不提供视框功能的话)
7.杂项
说明<!--***-->(浏览器不会显示)
求html代码大全 要详细的~~
下面是常用的html代码,按字母顺序排列。希望能帮到你。祝福你,朋友!
DTD:指示在哪种 XHTML 1.0 DTD中允许该标签。S=Strict, T=Transitional, F=Frameset.
标签描述 DTD
<!--...-->定义注释。 STF
<!DOCTYPE>定义文档类型。 STF
<a>定义锚。 STF
<abbr>定义缩写。 STF
<acronym>定义只取首字母的缩写。 STF
<address>定义文档作者或拥有者的联系信息。 STF
<applet>不赞成使用。定义嵌入的 applet。 TF
<area>定义图像映射内部的区域。 STF
<b>定义粗体字。 STF
<base>定义页面中所有链接的默认地址或默认目标。 STF
<basefont>不赞成使用。定义页面中文本的默认字体、颜色或尺寸。 TF
<bdo>定义文字方向。 STF
<big>定义大号文本。 STF
<blockquote>定义长的引用。 STF
<body>定义文档的主体。 STF
<br>定义简单的折行。 STF
<button>定义按钮(push button)。 STF
<caption>定义表格标题。 STF
<center>不赞成使用。定义居中文本。 TF
<cite>定义引用(citation)。 STF
<code>定义计算机代码文本。 STF
<col>定义表格中一个或多个列的属性值。 STF
<colgroup>定义表格中供格式化的列组。 STF
<dd>定义定义列表中项目的描述。 STF
<del>定义被删除文本。 STF
<dir>不赞成使用。定义目录列表。 TF
<div>定义文档中的节。 STF
<dfn>定义定义项目。 STF
<dl>定义定义列表。 STF
<dt>定义定义列表中的项目。 STF
<em>定义强调文本。 STF
<fieldset>定义围绕表单中元素的边框。 STF
<font>不赞成使用。定义文字的字体、尺寸和颜色。 TF
<form>定义供用户输入的 HTML表单。 STF
<frame>定义框架集的窗口或框架。 F
<frameset>定义框架集。 F
<h1> to<h6>定义 HTML标题。 STF
<head>定义关于文档的信息。 STF
<hr>定义水平线。 STF
<html>定义 HTML文档。 STF
<i>定义斜体字。 STF
<iframe>定义内联框架。 TF
<img>定义图像。 STF
<input>定义输入控件。 STF
<ins>定义被插入文本。 STF
<isindex>不赞成使用。定义与文档相关的可搜索索引。 TF
<kbd>定义键盘文本。 STF
<label>定义 input元素的标注。 STF
<legend>定义 fieldset元素的标题。 STF
<li>定义列表的项目。 STF
<link>定义文档与外部资源的关系。 STF
<map>定义图像映射。 STF
<menu>不赞成使用。定义菜单列表。 TF
<meta>定义关于 HTML文档的元信息。 STF
<noframes>定义针对不支持框架的用户的替代内容。 TF
<noscript>定义针对不支持客户端脚本的用户的替代内容。 STF
<object>定义内嵌对象。 STF
<ol>定义有序列表。 STF
<optgroup>定义选择列表中相关选项的组合。 STF
<option>定义选择列表中的选项。 STF
<p>定义段落。 STF
<param>定义对象的参数。 STF
<pre>定义预格式文本。 STF
<q>定义短的引用。 STF
<s>不赞成使用。定义加删除线的文本。 TF
<samp>定义计算机代码样本。 STF
<script>定义客户端脚本。 STF
<select>定义选择列表(下拉列表)。 STF
<small>定义小号文本。 STF
<span>定义文档中的节。 STF
<strike>不赞成使用。定义加删除线文本。 TF
<strong>定义强调文本。 STF
<style>定义文档的样式信息。 STF
<sub>定义下标文本。 STF
<sup>定义上标文本。 STF
<table>定义表格。 STF
<tbody>定义表格中的主体内容。 STF
<td>定义表格中的单元。 STF
<textarea>定义多行的文本输入控件。 STF
<tfoot>定义表格中的表注内容(脚注)。 STF
<th>定义表格中的表头单元格。 STF
<thead>定义表格中的表头内容。 STF
<title>定义文档的标题。 STF
<tr>定义表格中的行。 STF
<tt>定义打字机文本。 STF
<u>不赞成使用。定义下划线文本。 TF
<ul>定义无序列表。 STF
<var>定义文本的变量部分。 STF
<xmp>不赞成使用。定义预格式文本。
好了,关于html网页制作代码大全和html网页制作代码大全图片的问题到这里结束啦,希望可以解决您的问题哈!