网页设计HTML个人笔记

版权声明: https://blog.csdn.net/weixin_41219914/article/details/84431401

                                                                                                                                                         2018.11.23

HTML

HTML 注释        <!--    -->

<pre>……</pre>预格式化标记

<marquee behavior="alternate/scroll/slide" direction=" "   loop=" " scrollamount=" " scrolldelay=" ">……</marquee>

跑马灯标记,分别为滚动方式 滚动方向 滚动次数,0为循环 滚动速度 滚动延时

<hr/>水平线  <br/>换行  <nobr/>不换行  &nbsp;空格  &ge大于  &lt小于  &divide除以  &copy  商标c  <sub>……</sub>上标  <sup>……</sup>下标

<font face size color>……</font>字体的基本设置属性

<img src=" " alt=" " title=" " align=" " width=" " height=" "/>

<map usemap="#xxx"><area shape="rect" coords="0,0,100,100" href="#" alt=" "/></map>

打开方式_self  默认打开方式,在原来的窗口或框架打来网页

_blank  在新的窗口打开网页,_parent 在父窗口或框架中打开  _top 在整个浏览器窗口载入所链接的文档,因而会删除所有框架

<embed src="" width="" height=""/>

 <table><tr><td><th><tbody><caption>

table属性 border bordercolor bgcolor background cellspacing cellpading width height align rules="rows/cols"

<form action=" "  name=" "  method=“” enctype=“"> 方法与编码方式相对应,选择什么的传输方法,生成不一样的编码

<input type="checkbox"/"text"/"password"/"radio"/"file"/"hidden"/"submit"/"reset"/"button"/"image" value="" name=""/>

<input type="radio" name="sex" value="1" checked="checked"/>

<input type="radio" name="sex" value="2" />  <!--单选与多选,列表等-->
<input type="checkbox" name="fav1" value="1"/>

<input type="checkbox" name="fav2" value="2"/>

<select size=" "><optgroup label="text" ><option value="">xxx</option></optgroup></select><!--设置size,不带下拉选项,可以不设置

<textarea name="" cols="" rows="" wrap="virtual/off/physical"> 多行文本,默认为自动换行,软换行

按钮 <input type="submit"/"image"/"reset"/"button"/>image作为提交按钮,button响应按钮

<input type="radio" name="sex" value="radiobutton" id="male/>

<label for="male">男</label><br/>

<input type="radio" name="sex" value="radiobutton" id="female/>

<label for="female">女</label><br/>

<framest><frame src=""/></framest>

<iframe></frame>插入框架

头标记<meta><link><style><script><base>

<标记名 属性名=“属性值”></标记名>

猜你喜欢

转载自blog.csdn.net/weixin_41219914/article/details/84431401
今日推荐