您的位置:首页 > Web前端 > HTML

HTML基本基础语法知识

2017-01-11 23:04 274 查看
基础框架:html    head { title   meta(charset ,content ,name="keywords" content="..." 推广)   style(css)   script(JS)  }

 body(bgcolor[背景]  text[前景文字颜色])    

<img src="" />  图片

<a href  target=''_self/_blank"> </a>  普通链接  (target里面的属性设置 当点击链接的时候是本页跳转还是跳转到新页)

"<a name="..."></a> <a href="# ..."></a>"书签式链接 ,用来进行本页面跳转的,注意#的使用就行。

<area class="" id="" href="" alt="" shape="" coods="">  热区式链接

改编字体颜色两种方式: css(对全部锁定的改变)  或者是 font(对单独的进行改变) 

字体显示形式改变:<u>[下划线] <i>[斜体] <b>[加粗] <sub>[下标] <sup>[上角标] <p>[段落]  <div>[分层web2.0的标记]

                                 <div id=" "> :分组,分块,布局

                                 <ol>  <li>...</li> <li>...</li></ol> :有序在文字前面加上序号

                                 <ul>  <li>...</li> <li>...</li> </ui>:无需,在文字前面加上小点点

                                 <table> tr  td<table>  colspan行合并   rowspan列 

                                 <select >  <optgroup label="..."> <option>  </option>  </optgroup>  </select> :下拉框实现

                                 <textarea rows="..." cols="...">  </textarea>  :  文本字段{带下拉条}

                                 <input type="hidden" value="..." />  : 隐藏字段

                                 <input type="file" name="..."  id="..."/>  : 文件域

                                 <input type="image" src="..."/>  :  图片提交按钮[button/submit] <button>按钮</button>

                                 <form  action="..." name="..." method="...">  ... </form>  :表单提交

注:在body中单独写文字的时候 ,一般都套上span(为js准备好操作)

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: