- 1
- 2
- 3
- 4
- Next Page »
A Learning Portal from Recruitment India
The __________ element may contain not just links but also other interactive items, including the newly introduced command element.
menu
details
progress
meter
Answer with explanation
Answer: Option DExplanation
The menu tag defines a list/menu of commands. The menu tag is used for context menus, toolbars and for listing form controls and commands.
Workspace
Different meta tags are defined by changing the __________ attribute to a valid value.
content
name
http-equiv
scheme
Answer with explanation
Answer: Option BExplanation
The name attribute specifies a name for the information/value of the content attribute.
Workspace
Which element puts a text field in a page for querying document?
<dir>
<keygen>
<isiindex>
<command>
Answer with explanation
Answer: Option CExplanation
An element which exists to facilitate generation of key material is <keygen>. <isindex> is an obsolete HTML element. It puts a text field in a page for querying the document. It is deprecated as of HTML 4.1, because same behavior can be achieved with HTML form. All major browsers have now removed <isindex>. <dir> contains list of directories. Those commands that user can invoke are represented by <command>.
Workspace
Which attribute is used for data binding?
datafld
datasrc
name
mayscript
Answer with explanation
Answer: Option BExplanation
The name attribute gives name to applet. Datafld attribute specify a column name from the data source object. It is like datafld attribute. It is used for data binding under Internet Explorer 4. It indicates id of data source object that supplies data that is bound to <param> elements associated with an applet. Access to applet is given by mayscript attribute.
Workspace
HasEvent()
Navigator.userAgent
Modernizr.load
None of the mentioned
Answer with explanation
Answer: Option CExplanation
Modernizr.load is optional in your build, but if you are loading polyfills, there’s a good chance it can save you some bandwidth and boost performance a bit.
Workspace
Which of the following specifies the main content of the document?
<main>
<time>
<details>
<section>
Answer with explanation
Answer: Option AExplanation
Human readable date/time is shown by <time> element. The main content of a document is specified by <main> element. The content written inside <main> element should be unique to the document. It should not contain any content that is repeated across documents such as navigation links, copyright information, site logos, search forms. Sections in document is defined by <section> element. The additional details that the user can view or hide on demand is specified by <details> tag.
Workspace
Which of the following elements in HTML5 defines video or movie content?
audio
media
video
movie
Answer with explanation
Answer: Option CExplanation
Before HTML5, videos could only be played with a plug-in (like flash). The HTML5 video element specifies a standard way to embed a video in a web page.
Workspace
Which of the following attributes adds audio controls, like play, pause, and volume?
audio
controls
source
src
Answer with explanation
Answer: Option BExplanation
The controls attribute is a boolean attribute. When present, it specifies that audio controls should be displayed.
Workspace
The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.
strokeRect(x, y,w.h)
rotate(angle)
scale(x, y)
Answer with explanation
Answer: Option DExplanation
HTML5 canvas provides scale(x, y) method which is used to increase or decrease the units in our canvas grid.
Workspace
Semantic elements are elements which ____________.
are used to describe a page
clearly describe its meaning to the browser and the developer
do not have any meaning
describe its meaning only to the developer
Answer with explanation
Answer: Option BExplanation
clearly describe its meaning to the browser and the developer
Workspace
Which element represents a self-contained composition in the document?
<header>
<footer>
<article>
<nav>
Answer with explanation
Answer: Option CExplanation
A self-contained composition in document, application, page, or site that is intended to be independently distributable is represented by <article> element. Some of the examples are a magazine or newspaper article or a forum post, or a blog entry. <nav> element contains all the navigation links. Footer typically contains information about the author of the section, links to related documents, or copyright data. An introductory content lies in <header>.
Workspace
Which of the following can’t be the value of a clear property?
right
center
inherit
left
Answer with explanation
Answer: Option BExplanation
clear property specifies what elements can float beside cleared element and on which side. It can hold the values none, left, right, both and inherit. The inherit property inherits the clear value of its parent when setting to both no floating elements allowed on either the left and right side.
Workspace
Which one of the following is not used inside the <script> tag in Flash videos?
replace
location
version
id
Answer with explanation
Answer: Option DExplanation
There are five attributes that can be used inside the <script> tag in Flash videos namely width, height, version, location and replace. The minimum version of the Flash player needed to view the movie is specified by version. Width and Height of Flash movie are specified by width, height. The location of .swf file is specified by location.
Workspace
Which method is not used for CSS manipulation?
removeClass()
beforeClass()
css()
toggleClass()
Answer with explanation
Answer: Option BExplanation
There are several functions for CSS manipulation. Some of them are css(), removeClass(), toggleClass(), addClass(). The style attribute is returned by css() method. Classes are added by addClass() method. Classes are removed by removeClass() method. The toggling between adding and removing classes is achieved by toggleClass() method.
Workspace
Negative positions for string do not work in ______________
Opera
Safari
Chrome
Internet Explorer 8
Answer with explanation
Answer: Option DExplanation
While using slice(), substr() and substring() method we pass numbers as parameters respective to the string. E.g var tes= str.slice(-10). -10 is indicates negative position. It does not work in Internet Explorer or older versions.
Workspace
The ___________ keyword begins the declaration of attributes that an element may take. It is followed by the name of the element in question, a list of attribute definitions, and a closing.
DTD
DOCTYPE
None of the mentioned
Answer with explanation
Answer: Option CExplanation
In HTML 4.01, the !DOCTYPE declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language so that the browsers render the content correctly.
Workspace
Which property of SVG restricts the region to which paint can be applied?
animateTransform
clip-Path
linearGradient
radialGradient
Answer with explanation
Answer: Option BExplanation
A clipping path is defined with a clipPath element. A clipping path is used/referenced using the clip-path property.
Workspace
Which of the following is the attribute that is used to set a global identifier for a microdata item?
key
id
itemclass
itemid
Answer with explanation
Answer: Option DExplanation
The unique id for an element in html is specified by id attribute. Itemmid allows a vocabulary to define a global identifier for a microdata item, for example an ISBN number on a book. Use itemid on the same element as the item’s itemscope and itemtype attributes.
Workspace
Which of the following is the attribute that is used to add a name/value pair to a microdata item?
itemprop
itemref
itemscope
itemid
Answer with explanation
Answer: Option AExplanation
A boolean global attribute which specifies scope of associated metadata is itemscope. Itemmid is unique global identifier of item. To add a property to an item, the itemprop attribute is used on one of the item’s descendants. Markup without the microdata-related attributes does not have any effect on the microdata model. Itemref provides list of elements id’s with extra/additional properties in the document.
Workspace
___________ contains the navigation menu, or other navigation functionality for the page.
nav
header
section
aside
Answer with explanation
Answer: Option AExplanation
The nav element is for marking up the navigation links or other constructs (eg a search form) that will take you to different pages of the current site, or different areas of the current page.
Workspace