RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
前端HTML回顾-创新互联

标签:定义HTML文档

标签:定义文档主体

乌翠网站制作公司哪家好,找创新互联!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联从2013年开始到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联

-  标签:定义HTML标题


标签:创建水平线

 注释

标签:段落


标签:换行


HTML 链接

标签:链接

默认情况下,链接将以以下形式出现在浏览器中:

(1)href属性:来描述链接的地址

链接文本

(2)target 属性:定义被链接的文档在何处显示

例:target="_blank": 链接将在新窗口打开

(3)id属性:在一个HTML文档书签标记

例:插入ID   文字

文档中创建一个链接到ID部分  文字

创建一个链接到其它文档ID部分文字

注释: 请始终将正斜杠添加到子文件夹。

例:href="http://www.baidu.com/html/


HTML  元素

头部区域的元素标签为: , <style>, <meta>, <link>, <script>, <noscript>, and <base></p><p><title> 标签:定义了不同文档的标题</p><ul><li><p>定义了浏览器工具栏的标题</p></li><li><p>当网页添加到收藏夹时,显示在收藏夹中的标题</p></li><li><p>显示在搜索引擎结果页面的标题</p></li></ul><p><base> 标签:描述了基本的链接地址/链接目标,该标签作为HTML文档中所有的链接标签的默认链接:</p><pre><base href="http://www.baidu.com/p_w_picpaths/" target="_blank"></pre><p><link> 标签:链接到样式表(CSS)</p><pre><link rel="stylesheet" type="text/css" href="mystyle.css"></pre><p><style> 元素:直接添加CSS样式来渲染 HTML 文档</p><pre><head><style type="text/css">body {background-color:yellow}p {color:blue}</style></head></pre><p><meta> 标签:提供了元数据不显示在页面上,但会被浏览器解析。</p><p> 为搜索引擎定义关键词:</p><pre><meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript"></pre><p>为网页定义描述内容:</p><pre><meta name="description" content="免费 Web & 编程 教程"></pre><p>定义网页作者:</p><pre><meta name="author" content="Runoob"></pre><p>每30秒中刷新当前页面:</p><pre><meta http-equiv="refresh" content="30"></pre><p><script>标签:用于加载脚本文件,如: JavaScript</p><hr /><h3>HTML 图像- 图像标签( <img>)和源属性(Src)</h3><p><img> 是空标签,只包含属性,没有闭合标签。</p><pre><img src="url" alt="some_text"></pre><p>(1)src 属性: "source"源属性的值是图像的 URL 地址</p><p>(2)alt 属性:用来为图像定义一串预备的可替换的文本。</p><p>(3)height(高度) 与 width(宽度)属性:用于设置图像的高度与宽度。</p><hr /><h2>HTML 表格</h2><p><table> 标签:表格</p><p><tr> 标签:行</p><p><th> 标签:表头</p><p><td> 标签:单元格</p><p>colspan="2":链接行的两个段元格</p><p><img src="/upload/otherpic13/copycode.gif" alt="前端HTML回顾"></p><pre><table border="1">     <tr>         <th>Header 1</th>         <th>Header 2</th>     </tr>     <tr>         <td>row 1, cell 1</td>         <td>row 1, cell 2</td>     </tr>     <tr>         <td>row 2, cell 1</td>         <td>row 2, cell 2</td>     </tr></table></pre><p><img src="/upload/otherpic13/copycode.gif" alt="前端HTML回顾"></p><hr /><h2>HTML 列表</h2><p> <ul> 标签:无序列表</p><p> <ol> 标签:有序列表</p><p><li> 标签:每个列表项的开始</p><p><img src="/upload/otherpic13/copycode.gif" alt="前端HTML回顾"></p><pre><ul><li>Coffee</li><li>Milk</li></ul><ol><li>Coffee</li><li>Milk</li></ol></pre><p><img src="/upload/otherpic13/copycode.gif" alt="前端HTML回顾"></p><pre><dl>标签:自定义例表</pre><pre><dl><dt>自定义列表项</dt><dd>自定义列表项的定义<dd><dt>自定义列表项</dt><dd>自定义列表项的定义<dd></dl></pre><hr /><h3>HTML 区块</h3><p> <div> 元素:块级元素,可用于组合其他 HTML 元素的容器。</p><p> <span> 元素:内联元素,可用作文本的容器。</p><p> <table> 元素:作用是显示表格化的数据。</p><p>块级元素(block-level):在浏览器显示时,通常会以新行来开始(和结束)。例: <h2>, <p>, <ul>, <table></p><p>内联元素(inline):在显示时通常不会以新行开始。例: <b>, <td>, <a>, <img></p><hr /><h2>HTML 布局</h2><p><div>块级元素或是<table>表格化的数据</p><hr /><p></p><h2>HTML 表单和输入</h2><p><form>标签:表单</p><p><input>标签:输入</p><p>文本域(Text Fields):缺省宽度是20个字符</p><pre><form>First name: <input type="text" name="firstname"><br>Last name: <input type="text" name="lastname"></form></pre><p>密码字段:<input type="password">——密码不会显示,以星号或圆点替代</p><pre><form>Password: <input type="password" name="pwd"></form></pre><p>单选按钮:<input type="radio"></p><pre><form><input type="radio" name="sex" value="male">Male<br><input type="radio" name="sex" value="female">Female</form></pre><p>复选框:<input type="checkbox"></p><pre><form><input type="checkbox" name="vehicle" value="Bike">I have a bike<br><input type="checkbox" name="vehicle" value="Car">I have a car  </form></pre><p>提交按钮:<input type="submit"></p><pre><form name="input" action="html_form_action.php" method="get">Username: <input type="text" name="user"><input type="submit" value="Submit"></form></pre><hr /><h2>HTML 框架</h2><p><iframe>框架:在同一个浏览器窗口中显示不止一个页面。</p><p><strong>iframe语法:</strong><iframe src="<em>URL</em>"></iframe></p><p>height 和 width 属性:用来定义iframe标签的高度与宽度。——属性默认以像素为单位,</p><pre><iframe src="demo_iframe.htm" width="200" height="200"></iframe></pre><p>frameborder 属性:是否显示边框——属性值为 "0" 移除iframe的边框</p><pre><iframe src="demo_iframe.htm" frameborder="0"></iframe></pre><p>例:点击链接,链接地址页面显示在iframe框架中</p><pre><iframe src="demo_iframe.htm" name="iframe_a"></iframe><p><a href="http://www.baidu.com" target="iframe_a">baidu.com</a></p></pre><p>注:name和target名字相同。</p><p align=center>另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、<a href="https://www.cdcxhl.com/gaofang/" target="_blank">高防服务器</a>、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。</p> <br> 网页标题:前端HTML回顾-创新互联 <br> 网址分享:<a href="http://cqwzjz.cn/article/desppe.html">http://cqwzjz.cn/article/desppe.html</a> </div> <div class="hot_new"> <div class="page_title clearfix"> <h3>其他资讯</h3> </div> <div class="news_list clearfix"> <ul> <li> <a href="/article/ipshsh.html">name@example指的是什么意思</a> </li><li> <a href="/article/ipshsc.html">C语言中remove有什么用</a> </li><li> <a href="/article/ipshed.html">Linux下C/C++的文件操作open、fopen与freopen</a> </li><li> <a href="/article/ipsphc.html">C++怎么实现电话号码的字母组合</a> </li><li> <a href="/article/ipshds.html">html基础--meta标签</a> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- 底部信息 --> <div class="footer wow fadeInUp"> <div class="rowFluid"> <div class="span12"> <div class="container"> <div class="footer_content"> <div class="span4 col-xm-12"> <div class="footer_list"> <div class="span6"> <div class="bottom_logo"><img src="/Public/Home/images/ewm.jpg" alt="微信服务号二维码" /></div> </div> <div class="span6 col-xm-12"> <div class="quick_navigation"> <div class="quick_navigation_title">快速导航</div> <ul> <li><a href="http://chengdu.cdcxhl.com/" title="成都网站建设" target="_blank">成都网站建设</a></li><li><a href="http://www.xhgfhy.com/" title="犀浦防纹窗" target="_blank">犀浦防纹窗</a></li><li><a href="http://www.4006tel.net/mobile/" title="成都app开发" target="_blank">成都app开发</a></li><li><a href="http://www.mybzx.com/" title="成都木托盘" target="_blank">成都木托盘</a></li><li><a href="https://www.cdcxhl.com/app.html" title="成都app开发" target="_blank">成都app开发</a></li><li><a href="http://www.ycggtw.cn/" title="金羊影视传媒" target="_blank">金羊影视传媒</a></li><li><a href="http://www.dmvi.cn/ser/VI/" title="成都VI设计" target="_blank">成都VI设计</a></li> </ul> </div> </div> </div> </div> <div class="span4 col-xm-6 col-xs-12"> <div class="footer_list"> <div class="footer_link"> <div class="footer_link_title">友情链接</div> <ul id="frientLinks"> <a href="https://www.cdcxhl.com/" title="网站制作" target="_blank">网站制作</a> <a href="https://www.cdcxhl.com/" title="网站建设" target="_blank">网站建设</a> <a href="https://www.cdxwcx.com/tuiguang/" title="成都网络推广" target="_blank">网络推广</a> <a href="http://seo.cdkjz.cn/" title="成都网站推广" target="_blank">网站推广</a> <a href="https://www.cdcxhl.com/xiaochengx.html" title="成都微信小程序开发" target="_blank">小程序开发</a> <a href="https://www.cdcxhl.com/menu.html" title="创新互联网站栏目导航" target="_blank">网站导航</a> </ul> <div class="footer_link_title">网站建设</div> <ul id="frientLinks"> <li><a href="/">重庆大橙子建站</a></li> <li><a href="https://www.cdcxhl.com/menu.html" title="创新互联网站栏目导航" target="_blank">网站导航</a></li> </ul> </div> </div> </div> <div class="span4 col-xm-6 col-xs-12"> <div class="footer_list"> <div class="footer_cotact"> <div class="footer_cotact_title">联系方式</div> <ul> <li><span class="footer_cotact_type">企业:</span><span class="footer_cotact_content">青羊区大橙子信息咨询工作室</span></li> <li><span class="footer_cotact_type">地址:</span><span class="footer_cotact_content">成都市青羊区太升南路288号</span></li> <li><span class="footer_cotact_type">电话:</span><span class="footer_cotact_content"><a href="tel:18980820575" class="call">18980820575</a></span></li> <li><span class="footer_cotact_type">网址:</span><span class="footer_cotact_content"><a href="/" title="重庆网站建设">www.cqwzjz.cn</a></span></li> </ul> </div> </div> </div> </div> </div> <div class="copyright"> <p>公司名称:青羊区大橙子信息咨询工作室 联系电话:18980820575</p> <p><a href="http://beian.miit.gov.cn" target="_blank" rel="nofollow">网站备案号:蜀ICP备2022028542号-22</a></p> <p>重庆大橙子建站 重庆网站建设 重庆网站设计 重庆网站制作 <a href="http://www.cdxwcx.cn/" target="_blank">成都做网站</a></p> </div> </div> </div> </div> </body> </html> <script> $(".technical_support_box_z_info_box img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>