学习中值得了解html网页的基本结构(总结)

html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">

之前的文章《HTML如何制作一个简单的单页布局(代码分享)》中,给大家介绍了怎样使用HTML制作简单的单页布局。下面本篇文章带大家了解一下html网页的基本结构,有需要的朋友可以参考一下,希望对你们有所助。

学习中值得了解html网页的基本结构(总结)

HTML 是用来描述网页的一种语言

我们去制作一个html页面,html里面所有的东西都叫做标签<html>html> 基本上跟这个人的构造是一样。先有个脑袋叫做...指编辑器的一个提示的一个好处,可以写这个文件的名字。

代码示例

<!DOCTYPE html>
<html>
<head>
<title>练习册</title>
</head>
<body>
how are you?
</body>
</html>

1、html> 声明

HTML文档

2、<html> 元素是 HTML 页面的根元素

<html> 标签开始,到 html> 标签结束,根元素的作用就是告诉浏览器。

3、 元素包含了文档的元

元素与 元素不同,它的内容不会在浏览器中显示,它的作用是保存页面的一些元数据。

4、 元素描述了文档的标题</strong></p><p>可以定义文档的标题</p><p><strong>5、<body> 元素包含了可见的页面内容</strong></p><p>网页里面显示的内容,比如:文本、超链接、图像、表格和列表等。</p><p><code><title></code> 元素代码示例</p><pre><title>练习册</title></pre><p>代码效果图<br></p><p><img src="/Uploads/news/56c370a46b72fc1de0aa9cd5a2022662/1628584181694590.jpg" title="1628584181694590.jpg" alt="01.jpg"></p><p>推荐学习:<a href="/tag-news-name-Html-p-1.html">Html</a>视频教程</p> <p>以上就是学习中值得了解<a href="/tag-news-name-html-p-1.html">html</a>网页的基本结构(总结)的详细内容,更多请关注www.sxiaw.com其它相关文章!</p> <button type="button" class="ask_text test-iframe-handle"> </button> </div> </article> <aside class="swnetnews"> <div class="lis"> <span><i>推荐内容</i></span> <ul> <li><a href="/doc/860.html" title="读取XML为行记录" target="_blank">读取XML为行记录</a></li><li><a href="/doc/9400.html" title="如何安装无线网卡驱动" target="_blank">如何安装无线网卡驱动</a></li><li><a href="/doc/4288.html" title="如何在Windows和Linux等环境中安装Gin" target="_blank">如何在Windows和Linux等环境中安装Gin</a></li><li><a href="/doc/2461.html" title="聊聊golang的几种框架" target="_blank">聊聊golang的几种框架</a></li><li><a href="/doc/10360.html" title="PHP安全编码总结(经验分享)" target="_blank">PHP安全编码总结(经验分享)</a></li><li><a href="/doc/6159.html" title="PHP中PDO::setAttribute的深度解析" target="_blank">PHP中PDO::setAttribute的深度解析</a></li><li><a href="/doc/4538.html" title="详解PHP底层运行机制与工作原理" target="_blank">详解PHP底层运行机制与工作原理</a></li><li><a href="/doc/3151.html" title="两分钟带你了解PHP中的运算符" target="_blank">两分钟带你了解PHP中的运算符</a></li><li><a href="/doc/6570.html" title="BIOS中找不到U盘启动项怎么办" target="_blank">BIOS中找不到U盘启动项怎么办</a></li><li><a href="/doc/4976.html" title="win7升级到win10的方法" target="_blank">win7升级到win10的方法</a></li> </ul> </div> </aside> </main> <script> // first, find all the div.code blocks document.querySelectorAll('pre').forEach(el => { // then highlight each hljs.highlightElement(el); hljs.lineNumbersBlock(el); }); </script> <link rel="stylesheet" type="text/css" href="/kan/css/basezb.css"> <script type="text/javascript" src="/kan/js/read.js"></script> <div style="display:none"> <div class="login-box" id="login-dialog"> <div class="login-top"><a rel="nofollow" id="login1" onclick="setTab('login',1,2);" >登录</a></div> <div class="login-form" id="nav-signin"> <!-- <div class="login-ico"><a rel="nofollow" class="qq" id="qqlogin" target="_blank" href="/user-center-qqlogin.html"> QQ </a></div> --> <div class="login-box-form" id="con_login_1"> <form id="loginform" action="/user-center-login.html" method="post" onsubmit="return false;"> <p class="int-text"> <input class="email" id="username" name="username" type="text" value="用户名或Email" onfocus="if(this.value=='用户名或Email'){this.value='';}" onblur="if(this.value==''){this.value='用户名或Email';};" ></p> <p class="int-text"> <input class="password1" type="password" id="password" name="password" value="******" onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';" > </p> <p class="int-info"> <label class="ui-label"> </label> <label for="agreement" class="ui-label-checkbox"> <input type="checkbox" value="" name="cookietime" id="cookietime" checked="checked" value="2592000"> <input type="hidden" name="notforward" id="notforward" value="1"> <input type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label> <a rel="nofollow" class="aright" href="/user-center-forgetpwd.html" target="_blank"> 忘记密码? </a></p> <p class="int-btn"><a rel="nofollow" id="loginbt" class="loginbtn"><span>登录</span></a></p> </form> </div> </div> </div> </div> </div> <script type="text/javascript" src="/kan/js/foot_js.js"></script> <div id="footer"> <div class="w1200"> <p class="tips_text">本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。</p> <p class="tips_text">Copyright © 2004-2018 https://www.sxiaw.com/. All Rights Reserved.<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?fa236be8ec7680639fbd4ee307fd0c69"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <a href="http://beian.miit.gov.cn/" target="_blank">津ICP备2023001793号-1</a></p> </div> </div> </body> </html>