1. Three of the common CSS selectors select A) by element type, id attribute, an
ID: 3559697 • Letter: 1
Question
1.
Three of the common CSS selectors select
A) by element type, id attribute, and class attribute
B) by element, header, and footer
C) div, h1, and p elements
D) h1, ul, and li elements
2.
To format a web page, you use _______________________.
3.
Which of the following is NOT a Best practice guideline for web writing?
A) Use short text for all links
B) Use more headings and subheadings
C) Use fewer words
D) Use more bulleted and numbered lists
4.
jQuery is a ______________________ library.
5.
When you use ____________________ positioning with CSS, the positioned element doesnt move in the browser window, even when you scroll.
6.
Because all web browsers do not interpret HTML and CSS the same way, a major web development issue is ______________________________ compatibility.
7.
The best way to test whether a web site works on a specific mobile device is to test it with
A) Dreamweavers simulators
B) a device emulator
C) the device itself
D) a device simulator
8.
When you _____________________ a web page, the page is processed by a program that tests whether all of the code is valid.
9.
As a best practice, you should only use the height and width attributes of an img element to specifiy
A) the size at which you want the image to be displayed after the page is rendered
B) the size at which you want the image to be displayed while the page is being rendered
C) the optimum size of the image
D) the actual size of the image
10.
The four pseudo-class selectors for links are
A) unvisited, visited, active, and inactive
B) link, active, inactive, and hover
C) link, visited, active, and hover
D) link, visited, active, and inactive
11.
To help the browser determine what media player to use when playing a media file using an element, you use the type attribute to specify the ____________________ type.
12.
When you use the Drag and Drop feature of HTML5, you need to identify the various drag-and-drop ___________________________ that need to be handled by JavaScript.
13.
The most important rule for making a web site easier to maintain is
A) use tables only for tabular information
B) keep it simple
C) use HTML for the content and CSS for formatting and page layout
D) remember that maintenance usually costs more than creation
14.
To implement the Geolocation feature of HTML5, you use ___________________________ to execute the getCurrentPosition method thats defined by the Geolocation API.
15.
To create a navigation bar with an unordered list, you must set the display property for the list items to _____________________ so the links are displayed horizontally.
16.
JavaScript is a scripting language that runs in the ___________________________.
17.
When you use the Canvas feature of HTML5, you start by coding a ___________________________ element that will hold the drawings.
18.
Including JavaScript from a/an _________________________ file works the same as if the JavaScript were in a script element in the head section.
19.
To change the left alignment of the items in an unordered list, you set the
A) left margin for the ul element
B) left padding for each li element
C) left padding for the ul element
D) left margin for each li element
20.
Which of the following can you NOT do when adding shadows to text?
A) Determine how much the shadow is blurred.
B) Set the opacity of the shadow.
C) Set the color of the shadow.
D) Set the horizontal and vertical offset.
21.
To create a link that starts an email, you code the href attribute as ________________________ followed by the email address.
22.
A _______________________ makes web sites available to other computers over a network.
23.
Which of the following statements about web storage is NOT true?
A) Local storage is retained indefinitely.
B) The data in web storage is stored in name/value pairs.
C) Session storage is erased when a user goes to another page.
D) Web storage refers to data that is stored on the users computer.
24.
To load a web page into a web browser, you can
A) type the domain name of the web page into the browsers address bar
B) click the browsers Back button
C) type just the filename of the web page into the browsers address bar
D) type the URL of the web page into the browsers address bar
25.
In a web application, the client uses a ___________________________ to interact with a web server.
Explanation / Answer
1.
A) by element type, id attribute, and class attribute.
2.
HTML
HTML or HyperText Markup Language is the standard markup language used to create and format web pages.
3.
D) Use more bulleted and numbered lists
While writing a web page it is not recommended to use more bullets and number lists because use of more bullets and number lists make page looks clumsy.
4.
cross-platform JavaScript
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. It makes creation of web page easier.
5.
Fixed
Fixed Positioning
When an image or text stayed in one place even when the page is scrolled then it is fixed positioning. Fixed position elements stay fixed in that same location irrespective of the size of the browser window. Like absolute positioned elements, fixed positioned elements are removed from the document flow and can overlap other elements of the web page. Unlike absolute positioned elements, these are not relative to parent elements.
6.
cross-browser
Cross-browser is an ability for a website, web application, HTML or client-side script to support all web browser. Cross-browser compatibility is a serious development issue because Internet Explorer and the other browsers don’t always interpret HTML, CSS, and JavaScript the same way.
7.
C) the device itself
The best way to test a website on a mobile device is to load it on a mobile device because at the end the website has to be used on the device so checking device is the best way to test website working on mobile. In general, this means posting the page or site to a live web server and then browsing to the page on the devices to test them.
8.
walkthrough
The purpose of the walkthrough is to illustrate validation, the nature of the reservation is not important for the walkthrough and the page does not actually process the reservation. It is used to check user input in a webpage.
9.
A) the size at which you want the image to be displayed after the page is rendered.
When the page is created, by specifying the length and width of the image is considered best practice because that length and width got reserved in the page dimensions and we can see the image with specified dimensions.
10.
C) link, visited, active, and hover
The selectors for each of the pseudo classes have the following forms
11.
Media
Video uses the Dirac and Speex codecs. If the browser supports Ogg, but not the specified codecs, the video will not load. If the type of attribute isn't specified, the media's type is retrieved from the server and checked to see if the browser can handle it or not, if it can't be handled, then next source is checked. If none of the specified source elements can be used, an error event is dispatched to the video element.
12.
Implementation
Drag and drop is a very common feature in HTML5. It is when you "take" an object and drag it to some other location. For example
<p draggable="true">Drag it!</p>
The ondrag event occurs when an element or text selection is being dragged.
13.
B) keep it simple
Keep the website easy and simple, keeping the website simple will help others to understand the website easily and will be easy to maintain. The complexity of the website is less. Hence, need less maintenance.
14.
getCurrentPosition()
The function returns the current position of the user.
15.
inline
An inline element does not start on a new line and only takes up as much width as necessary, by this way the links can be displayed horizontally.
16.
HTML
JavaScript is the most commonly used as a client side scripting language. JavaScript code is written into an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and browser takes care of that java script code.
17.
<canvas>
<canvas> is a HTML element which can be used to draw graphics using scripting (usually JavaScript). This is used to draw graphs, make photo composition or simple animations.
18.
separate
Import keyword is used to import the JavaScript from the separate file. The script will work as the same way as it will work on the head section of the same file.
19.
D) left margin for each li element
<li> tag will be used in front of each element in order to left align that element.
20.
A) Determine how much the shadow is blurred.
While adding shadows to the text we cannot determine how much shadow is blurred.
21.
mailto
Mailto link activates the default mail client on computer for sending an e-mail.
The basic code to create an email link in HTML looks like this:
<a href="mailto:mail@example.com">Mail</a>
22.
Server
A server is a device or computer program that provides services to other programs and devices (commonly known as clients). The purpose of a servers is to share data and resources and to distribute work among clients.
23.
D) Web storage refers to data that is stored on the user’s computer
Web storage does not refer the data that is stored on the user’s computer. Web storage can store any data from anywhere, it can be phone, tab etc. Web Storage is the universal storage system it is not specific to certain computers or devices.
24.
D) type the URL of the web page into the browser’s address bar.
In order to load a web page into web browser just type the URL in the web browser address bar the page get loaded in the web browser.
25.
Network
A network is required in order to interact with each other. A client can able to interact with the web server only when they are connected with some sort of network otherwise, they will not able to interact.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.