general elements and attributes Flashcards
(90 cards)
What does ‹tt› tag do in HTML5?
‹tt› is not supported in HTML5.
What does ‹summary› tag do in HTML5?
It is used to define the header of a “detail” element. It is only supported in Chrome. e.g.
‹details›
‹summary›Copyright 2000-2011.‹/summary›
‹p›ABC Company‹/p› ‹/details›
What does ‹ul› tag do in HTML5?
‹ul› tag defines an unordered list.
What does ‹wbr› tag do in HTML5?
‹wbr› tag defines a possible line-break.
What does ‹sup› tag do in HTML5?
‹sup› is used to define superscripted text. e.g. ‹sub› superscripted text goes here ‹/sub›
What does ‹xmp› tag do in HTML5?
This tag does not work in HTML5.
What does the hidden attribute do?
It is used to specify that the element is not relevant. Hidden elements are not displayed.
Which attribute is used to specify language code for the content in an element?
The lang attribute
Name the five events which apply to the ‹body› tag.
onafterprint, onbeforeprint, onebeforeonload, onblur and onfocus.
Is ‹del› tag supported in all major browsers?
The ‹del› tag defines text that has been deleted from a document and it is supported in all major web browsers.
Give an example of ‹del› tag.
‹p›My favorite car is ‹del›Mazda‹/del› ‹ins›red‹/ins›!‹/p›
What is the purpose of using ‹!DOCTYPE› in HTML5?
‹!DOCTYPE› is an instruction to the web browser which informs the browser about the version of the markup language the page is written in.
Give an example of DOCTYPE that you will use in your HTML page if you wish to refer to DTD that does not include presentational or deprecated elements.
‹!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”›
Is ‹!DOCTYPE› case sensitive?
NO, ‹!DOCTYPE› is not case sensitive.
How to you define hyperlinks in HTML?
Hyperlinks are defined using the ‹a› tag, which is used to link from one page to another.
How do you differentiate between HTML4’s ‹a› tag and HTML5’s ‹a› tag?
In HTML 4, the ‹a› tag could be either a hyperlink or an anchor. In HTML5, the ‹a› tag is always a hyperlink.
Well, it’s very simple and has been supported by most browsers for several versions, you give the anchor/bookmark an ID and target that in your link.
[h1 id=”top”]My web page[/h1]
with the ‘top of page’ link being
[a href=”#top”]Top of page[/a]
What is the purpose of anchor tag’s href attribute?
It is used to specify the destination of the target URL.
Which tag is used instead of ‹acronym› in HTML5?
The tag ‹abbr› is used instead of ‹acronym› in HTML5.
What does ‹applet› tag do in HTML5?
The ‹applet› tag is not supported in HTML5.
Which tag is used instead of ‹applet› tag in HTML5?
The ‹object› tag is used instead of ‹applet› tag in HTML5.
What does ‹audio› tag do in HTML5?
The ‹audio› tag defines sound, such as music or other audio streams.
Is ‹basefont› tag supported in HTML5?
No, ‹basefont› tag is not supported in HTML5.
Which tag replaces ‹basefont› tag in HTML5?
CSS is used instead of ‹basefont› in HTML5.
What does ‹bdo› tag do?
The ‹bdo› tag allows you to specify the text direction and override the bidirectional algorithm.