总结了一些web前端面试(笔试)题分享给大家,本篇文章就先给大家分享HTML部分的笔试题(附答案),大家可以自己做做,看看能答对几个!
相关推荐:《web前端笔试题库之CSS篇》
Q1:aa983b9eb8086376f1f6481364a02e5a 是正确的HTML5标签吗?
A:是。
aa983b9eb8086376f1f6481364a02e5a 标签规定用于表单的密钥对生成器字段。当提交表单时,私钥存储在本地,公钥发送到服务器。是HTML5 标签。
Q2:71af07a0e88a1ac1ff73f855702ac153 标签是否可以改变文本方向?
A:可以。
71af07a0e88a1ac1ff73f855702ac153标签覆盖默认的文本方向。
<bdo dir=rtl>Here is some text</bdo>
Q3:下列HTML代码是否正确?
<figure>
<img src=myimage.jpg alt=My image>
<figcaption>
<p>This is my self portrait.</p>
</figcaption>
</figure>
A:正确
<figure> 标签规定独立的流内容(图像、图表、照片、代码等等)。figure 元素的内容应该与主内容相关,但如果被删除,则不应对文档流产生影响。使用<figcaption>元素为figure添加标题(caption)。
Q4:哪种情况下应该使用small标签?当你想在h1 标题后创建副标题?还是当在footer里面增加版权信息?
A:small标签一般使用场景是在版权信息和法律文本里使用,也可以在标题里使用标注附加信息(bootstrap中可见),但不可以用来创建副标题。
The HTML Small Element (
<small>) makes the text font size one size smaller (for example, from large to medium, or from small to x-small) down to the browser’s minimum font size. In HTML5, this element is repurposed to represent side-comments and small print, including copyright and legal text, independent of its styled presentation.
Q5:在一个结构良好的web网页里,多个h1标签会不利于SEO吗?
A:不影响。
According to Matt Cutts (lead of Google’s webspam team and the de facto expert on these things), using multiple <h1> tags is fine, as long as you’re not abusing it (like sticking your whole page in an <h1> and using CSS to style it back to normal size). That would likely have no effect, and might trigger a penalty, as it looks spammy.
If you have multiple headings and it would be natural to use multiple <h1>’s, then go for it.
摘自:http://www.quora.com/Does-using-multiple-h1-tags-on-a-page-affect-search-engine-rankings
Q6:如果你有一个搜索结果页面,你想高亮搜索的关键词。什么HTML 标签可以使用?
A:<mark> 标签表现高亮文本。
The HTML
<mark>Element represents highlighted text, i.e., a run of text marked for reference purpose, due to its relevance in a particular context. For example it can be used in a page showing search results to highlight every instance of the searched for word.
Q7:下列代码中scope 属性是做什么的?
<article>
<h1>Hello World</h1>
<style scoped>
p {
color: #FF0;
}
</style>
<p>This is my text</p>
</article>
<article>
<h1>This is awesome</h1>
<p>I am some other text</p>
</article>
A:scoped 属性是一个布尔属性。如果使用该属性,则样式仅仅应用到 style 元素的父元素及其子元素。
Q8:HTML5 支持块级超链接吗?例如:
<article>
<a href=#>
<h1>Hello</h1>
<p>I am some text</p>
</a>
</article>
A:支持。
HTML5中<a> 元素表现为一个超链接,支持任何行内元素和块级元素。
Q9:当下列的HTML代码加载时会触发新的HTTP请求吗?
<img src=mypic.jpg style=visibility: hidden alt=My picture>
A:会哇
Q10:当下列的HTML代码加载时会触发新的HTTP请求吗?
<div style=display: none;>
<img src=mypic.jpg alt=My photo>
</div>
A:会!
Q11:main1.css一定会在alert(‘Hello world’)被加载和编译吗?
<head>
<link href=main1.css rel=stylesheet>
<script>
alert('Hello World');
</script>
</head>
A:是!
Q12:在main2.css获取前main1一定必须被下载解析吗?
<head>
<link href=main1.css rel=stylesheet>
<link href=main2.css rel=stylesheet>
</head>
A:no!
Q13:在Paragraph 1加载后main2.css才会被加载编译吗?
<head>
<link href=main1.css rel=stylesheet>
</head>
<body>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<link href=main2.css rel=stylesheet>
</body>
A:yes!
【相关推荐:html视频教程、web前端】
以上就是web前端笔试题库之HTML篇的详细内容,更多请关注双恒网络其它相关文章!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别
9.本站默认解压密码为:www.sudo1.com
本站提供的一切软件、教程和内容信息仅限用于学习和研究目的。
不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。
本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。
如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。
我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!
云资源网 » web前端笔试题库之HTML篇
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载完但解压或打开不了?
- 你们有qq群吗怎么加入?