W3C 简介(查维基百科)
MDN 简介(查维基百科)
HTML 所有标签列表(查 MDN)
HTML 5 所有标签列表(查 MDN)
什么是空标签(查 MDN、博客)
一个空元素(empty element)可能是 HTML,SVG,或者 MathML 里的一个不可能存在子节点(例如内嵌的元素或者元素内的文本)的element。
HTML,SVG 和 MathML 的规范都详细定义了每个元素能包含的具体内容(define very precisely what each element can contain)。许多组合是没有任何语义含义的,比如一个 <audio> 元素嵌套在一个 <hr> 元素里。
在 HTML 中,通常在一个空元素上使用一个闭标签是无效的。例如, <input type=”text”></input> 的闭标签是无效的 HTML。
在 HTML 中有以下这些空元素:
<area><base><br><col><colgroup> when the span is present<command><embed><hr><img><input><keygen><link><meta><param><source> <track><wbr>什么是可替换标签(查 MDN、博客)
概述
CSS 里,可替换元素(replaced element)的展现不是由CSS来控制的。这些元素是一类 外观渲染独立于CSS的 外部对象。 典型的可替换元素有 <img>、 <object>、 <video> 和 表单元素,如<textarea>、 <input> 。 某些元素只在一些特殊情况下表现为可替换元素,例如 <audio> 和 <canvas> 。 通过 CSS content 属性来插入的对象 被称作 匿名可替换元素(anonymous replaced elements)。
CSS在某些情况下会对可替换元素做特殊处理,比如计算外边距和一些auto值。
需要注意的是,一部分(并非全部)可替换元素,本身具有尺寸和基线(baseline),会被像vertical-align之类的一些 CSS 属性用到。
HTML 测验学习:
1、HTML 指的是?
超文本标记语言(Hyper Text Markup Language)
2、Web 标准的制定者是
万维网联盟(W3C)
3、<h1>是最大的标题
4、<body bgcolor=”yellow”>可以添加背景颜色。
<body style=”background-color:yellow;”>也可以
5、<br>可以插入折行
6、<b>产生粗体字的 HTML 标签。
6、Choose the correct HTML element to define important text
<strong>
7、<i>产生斜体字的 HTML 标签
7、Choose the correct HTML element to define emphasized text
<em>
8、<a href=”http://www.w3school.com.cn“>W3School</a>可以产生超链接
9、<a href=”mailto:xxx@yyy”>制作电子邮件链接
10、<a href=”url” target=”_blank”>在新窗口打开链接。
11、<table><tr><td>全部都是表格标签。
12、<td align=”left”>可以使单元格中的内容进行左对齐的正确 HTML 标签。
13、<ol>产生带有数字列表符号的列表。
14、<ul>产生带有圆点列表符号的列表。
15、<input type=”checkbox”>可以产生复选框。
16、<input type=”text”>可以产生文本框。
17、<select>可以产生下拉列表
17、What is the correct HTML for making a drop-down list?
<select>
18、<textarea>可以产生文本区(textarea)。
19、<img src=”image.gif”>可以插入图像。
19、 What is the correct HTML for inserting an image?
<img src=”image.gif” alt=”MyImage”>
20、<body background=”background.gif”>可以插入背景图像。
20、What is the correct HTML for inserting a background image?
<body style=”background-image:url(background.gif)”>
21、Which character is used to indicate an end tag?
\
22、Inline elements are normally displayed without starting a new line.
True
23、How can you make a bulleted list?
<ul>
24、An <iframe> is used to display a web page within a web page.
True
25、HTML comments start with <!– and end with –>
True
26、Block elements are normally displayed without starting a new line.
False
27、Which HTML element defines the title of a document?
<title>
28、Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
alt
29、Which doctype is correct for HTML5?
<!DOCTYPE html>
30、Which HTML element is used to specify a footer for a document or section?
<footer>
31、In HTML, you can embed SVG elements directly into an HTML page.
True
32、What is the correct HTML element for playing video files?
<video>
33、What is the correct HTML element for playing audio files?
<audio>
34、The HTML global attribute, “contenteditable” is used to:
Specify whether the content of an element should be editable or not
35、In HTML, onblur and onfocus are:
Event attributes
36、Graphics defined by SVG is in which format?
XML
37、The HTML <canvas> element is used to:
draw graphics
38、In HTML, which attribute is used to specify that an input field must be filled out?
required
39、Which input type defines a slider control?
range
40、Which HTML element is used to display a scalar measurement within a range?
<meter>
41、Which HTML element defines navigation links?
<nav>
42、In HTML, what does the <aside> element define?
Content aside from the page content
43、Which HTML element is used to specify a header for a document or section?
<header>
如果想自己测试可以通过下面链接
W3schools 的 HTML 测试题(需要FQ):
如果访问不了这个链接可以尝试访问国内的山寨版
本文为本人的原创文章,著作权归本人和饥人谷所有,转载务必注明来源