logo - 刷刷题
下载APP
【单选题】

The following code snippet is a part of the style settings of a web page:<style type="text/css">.blue { color:blue }.red { color:red }</style>Now it is required to set the first h1 heading to red and the first paragraph to blue. Which of the following codes is correct? ( )

A.
<h1 id="red">the first heading</h1><p id="blue">the first paragraph</p>
B.
<h1 color:red>the first heading</h1><p color:blue>the first paragraph</p>
C.
<h1 class="red">the first heading</h1><p class="blue">the first paragraph</p>
D.
<h2 class="red">the first heading</h2><h1>the first heading</h1><p class="blue">the first paragraph</p>
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】Which of the following statements about html5 is correct? ( )

A.
HTML5 is just a simple upgrade of HTML4.
B.
All mainstream browsers support HTML5.
C.
HTML5 adds an offline caching mechanism.
D.
HTML5 is mainly optimized for the mobile side.

【多选题】(Multiple-choice question)Which of the following statements are incorrect about the <summary> tag in the <details> tag? ( )

A.
The <summary> tag does not contain the title of the details element.
B.
The <summary> tag is not a new html5 tag.
C.
The <details> tag defines a list of defined options.
D.
The <summary> tag is used with the <details> tag. When the title is visible, detailed information will be displayed when the user clicks on the title.

【单选题】Which of the following statements about new tags in html5 is wrong? ( )

A.
The <header> tag defines the header area of the document.
B.
The <footer> tag defines the footer of a section or document.
C.
The <aside> tag defines the top columncontent of the page.
D.
The <article> defines an independent content area of a page.

【多选题】(Multiple-choice question) Which of the following statements about html5 are correct? ( )

A.
Browser storage is added to HTML5 standard.
B.
HTML5 is supported by IE8 and above (including IE8).
C.
HTML5 is still in perfection.
D.
HTML5 will replace Flash in mobile devices.