HTML基础知识入门

HTML基础知识入门

ID:44208964

大小:342.38 KB

页数:16页

时间:2019-10-19

HTML基础知识入门_第1页
HTML基础知识入门_第2页
HTML基础知识入门_第3页
HTML基础知识入门_第4页
HTML基础知识入门_第5页
资源描述:

《HTML基础知识入门》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、HTML学习总结HTML介绍2基础标签3基本标签3超链接标签3表单元素标签3文本标签4列农标签4表格标签6框架标签7其他标签8关于样式表10样式表使用的三种方式10样式表语法:10样式属性:10字体局性10颜色和背景属性10文本属性11框和布局属性12歹U表属性12表格属性13分类属性13DIV+CSS15采用DIV+CSS布局技术的好处与坏处15HTML介绍超文本标记语言(英文:HyperTextMarkupLanguage,HTML)是为"网页创建和其它可在网页浏览器中看到的信息”设计的一种标记语言。HTML被用来结构化信息——例如标题、段落和列表等等,也

2、可用來在一定程度上描述文档的外观和语义。由蒂姆•伯纳斯■李给出原始定义,由IETF用简化的SGML(标准通用标记语言)语法进行进一步发展的HTML,后來成为国际标准,山万维网联盟(W3C)维护。包含HTML内容的文件最常用的扩展名是.html,但是像DOS这样的旧操作系统限制扩展名为最多3个字符,所以.hun扩展名也被使用。虽然现在使用的比较少一些了,但是.htm扩展名仍1口普遍被支持。编者可以用任何文本编辑器或所见即所得的HTML编辑器来编辑HTML文件。基础标签所有标签都支持的属性:id,class,title9Style,diilang,xml:lan

