An element that does not need a separate closing tag with an opening tag. A self-closing element makes use of a “/” character in order to effectively close out a beginning tag enclosed.
How can you add a newline to an element's tooltip?
Please select exactly one correct alternative.
Answer
Use
Reading
No resources given.
topics: html|img, level: 100
What statement best describes the difference in purpose for the alt and title attribute for the img element?
Please select exactly one correct alternative.
Answer
The alt attribute specifies an alternate text for an ima. The "alt" text is only when the user turns off graphics or when the browser is "read out" (e.g browser for users who are visually impaired).
Image title provides additional information and follow the rules of a regular title.
Which is the correct HTML tag for the largest heading in HTML?
Please select exactly one correct alternative.
Answer
<h1> is the largest header available. <h6> is much smaller. The <head> tag contains the header text of your web page and is not displayed as content. <heading> and <head> are not valid tags.
The body part (between <body> and </body>) of an HTML page contains the visible part of the HTML document.
Reading
No resources given.
topics: html|http, level: 100
Which statements are correct?
Please select exactly one or more correct alternatives.
Answer
GET Requests data from a specified resource. POST Submits data to be processed to a specified resource. HEAD Is the same as GET but only returns HTTP headers and no document body. PUT Uploads a representation of the specified URI. DELETE Deletes the specified resource. OPTIONS Returns the HTTP methods that the server supports. CONNECT Converts the request connection to a transparent TCP/IP tunnel.
Please select exactly one or more correct alternatives.
Answer
POST requests are never cached, POST requests do not remain in the browser history, POST requests cannot be bookmarked, POST requests have no restrictions on data length.
Why should you always specify a width and height when using an
<img>
element?
Please select exactly one correct alternative.
Answer
If width and height are not specified, the page will flicker while the image loads. This is because the page will finalize it's layout after loading the image. Only then, the width and height are known to the browser.
In what frame is the URL opened using the following code fragment?
Please select exactly one correct alternative.
Answer
The URL is opened in a frame named "_new". However, since this looks like one of the standard target frame types (_blank, _self, _parent, _top), this is bad practice. If you want your URL to open in a frame with a name, you should give this frame a well distinguished name.
What does "semantic importance" mean in the context of HTML?
Please select exactly one correct alternative.
Answer
Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in webpages rather than merely to define its presentation or look.
Which of the following alternatives makes your text bold?
Please select exactly one or more correct alternatives.
Answer
"boldest" Is not a valid value for font-weight. Both "strong" and "em" adds so called "semantic importance" to the text. This is not specifically a style, but means that the text is "important".