HTML Quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which attribute for, and which attribute for

* <script src="script/jquery.js"></script> *The "type" attribute is no longer required in HTML5 document

What is the correct HTML5 element for playing audio and video files? To pass the HTML validation, which tag and attribute should always be used under the tag?

*<audio> <source src="media/xxx.mp3″ /> <source src="media/xxx.ogg"/> </audio> *<video width="420" height="315" controls> <source src="media/xxx.mp4″ type="video/mp4" /> <source src="media/xxx.webm" type="video/webm" /> <source src="media/xxx.ogg" type="video/ogg" /> </video>

Please circle the correct HTML 5 document tag.

1. <iDOCTYPE HTML5> 2. <iDOCTYPE HTML PUBLIC "-//W3C//DTD HTML5.0//EN"> 3. <iDOCTYPE html> 4. <iDOCTYPE html PUBLIC "-//W3C//DTD XHTML1.1//EN">

The <head> tag is the container tag containing all head elements that describes meta data; such as:

1. <title></title> 2. <meta> 3. <link> 4. <script>

Please list at least three obsolete HTML tags.

<font></font> <center></center> <table></table> <frame></frame>

To pass the HTML validation, which tag should always be used under the <section> tag and <article> tag?

<h1>-<h6>

Please list five most important HTML tags of an HTML document, and indicate the beginning tag and the ending tag of an HTML document.

<html></html> <title></title> <head></head> <body></body> <div></div>

The <img> defines an image in an HTML page. It has two required attributes. Please indicate both of them.

<img src="image/img-1.jpg" alt="img-1″>

Which tag displays the comment text in the code view and source code but hides the comment in browser window.

Comment tag: <!-xxx-> The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.

Please list at least 10 most common HTML tags.

HTML is a very simple markup language. Even though there are close to 100 tags in HTML5, you usually only end up using a handful 99% of the time. Let's list the 18 most common HTML tags for creating a web page: <html></html> <head></head> <title><title> <body></body> <b></b> <p></p> <i></i> <br> <hr> <h1></h1>-<h6></h6> <ul></ul> / <li></li> <a></a> <img> <div></div> <nav></nav> <header></header> <footer></footer> <section></section>

Please indicate at least one difference between HTML4.01 and HTML5.

The "align" attribute is not supported in HTML5. Use CSS to align elements.

Please talk about the usage of <a> tag

The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. By default, links will appear as follows in all browsers: -An unvisited link is underlined and blue -A visited link is underlined and purple -An active link is underlined and red

Please explain the usage of the heading tags, and list all heading tags.

The <h1> to <h6> tags are used to define HTML headings. The <h1> tag defines the most important heading. The <h6> defines the least important heading.

The <hr> tag is used to define a thematic change in the content. Please further explain the definition and usage of the tag.

The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic). It creates a horizontal line based on a width of the browser window or a specified measurement. The <hr> element is used to separate content (or define a change) in an HTML page.

Which tag displays its contents at the top of the browser window but not inside window itself?

The <title> tag defines a title for your HTML document. It is required in all HTML documents. The <title> element: -defines a title in the browser toolbar -provides a title for the page when it is added to favorites -displays a title for the page in search-engine results The <title> tag displays its contents at the top of the browser window but not inside window itself.

Which color mode is used in web design when you design a web page? When writing an HTML document, which color is used to identify the page body's background color and text color?

The color mode of RGB is used for designing a web page and other screen based designs. In an HTML document, the six-digit hexadecimal color is used to identify the page body's background color and text color. For example, "#FFFFFF" is used to identify the black color, and "#000000" is used to identify the white color.


Set pelajaran terkait

Chapter 4: the tissue level of organization

View Set

Sole Chapter 12 Advanced, Critical Care Midterm ch 1-12 #2

View Set

Autonomic Nervous System: Neurotransmitters and Receptors

View Set

JBL TestPrep Questions for NREMT

View Set

LAFD 15-04: LP #442 Department Organization

View Set

Final Review: Terry Reynold's 500 Questions

View Set

CIS 100 Chapter 7 :End - of - Chapter Quiz

View Set