3、g;另外基本上所有的控件都支持事件触发;基本标签<body>eg:网页的基本标签1vhtml>•J<head><title>webpagetit〕ev/ti</head><body>-■helloworld!hellowebpage!</body>■I</h■超链接标签va>用于创建超链接和锚点超链接用于将网页链接到其他文档页面,锚点主要是在较长页面屮添加标记,便于定位,只需要点击相应的链接即可定位到相应位置egl•用va>创建超链接:<ahref=z,http://www・baiud・corn"〉百度</a><ahref</p><p>4、=z,data/table.人51">显示表格</3>eg2•用va>创建锚点■£3</p><p>5、<aname=,,top//><div>*****<ahref=#top>回顶端</a>表单元素标签表单是一个包含表单元素的区域。vfoi*m>内部包含:<inputxtextareaxselect>(一般情况下form可省略,通过onclick岀发事件来进行相应的操作)<input>通过type参数来设管•为哪一个类型的控件:type—'buttorT按钮type=MtextM文本域typc=”radio”单-选按饥type=,,checkboxM复选框type二''sub</p><p>6、mit"<formname=l,input11action=Mhtml_form_action・asp11method=ngetH>Username:<inputtype=,,textnname=wusern/><inputtype=nsubmitnvalue=nSubmitn/>I</form>■■<textarea>文本区域标签,初建一个文本区域,可以用于编写文字<select>卜•拉列表,跟voption>—起创建卜•拉列表eg•创建一个包含三个成员的下拉列表:tI<select><optionvalue=,/Bl,,x/option><optionva</p><p>7、lue=,/B2,,x/option><optionvalue=,,B3,,x/option>I</select>文本标签vlabe卜主要用于为<input>标签定义标注,可以通过点击标签来触发inpu(的事件;<bigxsmall>用于定义人字体和小字体文字,比正常字体偏人或偏小,不建议使用;<supxsub>用于设置上标和下标,字体大小有正常文本一半人小,分别位于上半侧和下半侧;<pxbrxhr>分别为段落标签,换行标签,水平分割线标签vpreA让文字按原来的板式显示;vdiv>分区标签,div+CSS布局屮用处很大,其他地方没太多用处;<hl>~~<11</p><p>8、6>标题标签<img>图片标签,用于为网页添加标签;列表标签vol>有序列表,用于创建有序列表vul>无序列表,用于创建无序列表vli>标签eg.有序列表创建:■i<ol><li>dog</li><li>cat</li>I</ol><•1•••••w■••••■•••••••■»■••••■••••••■••*•••«*•••••••••••»••••••••无序列表创建■8I<ul>■■<li>red</li>■<li>blue</li>I</ul>I自定义列表标签<dlxdtxdd>通过与样式表(CSS)里面的list-style属性来创建个性化的列表eg</p><p style="height:0px;padding:0;margin:0;overflow:hidden">9、.个人制作的一个自定义的列表:aII<</p> </div> <div class="mt-3 bg-white"> <div class="d-lg-block d-none px-3 px-lg-4 py-3 border-bottom text-center font-18"> 当前文档最多预览五页,下载文档查看全文 </div> <div class="detail-fixed-feature d-none d-lg-block" id="detailFixedFeatureBox"> <div class="px-3 px-lg-4 py-3 d-flex align-items-center justify-content-between fixed-feature-box" id="detailFixedFeature"> <div class="d-lg-flex d-none align-items-center"> <div> <a class="btn btn-outline-danger article-state" href="javascript:;" data-id="44208964" data-code="438274" data-title="HTML基础知识入门"> <span>侵权申诉</span> </a> <button type="button" class="btn btn-outline-secondary with-light ml-2" data-toggle="modal" data-target="#reportModal" data-id="44208964"><span>举报</span></button> </div> <nav class="d-flex align-items-center ml-4" id="anchorPoint"> <a href="javascript:;" class="btn btn-light anchor-pre px-2"><i class="iconfont text-muted"></i></a> <div class="text-muted mb-0 pre-point-list" id="prePointList"> <a class="px-2 active nav-link" href="#anchorImg0">1</a> <a class="px-2 nav-link" href="#anchorImg1">1</a> <a class="px-2 nav-link" href="#anchorImg2">2</a> <a class="px-2 nav-link" href="#anchorImg3">3</a> <a class="px-2 nav-link" href="#anchorImg4">4</a> <a class="px-2 nav-link" href="#anchorImg5">5</a> / <span class="px-2" id="prePageNums">16</span> </div> <a href="javascript:;" class="btn btn-light anchor-next px-2"><i class="iconfont text-muted"></i></a> </nav> </div> <div class="d-flex align-items-center"> <p class="d-lg-block d-none font-14 text-black-50 mb-0 mr-2">此文档下载收益归作者所有</p> <button class="btn btn-danger detail-download-btn px-3 ml-0 font-16" data-btn="downloadfile" style="width:128px;height:40px;" data-id="44208964" data-price="2000" data-size="342.38 KB" data-page="16页" data-type="doc" data-binddown="true" data-isold="new_content" data-vip="0" data-title="HTML基础知识入门">下载文档</button> </div> </div> </div> </div> <div class="d-block d-lg-none px-3 px-lg-4 py-3 border-bottom text-center font-14" style="color:#999">当前文档最多预览五页,下载文档查看全文</div> <button class="btn d-block w-100 d-lg-none btn-danger detail-download-btn px-3 ml-0 font-16" data-btn="downloadfile" data-id="44208964" data-price="2000" data-size="342.38 KB" data-page="16页" data-type="doc" data-binddown="true" data-isold="new_content" data-vip="0" data-title="HTML基础知识入门">点击下载本文档 </button> </div> <div class="px-3 px-lg-4 py-3 bg-white mt-3"> <ul class="nav custom-tab border-bottom" id="myTab" role="tablist"> <li class="nav-item" role="presentation"> <a class="nav-link active px-0 mr-4 font-16 font-weight-light pb-3" id="tips-tab" data-toggle="tab" href="#showTips" role="tab" aria-controls="showTips" aria-selected="true">版权提示</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link px-0 pb-3 font-16 font-weight-light text-black-50" href="/d-44208964.html" >下载文档</a> </li> <dl class="flex-grow-1 mb-0 d-lg-none"> <li class="ml-3 float-right d-lg-none"> <button type="button" class="btn btn-light" data-toggle="modal" data-target="#reportModal" data-id="44208964"><span>举报</span></button> </li> </dl> </ul> <div class="tab-content with-content pt-3" id="myTabContent"> <div class="tab-pane fade show active font-14" id="showTips" role="tabpanel" aria-labelledby="showTips-tab"> 温馨提示: <br> 1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。<br> 2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。<br> 3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。<br> 4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。 <br> </div> </div> </div> </div> <div class="detail-sidebar d-none d-lg-block"> <div id="columnDetailSiderRight"> <div class="detail-yourlike mt-0 pb-2" id="relativeArticle"> <div class="border-bottom py-2 d-flex align-items-center justify-content-between"> <h5 class="font-16">相关文章</h5> <a class="font-14 hover-letter-spacing" href="/ucenter/search/index.html?text=HTML基础知识入门" target="_blank" rel="nofollow">更多<i class="iconfont font-12 pl-1"></i></a> </div> <ul class="font-14 like-list"> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-25824014.html" title="html入门教程" target="_blank">html<span class="text-danger">入</span><span class="text-danger">门</span>教程</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-32022083.html" title="HTML基础知识入门.doc" target="_blank"><span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span><span class="text-danger">基</span><span class="text-danger">础</span><span class="text-danger">知</span><span class="text-danger">识</span><span class="text-danger">入</span><span class="text-danger">门</span>.doc</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-32290322.html" title="HTML入门教材" target="_blank"><span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span><span class="text-danger">入</span><span class="text-danger">门</span>教材</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-36175911.html" title="2 . html入门例子" target="_blank">2.html<span class="text-danger">入</span><span class="text-danger">门</span>例子</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-ppt" href="/p-37497387.html" title="HTML语言认识入门" target="_blank"><span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span>语言认<span class="text-danger">识</span><span class="text-danger">入</span><span class="text-danger">门</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-38344267.html" title="html&amp;css入门基础知识点" target="_blank">html&amp;css<span class="text-danger">入</span><span class="text-danger">门</span><span class="text-danger">基</span><span class="text-danger">础</span><span class="text-danger">知</span><span class="text-danger">识</span>点</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-38759062.html" title="HTML表格入门" target="_blank"><span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span>表格<span class="text-danger">入</span><span class="text-danger">门</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-docx" href="/p-45755177.html" title="CSS基础入门教程第章HTML基础知识" target="_blank">CSS<span class="text-danger">基</span><span class="text-danger">础</span><span class="text-danger">入</span><span class="text-danger">门</span>教程第章<span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span><span class="text-danger">基</span><span class="text-danger">础</span><span class="text-danger">知</span><span class="text-danger">识</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-ppt" href="/p-48599909.html" title="HTML入门.ppt" target="_blank"><span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span><span class="text-danger">入</span><span class="text-danger">门</span>.ppt</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-ppt" href="/p-49202276.html" title="HTML语言入门.ppt" target="_blank"><span class="text-danger">H</span><span class="text-danger">T</span><span class="text-danger">M</span><span class="text-danger">L</span>语言<span class="text-danger">入</span><span class="text-danger">门</span>.ppt</a> </li> </ul> </div> <div class="detail-yourlike pb-2"> <div class="border-bottom py-2"> <h5 class="font-16">相关标签</h5> </div> <ul class="font-14 like-list d-flex flex-wrap"> <a class="search-tag" href="/tags/540508/" target="_blank">基础知识</a> <a class="search-tag" href="/tags/1565921/" target="_blank">入门</a> </ul> </div> <script src="/d/js/acmsd/thea1.js"></script> </div> </div> </div> <footer> <div class="container d-none d-lg-block mb-4"> <div class="d-flex justify-content-between footer-nav"> <ul class="d-flex foot-nav"> <li> <h5>常见问题</h5> <a class=text-decoration-none href=/help/wenti/upload/ target=_blank> 关于上传 </a><a class=text-decoration-none href=/help/wenti/xiazai/ target=_blank> 关于下载 </a><a class=text-decoration-none href=/help/wenti/qinquan/ target=_blank> 关于侵权 </a><a class=text-decoration-none href=/help/wenti/fenxaing/ target=_blank> 分享文档赚钱教程 </a> </li> <li> <h5>关于我们</h5> <a class=text-decoration-none href=/help/about/wzjs/ target=_blank> 网站介绍 </a><a class=text-decoration-none href=/help/about/gywm/ target=_blank> 关于我们 </a><a class=text-decoration-none href=/help/about/lxwm/ target=_blank> 联系我们 </a> </li> <li> <h5>版权问题</h5> <a class=text-decoration-none href=/help/banquan/bqsm/ target=_blank> 版权声明 </a><a class=text-decoration-none href=/help/banquan/qqcl/ target=_blank> 侵权处理 </a><a class=text-decoration-none href=/help/banquan/mzsm/ target=_blank> 免责声明 </a> </li> <li> <h5>协议条款</h5> <a class=text-decoration-none href=/help/xieyi/yhxy/ target=_blank> 用户协议 </a><a class=text-decoration-none href=/help/xieyi/fwtk/ target=_blank> 用户服务条款 </a><a class=text-decoration-none href=/help/xieyi/ysbh/ target=_blank> 用户隐私保护 </a> </li> <li> <h5>网站导航</h5> <a class="text-decoration-none help-nav-item" href="/sitemaps.xml" data-name="网站地图" target="_blank">网站地图</a> <a class="text-decoration-none help-nav-item" href="/list.html" data-name="全部分类" target="_blank">全部分类</a> <a class="text-decoration-none help-nav-item" href="/sitemaps/index.html" data-name="资源地图" target="_blank">资源地图</a> </li> </ul> <div class="foot-qrcode d-flex"> <div> <div class="subsitute-bg"><img src="https://www.wenku365.com/d/file/2022/07-08/f23df57d987ef7ad9acb33fe5abf9854.jpg"></div> <p>关注公众号<br></p> </div> </div> </div> </div> <div class="footer-copyright"> <p><a href="/" target="_blank">天天文库</a>站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有【成交的100%(原创)】。</p> <p>本站是网络服务平台方,若您的权利被侵害,侵权客服QQ:3074922707 欢迎举报。</p> <p>Copyright 2004-2021 <a href="https://www.wenku365.com/" target="_blank">wenku365.com</a> All Rights Reserved <a href="https://beian.miit.gov.cn/#/Integrated/index" rel="nofollow" target="_blank">闽ICP备15016911号-5 </a></p> <p>闽公网安备 <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35052402000320" rel="nofollow" target="_blank">35052402000320</a></p> <p> <a href="https://www.wenku365.com/zt.html" target="_blank">专题文集</a> <a href="https://www.wenku365.com/zt-90007.html" target="_blank">丨职业培训</a> <a href="https://www.wenku365.com/zt-90005.html" target="_blank">丨实用范文</a> <a href="https://www.wenku365.com/zt-90010.html" target="_blank">丨商业材料</a> <a href="https://www.wenku365.com/zt-90013.html" target="_blank">丨合同协议</a> <a href="https://www.wenku365.com/zt-90009.html" target="_blank">丨PPT专题</a></p> </div> </footer> <script src="//static.wenku365.com/wenku365/js/global.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/clipboard.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/jquery.treeview.js?"></script> <script src="//static.wenku365.com/wenku365/js/jquery.share.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/common.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/downloadFile.js?"></script> <script src="//static.wenku365.com/wenku365/js/loginWindow.js?"></script> <script src="//static.wenku365.com/wenku365/js/windowRecharge.js?"></script> <script src="//static.wenku365.com/wenku365/js/viewer.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/detail.js?"></script> <!-- 2023-05-07 10:31:30 --> </body> </html>