以下哪些是符合HTML5编码规范(填写序号,以中文逗号分割):____________ 1) 应当通过添加适当的注释提高代码的可读性; 2)应当确保所有HTML标签都应该成对出现; 3)应当采用代码行缩进的方式保持良好的树形结构;

动态 未结 0 126
小小草
小小草 LV1 2023年9月23日 23:20 发表
以下是符合HTML5编码规范的序号:1,2,3,4。 解析: 1)应当通过添加适当的注释提高代码的可读性; 2)应当确保所有HTML标签都应该成对出现; 3)应当采用代码行缩进的方式保持良好的树形结构; 4)应当在文档开头添加文档类型声明; 5)对文档标题和字符集可以不用书写,减小HTML体积,提高加载速度。但是这并不符合HTML5编码规范,因为HTML5规范中建议在标签中添加标签来定义文档标题,并且也建议在<head>标签中添加<meta charset="UTF-8">标签来指定字符集。</div> </div> <div style="text-align: center;margin-top: 10px"> <span data-id="24902" onclick="like_question(this)" style="font-size: 15px; color: #FFB800;cursor: pointer"> <i class="layui-icon"></i> 收藏(<span id="questionlikecount-24902">0</span>)</span> <span style="margin-left:30px;" class="copyshare"><i class="layui-icon" style="font-size: 15px; color: #1E9FFF;cursor: pointer"> 分享</i></span> </div><!--分享--> <div style="margin-top: 10px"> 相关标签: <span> <a href="/forum/?page=1&tag=%E6%99%BA%E8%83%BD%E9%97%AE%E7%AD%94" class="community-tag">智能问答</a> </span> </div><!--标签--> </div> <!-- 无数据时 --> <div class="fly-panel detail-box" id="flyReply"> 问题没解决?让AI助手帮你作答 <a href="http://chat.xinzhiai.cn" class='fly-link ai-assistant-link' target="_blank"> AI助手 </a> </div> <div class="fly-panel detail-box" id="flyReply"> <fieldset class="layui-elem-field layui-field-title" style="text-align: center;"> <legend>0个回复</legend> </fieldset> <!-- 无数据时 --> <ul class="jieda"> <li class="fly-none">消灭零回复</li> </ul> <div class="layui-form layui-form-pane"> <!--form action="/jie/reply/" method="post"--> <input type="hidden" id="question_id" value="24902"> <div class="layui-form-item layui-form-text"> <a name="comment"></a> <div class="layui-input-block"> <textarea id="comment_content" name="content" required lay-verify="required" placeholder="请输入内容" class="layui-textarea fly-editor" style="height: 150px;"></textarea> </div> </div> <div class="layui-form-item"> <input type="hidden" name="jid" value="123"> <button class="layui-btn" lay-filter="*" onclick="commentQ()">回复</button> </div> <!-- <div id="commentQBtn" style="width: 100px;height: 36px;"> <div class="vaptcha-init-main"> <div class="vaptcha-init-loading"> <a href="/" target="_blank"> <img src="https://r.vaptcha.com/public/img/vaptcha-loading.gif" /> </a> <span class="vaptcha-text">Vaptcha启动中...</span> </div> </div> </div> --> <!--/form--> </div> </div> <form class="layui-form" id="admin-panel" style="display:none"> <input style="display: none" name="id" value="24902"> <div class="layui-form-item" > <label class="layui-form-label" style="padding: 9px 0px;text-align: center">所在专栏</label> <div class="layui-input-block" style="margin-left: 80px"> <select lay-verify="required" id="column2" name="column2" > <option></option> <option value="1">提问</option> <option value="2" >分享</option> <option value="3">建议</option> <option value="4">讨论</option> <option value="6" selected="selected">动态</option> <option value="9">其它</option> </select> </div> </div> <div class="layui-form-item"> <div class="layui-inline"> <label class="layui-form-label" style="padding: 9px 0px;text-align: center">阅读权限</label> <div class="layui-input-block" style="margin-left: 80px;"> <select lay-verify="required" id="permission" name="permission"> <option value="0" selected="selected">默认,所有用户可见</option> <option value="1">LV1及以上用户可见</option> <option value="2">LV2及以上用户可见</option> <option value="3">LV3及以上用户可见</option> <option value="4">LV4及以上用户可见</option> <option value="5">LV5及以上用户可见</option> <option value="6">LV6及以上用户可见</option> <option value="10">会员专享</option> <option value="19">管理员可见</option> </select> </div> </div> </div> <div class="layui-form-item"> <button style="float: right" class="layui-btn" lay-filter="submitAdmin" lay-submit>确认修改</button> </div> </form> </div> <div class="layui-col-md4"> <div id="sticky-detail-sidebar-sq"> <dl class="fly-panel fly-list-one"> <dt class="fly-panel-title">相关帖子</dt> <dd> <a href="/p/39206">根据提供的内容,参考文档,写一份关于。中小企业为什么上ERP不成功</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39205">全面预算管理在国企经济管理结语:不可与摘要,引言重复,主要表达正文中 使用了什么方法 达到了什么目的即可。 200字</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39204">根据图中内容设计大班领域故事《小螃蟹找工作》活动教案</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39203">写个VS2017上的MFC程序 获取ring0 权限</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39202">此外,诺基亚内部的共同效率低下,各部门之间的沟通低效且缺少合作。在智能手机市场飞速发展的关键时期,无效沟通导致样品研发和</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39201">请回答上述六个问题用英文回答</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39200">javafx 想要在界面中直接展现chm</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39199">一个SAAS软件平台,如何区分好版本,从哪些维度考虑</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39198">使p指向数组a的每一个元素,编程实现利用p输出x,y,z的值以及其地址</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> <dd> <a href="/p/39197">#include&lt;stdio.h&gt; int main(){ int **p,*a[3]; i</a> <span><i class="iconfont icon-pinglun1"></i> <span>0</span></span> </dd> </dl> </div> <div class="html5plus-hide"> <!-- <div class="fly-panel"> <div class="fly-panel-title"> 广告招募哦~ </div> <div class="fly-panel-main"> <a href="https://niter.cn/p/111" target="_blank" class="fly-zanzhu" time-limit="2017.09.25-2099.01.01" style="background-color: #5FB878;">NiterForum 2.0 - 尼特网 旗舰之作</a> </div> </div> <div class="fly-panel" style=""> <div class="fly-panel-title"> 点击图片或者QQ扫码加入知识社区官方交流群 </div> <div class="fly-panel-main"> <a href="https://www.zszhan.cn/p/39" target="_blank"> <img src="/images/qunQrcode.jpg" style="max-width: 100%;" alt="layui"></a> </div> </div> <div class="fly-panel fly-link"> <h3 class="fly-panel-title">友情链接</h3> <dl class="fly-panel-main"> <dd><a href="#" th:text="${@environment.getProperty('site.main.title')}"></a><dd> 留个友链嘛,(*  ̄3)(ε ̄ *)<dd><a href="https://niter.cn/" target="_blank">NiterForum</a><dd> <dd><a href="https://www.zszhan.cn/p/39" target="_blank">官方Q群</a><dd> <dd><a href="https://github.com/yourkevin/NiterForum/" target="_blank">社区源码</a><dd> <dd><a href="https://beian.miit.gov.cn/" target="_blank" th:text="${@environment.getProperty('site.main.beian')}"></a><dd> </dl> </div> --> <!-- --> <div class="fly-footer"> <!-- <p> --> <!-- <a href="/p/14" target="_blank">关于我们</a>| --> <!-- <a href="/p/3" target="_blank">升级日志</a>| --> <!-- <a href="https://www.zszhan.cn/p/39" target="_blank">联系我们</a>| --> <!-- <script type="text/javascript" src="https://s4.cnzz.com/z_stat.php?id=1279021570&web_id=1279021570"></script> --> <!-- </p> --> <p> ©2019-2024 <a href="/" target="_blank">知识社区</a> / <a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备20024744号-1</a> /  Powered By<a href="http://www.zshub.com" target="_blank">知识站 GROUP</a></p> <!-- <p style="font-size:13px;"> --> <!-- 友情连接:<a href="https://zszhan.cn/forum" target="_blank">知识社区</a>| --> <!-- <a href="https://niter.cn" target="_blank">尼特社区</a>| --> <!-- <a href="https://www.zshub.com/" target="_blank">知识站</a>| --> <!-- <a href="https://springboot.io/" target="_blank">SpringBoot中文社区</a> --> <!-- </p> --> </div> <!-- <div class="fly-footer"> <p> <a href="/p/14" target="_blank">关于我们</a>| <a href="/p/3" target="_blank">升级日志</a>| <a href="https://www.zszhan.cn/p/39" target="_blank">联系我们</a>| <script type="text/javascript" src="https://s4.cnzz.com/z_stat.php?id=1279021570&web_id=1279021570"></script> </p> <p> ©2019-2021 <a href="/" target="_blank" th:text="${@environment.getProperty('site.main.title')}"></a> / <a href="https://beian.miit.gov.cn/" target="_blank" th:text="${@environment.getProperty('site.main.beian')}"></a> /  Powered By<a href="http://www.zshub.com" target="_blank">知识站 GROUP</a></p> <p style="font-size:13px;"> 友情连接:<a href="https://zszhan.cn/forum" target="_blank">知识社区</a>| <a href="https://niter.cn" target="_blank">尼特社区</a>| <a href="https://www.zshub.com/" target="_blank">知识站</a>| <a href="https://springboot.io/" target="_blank">SpringBoot中文社区</a> </p> </div> --> </div> </div> </div> </div> <script> function convertToMarkdown() { var text = document.getElementById('descriptionP').innerHTML; var markdownContent = marked.parse(text); document.getElementById('descriptionP').innerHTML = markdownContent; var summary = document.getElementById('summary').innerHTML; var markdownSummary = marked.parse(summary); document.getElementById('summary').innerHTML = markdownSummary; } convertToMarkdown(); // // 当DOM内容完全加载后,执行convertToMarkdown函数 // document.addEventListener('DOMContentLoaded', function() { // convertToMarkdown(); // }); </script> <script src="https://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> //var obj = document.getElementById("descriptionP"); //alert(obj.innerText);//这样就自动解析了 //obj.innerHTML = filterXSS(obj.innerText);//这样重新设置html代码为解析后的格式 //开始设置iframe高度 //document.domain = "niter.cn"; function setIframeHeight(iframe) { if (iframe) { var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow; try{ if (iframeWin.document.body) { iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight; } }catch (err) { var ua = navigator.userAgent, isWindowsPhone = /(?:Windows Phone)/.test(ua), isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone, isAndroid = /(?:Android)/.test(ua), isFireFox = /(?:Firefox)/.test(ua), isChrome = /(?:Chrome|CriOS)/.test(ua), isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)), isIPhone = /(?:iPhone)/.test(ua) && !isTablet, isPc = !isIPhone && !isAndroid && !isSymbian; if(isPc) iframe.height=460; else if(isIPhone||isAndroid) iframe.height=200; }finally { console.log(iframe.height); } } }; /*var iframes = document.getElementsByTagName("iframe"); var i; for (i = 0; i < iframes.length; i++) { setIframeHeight(iframes[i]); }*/ //iframe高度设置结束。 </script> <script src="https://v.vaptcha.com/v3.js"></script> <script type="text/javascript"> token = '--'; userIp=returnCitySN["cip"]; //var obj2=null; function commentQ() { post(userIp,token); /* if(token == '') { swal({ title: "哎哟...", text: "请先完成人机验证再提交哦~", icon: "error", button: "确认", }); }else{ post(userIp,token); } */ } /* vaptcha({ //配置参数 vid: '5ef4b40c64b42a6f8798ac07', // 验证单元id type: 'click', // 展现类型 点击式 container: '#commentQBtn', // 按钮容器,可为Element 或者 selector scene:2, //场景值02,即评论 offline_server: '/validateOffline' //离线模式服务端地址 }).then(function (vaptchaObj) { //console.log("vaptchaObj:"+vaptchaObj) //vaptchaObj.render()// 调用验证实例 vpObj 的 render 方法加载验证按钮 vaptchaObj.listen('pass', function() { //obj2=vaptchaObj; //obj2.vaptcha.token=vaptchaObj.getToken(); // 验证成功, 进行登录操作 // console.log("1:"+vaptchaObj.getToken()); //console.log("2:"+obj2.getToken()); //getCode(); token = vaptchaObj.getToken(); console.log("token:"+token); $.ajax({ type: "post", url: "/validate", ContentType: "application/json", CacheControl: "no-cache", data:{ scene:2, token:token, ip:userIp }, // dataType: "json", success: function(data) { if(data.success==1){ //成功 // token = vaptchaObj.getToken(); // console.log("token:"+token); } else if(data.success==0){ swal({ title: ""+data.msg, text: "您未能通过我们的第二次智能检测,请稍后再试或联系管理员", icon: "error", button: "确认", }); //vaptchaObj.reset(); } }, error: function(msg) { console.log(msg) } }) }) vaptchaObj.listen('close', function() { //验证弹窗关闭触发 swal({ title: "哎哟...", text: "您关闭了验证哦", icon: "error", button: "确认", }); }) vaptchaObj.render()// 调用验证实例 vaptchaObj 的 render 方法加载验证按钮 }) */ </script> <script type="text/javascript"> //addHtml5Plus(); var con = '我在知识社区找到一篇好文章《'+document.title+'》,快来戳后面的链接来围观吧!---'; function myPlusShare() { window.plusShare({ title: document.title,//应用名字或者文章标题 content: con, href: location.href,//分享出去后,点击跳转地址 thumbs: ["https://niter.cn/images/N80.png"], //分享缩略图 //pic :["https://niter.cn/images/N80.png"],//分享图片 }, function(result) { //分享回调 }); } var clipboard = new ClipboardJS('.copyshare', { text: function() { // var con = '我在凯文社区找到一篇好文章《'+document.title+'》,快来围观吧!---'+this.location.href; //alert("进来了"+document.title+this.location.href); //alert(con); if(navigator.userAgent.indexOf("Html5Plus") > -1) { //5+ 原生分享 myPlusShare(); } else { //原有wap分享实现 swal("复制成功!", "赶快去粘贴分享文章吧~", "success"); } //swal("复制成功!", "赶快去分享文章吧~", "success"); return con+location.href+' '; } }); clipboard.on('success', function(e) { console.log(e); }); clipboard.on('error', function(e) { console.log(e); }); </script> <div class="fly-footer"> <p> <a href="/p/14" target="_blank">关于我们</a>| <a href="/p/3" target="_blank">升级日志</a>| <a href="https://www.zszhan.cn/p/39" target="_blank">联系我们</a>| <!-- <script type="text/javascript" src="https://s4.cnzz.com/z_stat.php?id=1279021570&web_id=1279021570"></script> --> </p> <p> ©2019-2021 <a href="/" target="_blank">知识社区</a> / <a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备20024744号-1</a> /  Powered By<a href="http://www.zshub.com" target="_blank">知识站 GROUP</a></p> <p style="font-size:12px;"> 友情连接:<a href="https://zszhan.cn/forum" target="_blank">知识社区</a>| <a href="https://niter.cn" target="_blank">尼特社区</a>| <a href="https://www.zshub.com/" target="_blank">知识站</a>| <a href="https://springboot.io/" target="_blank">SpringBoot中文社区</a> </p> </div> <script src="/layui/layui.js"></script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?a518988404b02f79f4e7e5a6761265a7"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script type="application/javascript"> $(function() { $.ajax({ url:"/visitLog/save", type:"post", data:{"refer":document.referrer,"thisPage":location.href,"userIp":"-","cname":"--" }, async: true}); }); </script> <script src="/layui/layui.js"></script> <script> layui.cache.page = 'jie'; layui.cache.user = { name: '匿名用户' ,uid: -1 ,avatar: '/images/avatar/default.png' ,experience: 83 ,sex: '男' }; layui.config({ version: "3.0.0" ,base: '/mods/' }).extend({ fly: 'index' }).use(['fly', 'face','element', 'layer'], function(){ var $ = layui.$ ,fly = layui.fly; var element = layui.element; var layer = layui.layer; //如果你是采用模版自带的编辑器,你需要开启以下语句来解析。 $('.detail-body').each(function(){ var othis = $(this), html = othis.html(); othis.html(fly.content(html)); }); //监听折叠 element.on('collapse(sub-comments)', function(data){ layer.msg('展开状态:'+ data.show); }); }); </script> <!--script> layui.use(['element', 'layer'/*,'code'*/], function(){ var element = layui.element; var layer = layui.layer; /*layui.code({ elem: 'pre', //默认值为.layui-code height:500, about: false, }); //引用code方法 */ //监听折叠 element.on('collapse(sub-comments)', function(data){ layer.msg('展开状态:'+ data.show); }); }); </script--> </body> </html>