Docsity

HTML5 and CSS: Structuring Web Pages with Semantics and Interactivity, Exams of Nursing

Toggle sidebar
bg1
Which
HTML
structure
element
was
designed
to
enclose
Web
site
content
such
as
company
services
blogs,
images
and
videos
’
*
<header>
8
O
cfooter
e
•
<article>
0
<aside>
Jane
wants
to
develop
mobile
apps
using
the
technologies
contained
in
the
"HTML5
famy
"
Which
language
in
the
family
should
Jane
use
to
structure
and
descnbe
content
far
her
apps?
*
i
____
HTML5
B
JavaScript
C
Cascadng
Style
Sheets
(CSS)
0
Application
Programming
Interfaces
(APIs)
Explanation:
Answer
A
is
correct
HTML5,
CSS
and
JavaScript
are
sometimes
caned
the
"HTML5
famty"
or
the
"Web
development
trifecta
*
HTML
5
is
a
markup
language
used
for
structuring
and
describing
Web
page
condent
JavaScript
is
a
scripting
language
Ihat
provides
dynamic
interactive
capabilities
Io
Web
pages
CSS
is
a
stylo
sheet
language
that
provides
the
tormalting
and
hook"
of
a
Web
page
or
document
written
in
a
markup
language
The
developers
of
HTML
5
created
specific
elements
that
you
can
use
to
structure
Web
pages
Which
statement
is
true
regarding
these
HTML5
structure
elements?
*
'
__
j
The
elements
are
native
to
any
HTML5-comphant
browser
regardless
of
whether
the
browser
is
on
a
mobile
device
laptop
or
tablet
B
The
eterents
are
backward-compatible
with
older
browsers
that
may
not
support
HTML5.
C
The
elements
cannot
be
used
m
conjunction
with
CSS
to
structure
Web
pages
n
You
should
avoid
using
the
elements
when
you
create
Web
pages
unU
al
browsers
are
updated
to
be
HTML5-compiant
Explanation
:
Answer
A
is
correct
HTML5
with
CSS
provides
an
effective
and
simple
way
to
structure
Web
pages
The
developers
ol
HTML5
created
spocific
elements
Io
define
the
document
structure
these
elements
include
mheaden
<tooter
<main>
snav
«section>
sarticle>
and
<eside>
A
developer
can
structure
the
Web
page
with
these
elements
that
are
easily
iiterpreted
and
native
to
any
HTML5-comphant
browser,
regardless
ol
whether
the
browser
is
on
a
mobile
device
laptop
or
tablet
These
HTML
5
basic
structure
elements
may
or
may
not
render
in
older
browsers
Ihat
do
not
support
HTML
5,
such
as
Internet
Explorer
versions
prior
to
IE9
This
should
not
hinder
your
use
of
HTML5
structure
tags,
but
you
should
be
aware
o(
it
Why
is
it
advantageous
tar
developers
to
use
good
coding
practices
when
they
develop
Web
pages?
*
|
|
Page
content
win
render
appropriately
regardless
ot
the
browser
used
to
render
t
8
Code
will
validate
to
the
HTML5
specification
tegardless
ot
the
code
validator
used
to
validate
the
code
Deprecated
tags
will
be
interpreted
correctly
regardless
ot
the
browser
used
to
reaa
them
0
Proprietary
language
extensions
and
technologies
will
be
disabled
it
the
browser
used
to
view
the
pages
is
non-H
f
NL5-compliant
Explanation:
Answer
A
is
correct
Good
Web
page
coding
generally
involves
ensuring
that
the
content
is
rendered
appropriately
regardless
of
the
browser
used
to
render
it
To
ensure
this
type
ot
consistent,
or
tnwersal,
rendering
Web
page
developors
can
apply
certain
practices
tn
their
coding
Folow
W3C
standards
caretully,
arid
choose
one
standard
version
at
any
given
language
and
apply
that
standard
consestently
throughout
the
document
pages
or
site
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download HTML5 and CSS: Structuring Web Pages with Semantics and Interactivity and more Exams Nursing in PDF only on Docsity!

Which HTML structure element was designed to enclose Web site content such as company services blogs, images and videos’


8 O cfooter e • **** 0 ****

Jane and descnbe wants to content develop far mobile her apps? apps using the technologies contained in the "HTML5 famy " Which language in the family should Jane use to structure

  • i___ _ HTML B JavaScript C Cascadng Style Sheets (CSS) 0 Application Programming Interfaces (APIs)

Explanation: Answer A is correct

and^ HTML5, describing^ CSS^ and Web^ JavaScript page condent^ are^ sometimesJavaScript^ caned is a scripting^ the^ "HTML5 language^ famty" Ihat^ or providesthe^ "Web dynamic^ development interactive^ trifecta capabilities^ *^ HTML^5 is Io^ a Webmarkup pages^ language CSS is^ used a stylo^ for structuringsheet language that provides the tormalting and hook" of a Web page or document written in a markup language The elements? developers of HTML 5 created specific elements that you can use to structure Web pages Which statement is true regarding these HTML5 structure

  • ' __ j The elements are native to any HTML5-comphant browser regardless of whether the browser is on a mobile device laptop or tablet B The eterents are backward-compatible with older browsers that may not support HTML5. C The elements cannot be used m conjunction with CSS to structure Web pages n You should avoid using the elements when you create Web pages unU al browsers are updated to be HTML5-compiant

Explanation: Answer A is correct HTML5 structure with these CSS elements provides includean effective mheaden and simple structure snav Web «section>pages The sarticle> developers and ol HTML5 A created developer spocific can structureelements the Io defineWeb page the documentwith these elements that are easily iiterpreted and native to any HTML5-comphant browser, regardless ol whether the browser is on a mobile device laptop or tablet These This should HTML not 5 basic hinder structure your use elements of HTML5 may structure or may tags,not render but you in (^) shouldolder browsers be aware Ihat o( doit not support HTML 5, such as Internet Explorer versions prior to IE

Why is it advantageous tar developers to use good coding practices when they develop Web pages?

  • | | Page content win render appropriately regardless ot the browser used to render t 8 Code will validate to the HTML5 specification tegardless ot the code validator used to validate the code Deprecated tags will be interpreted correctly regardless ot the browser used to reaa them 0 Proprietary language extensions and technologies will be disabled it the browser used to view the pages is non-H f NL5-compliant

Explanation: Answer A is correct

Good Web page coding generally involves ensuring that the content is rendered appropriately regardless of the browser used to render it To ensure this one^ type standardot^ consistent, version^ or^ tnwersal, at any given^ rendering language^ Web and^ page apply^ developors that standard^ can^ applyconsestently^ certain throughout^ practices^ tn the^ their document^ coding^ pagesFolow orW3C site^ standards^ caretully,^ arid^ choose

You needed are ioombedding accomplish audo this? in your HTML5 page and went to speaty that the audio file should play over arid over ogam without stopping. Which attribute is *** toop-"loop- B loop="autoplay" C autoplay="loop" D autoplay="autoplay-**

Explanation: Answer A scomect

video^ The^ loop file willand play^ autoplay over and^ attnbutes over ogam^ are withoutcommon stooping^ to^ both^ theThe^ evideo autoplny="autoplay"^ element^ and^ the attnbutecaudio-^ elementspecifies^ Thethat^ theloopa video^ -^ loop wal automabcallyatinbute*^ specifies play thatimmedately^ the^ audio^ or upon loading

U| In CSS, what is the name for a selector, property and value all grouped together? A Declaration B Tag

c Structure

D | | Rule

benetit^ T^ he^ protect of using^ manager the style^ tor^ yourgude?^ Web^ development^ project^ has^ given^ you^ a^ style^ guide^ and^ urged^ you^ to^ use^ n^ to^ create^ effective^ Web^ pages^ What^ IS^ the A jTo ensure that the site has visual consistency Io create Web pages that will vandate according to the specified DTD C To pass a stylo you apply Io one element Io al Eko elements 0 To establish a herarchical relatonshp between linked, imported, embedded and inline styles

Explanation: Answer A IS comrect

A or styleheld guideImplementng or style manuala style isguide a set provides of standards unitormty for the in writingstyle and and/or formatting design withinof documents, a document edther and lor across general mudiple use or documents lor a specific Applying pubkcaition, the conventions organization specified refers to thein a aMty style guidefor styles helps that to youensure apply that to theono site element has visual Io be consistency,applied to all making like elements it easier to use and more professions in appearance style inheritance

You ate revlewing the style shoot code written by a colleague and notice several rules that are enclosed between the /" and "I characters What when you link the style sheet to a Web document?

  • 0 | The rules that are enclosed between the /- and • characters wil be ignored B All of the rules in the style sheet will be ignored except for those that are enclosed between the " and "I characters The Web document wil not open until you remove alt of the /" and " characters from the style sheet The Web document win not open in non-HTML5-compliant browsers until you enclose all rules m the style sheet between the / and ‘f characters

Explanation: Answer a is correct

If you want a particular rule in a style sheet to be ignored, you can "comment our the entry by placing it in between the r and ‘I characters

As Which a Web at the designer, following you can want you to use ensure to heap that you HTML configure elements the spacew* not around overlap each or lay HTML against etement? one another when users render your Web pages in a browser A ,__ The CSS Box Model 8 The CSS Document Objoct Model The CSS Positioning Scheme Model 0 The External CSS Class Model

Explanation: Answer A is correct

I he CSS Box Model allows designers to configure the space around each HI ML element It represents each HTML element as a rectangular box Without this surrounded box HTML by tourelements rectangular would boxesoverlap that or laycan against be configured one another to create CSS space is used and to a configureborder The the tour boxes boxes The are Box the Model content is straightforwardthe padding the Each border element and the is margin

Which version of Cascading Style Sheets uses a modularized approach that enables timelier updates to the standard? 4 C CSS 8 CSS c CSS 0 CSS

Explanation: Answer A is correct

CSS version 3 (CSSS) provides a modularized standard so that when changes need to be made to somnething in the specification only a particular module

within CSS3 must bo updated, rathor then the ontire standard This tloxibility enables more timely upgrading of the standard as a whole

How can you specify transparency for an element?

A | With the CSS3 opacity property

B With the HTML5 opacity attribute

c With the CSS3 opacity selector

0 With the HTML5 element

CSS3 allows you to create borders using a picture instead of just a line Which property is used for this purpose?

□ border image

border shadow

border-opacity

0 border dip

Explanation: Answer A is correct

The CSS3 border-image property allows you Io create a border that uses an image instead of just a line

The property overtlow to indicate property that can text be has used been to hidetrimmed text thatby displaying extends beyond an ellipsis? the boundaries ot an element Which CS53 property can be used with the overfl A |__ | text-overflow 8 text-wrap C text-trim 0 text-clip

Explanation: Answer A s correct

The CSS3 text overfow property specities whether text that overflows the containing element should be clipped or indicated with an ellipsis The text overflow property Is used in congunction wild the overflow property

Lily's dependng supervisor on the asked browser her usedto add to visual view itinterest Which to vendor the company prefix property Web site will by allow tilting her images to apply at ame slight transformation angle Lily knows when thethis pagetranstormation is viewed willin Chrome diner and Safari? *** i I -webkit-transform** 8 moz-transform

C ms transtorm

8 o transform

Explanation: Answer A is correct

The weblot prefix is used to target Chrome and Safari The -moz- prefix is used with Firefox -ms- is used with Internet Explorer and -o- is used with Opera

Which CSS3animation property requres you Io change the default value otherwise no animation wa occur? A __ The animanon-duratlon property 8 The animation property The animation-play-state property

  • The animation-delay property

Explanation: Answer a is conect

The animation-duration property specifies how long the animation wi take to complete one cycle The default is 0 seconds It no other value is specified then no animation occurs Values can be specitied in either seconds {s) or milliseconds (ms)

The outline outline of an property element? draws a line around the outsido of an element beyond the border What can you uso to create space botweon the border and the The CSS3 outtine-offset property 8 The C SS3 outbno paaoing property The CSS3 nutiine-marg^i property 0 The CSS3 outline-space property

Explanation: Answer A is correct

The CSS3 outline-onset property draws an outline beyond the border edge ( e. olfsets the outline)

in JavaScript which term descndos a specific quality of a property?

B Method c Event

o Object

Explanation: Answer A is correct

Values are the specific qualifies ot properties Fur instance the stalement color="ted assigns a value (red) to a property (color) of an object

Wtuich JavaScript method should you use If you want to specify a messoge string Io appear on your Wob pngo as il loads?

A ____ mo documont write0 method

B The alerto method The prompto method D The confirmo melhod

Explanation: Answor a is correct

You use the document wnte{) method to write the specified message stnng in the page The document write i method allows you to create text mhat ts dynamically written to the window as the script ts executed For example the code document wntef’Wedcome to my Web sdel"} will display the message in parentheses directly to the Web page as it loads Which variable data type can consist or any senes of alphanumeric characters?

  • 0 String B Number

Object

0 Boolean

Explanation: Answer A is cortect

A stnng data type is any senes or stnng of atphanumeric characters A number data type ts a numeric value used tor mathematical operations An Object

data type ts a reference to a JavaScript object A Boolean data type value is true or false

Expressions rely upon what to produce a value? n Operators B Classes c Objects

  • Methods

Explanation: Answor A s correct

An operands expression in the is process a part of An a statement operand represents that is evaluated a piece as ot a data value (I eExpressions , a value) mat rely is onmanipudated various operators in some to manner store or by evauate an operator values generally manipulating

Which JavaScript event occurs when a Web page is accessed and appears in the browser?

Which JavaScript object can be affected by the cnchange event handler as value changes?

  • i select B radio button D checkbox

Explanation: Answer A s correct

rhe onchange event handler can atfect the JavaScript select text or textarea objects the change event occurs when a user changes the value of one ot these types of form fields

In JavaScript what is the term for n named set of statements that can ;>erform n spocfic task repeatedly thiroughoxit a program as needed?

  • 0 Function B Parameter c Caling statement 0 Argument

Explanation: Answer a is correct

tn JavaScrpt, a function is a named set of statemonts that portormns a task 01 calculates a value F unctions onable you tn wio code and placo il into a singla unit procedure that can or performfunction a Anspeofic argument task repeatedlyalso called throughout a parameter, the isprogram a value (^) orA callingexpression statement containing is a statement data or code that that transfers is passed program on to executiona function to or a proceduresubroutine

the naming rules that apply to function names stipulate that a function name must begin with

  • | ■ a letter dollar sign or underscore character ® a letter or number a number or underscore character u a letter number or underscore character

Explanation: Answer A is corec

Function a dolar sign names (SI most begin with a letter underscore or dollar sign character Subsequerit characters can be letters, numbers, underscore I _ ) characters ot

Consider the following code

vor versionNumber = "3x";

Which code will convert the versionNumber vanable to the integer data type? A versionNumber = parselnt versionNumber. 10) versionNumber = versionNumber parselntO: versionNumber tolnto; D versionNumber = toint(versionNumber) Explanation: Answer A is correct The function parselntO converts a string to its integer equivalent

Which type of JavaScript error is typically a syntax error?

  • I __ I Load-time error H Run time error Logc error D Casting error

Explanation: Answer A is correct

Load commands -lime errors Logic (commonly errors are canedmathematical commpilor errors, or Interpreter casting errorsonors) errorsare typically in proper syntax command errors usageRun limo or errors errors in aro the typically structure caused ot me byscript mmpropor Casting use errors nt occur when an integer is changed into a character (or vice versa) inadvertently

Which of the following is a function of the HTML5 File API? A Create preview thumbnail images during image uploads

B Locate the position of the client system

Move files using a drop zone

o Validate HTML5 code

The HTML5 APIs can be used to create A [ epps for mobile devices databases on remote servers embedded and externa* style sheets D scnpts that send e-mail messages.

Explanation: Answer A is correct

TheHlMlS APIs can be used to create apps tor mobile devices Tor example, mobile apps for YouTube, Pandora and Linkedin useH1Ml5APts

What does the AppCach mandest me contain?

  • | A lest ot the files needed tor the Web application to work offline u The CSS used to format the Web application C Ine JavaScnipt used to provide tunctionality for trie Web applcation 0 Server information tor offline connectivity

Explanation: Answer A is correct

The AppCactwe manifest Mo contains a list ot the rosources ihat should be cached by the trowser for omine access This list can inckide links to CSS amt JavaScript riles but not the actual code

The HTML5 Drag-and-Drop API allows users to drag elements to another location on a Web page or to an external application Which attribute enable an eloment to be moved? *** __ _. draggabio-"true" 0 id-"araggable" onclicke"drag" D draggabtestyes"**

Explanation: Answer A is correct

You anchor define elemerits an element ate draggable as able to by be default dragged by setting its draggable attribute to the value "true" In most browsers, text selections, image elements and

To sand tho browsor back onie page ui the user's browsing history using th HTML 5 History API you should use which mathod?

  • | | history backo B browser back< I C history go(0) D history pushstateo

Explanation: Answer A IS correct

The (positive history number) back ormethod backward of the (negative History APInumber) sends the the speckled browser numberback one ot pagepages in m Ihe the browser history historywhere (^) theThe caurrent history page go!) methodis history sends 0o(0) theThe browser history forward pushState () method changes the URL in the browser window by adding a URL to the history stack

Which HTML5 element can you use to add security to a form tn a Web page by generating a key pair?

The the result element when a providescalcination pr-defined is performed options The that input- sort elementand nutocomrplete Is not new themselves w HTMIL

and does not ofter any encryption testures

Calculations in a Web page form are usually performed a by a script B using tire element

C with the for attnbute

n m the CSS

Explanation: Answer Asconect

Calculations resuits Tte totan aattribute web page a used form with are theusuaily «qutpuD- performed element by ato script spocity the the HTML5 IDs of the eiement that will prevent the

8 autofocus C placeholder 0 formaction

Explanation: Answer a is correct

The required attribute requires user input in the neld before the form can tie submitted The autotocus altrbute activates the sinput- held when the page loads user input The whenplaceholder the torm attnbute is submitted provides a hint to the user of the input value expected in the einput- held Tire formaction attrbute specifies where to send

Adam provide is mecreating best servicea form torto hishis customersWeb site HeAdam wants decides visitors to to use the inline site totaouavalidation specific to verity information cntical intormation and make Whchsure he of hasthe thefollowing correct is (^) anintormation example to at a held that should be vandated?

  • | 9 E-Mail Address field, for valid address format

8 Full Name field, tor correct speting

Product Mem field tor correct purchase selections

  • Comment field, to ensure input

Explanation: Answer a is correct

Are^ important the dale^ input formats^ in^ forms valid?^ that Are^ shoud all required^ be^ validated fields^ include completed?^ the^ following^ Are^ e-mad^ addresses^ in^ a^ vand^ basic^ tormat?^ Do^ the^ numeric^ fields^ contain^ numbers'!

these^ In^ a^ Web input^ form types^ he rsWhat^ creating attribute^ Sergik could^ uses Sergik^ the^ HTML5use with^ "date* the 'dale*^ and^ Femairand "emar^ input inputtypes types^ A^ co-worker to ensure^ explains mat even^ to^ Sergikolder browsers^ that^ not^ allwill^ browsers be able tomay recognze^ recognize the inputs

The autofocus attribute The requsred attribute The piacehoMer attribute

Explanation: Answer A is coned

The attribute pattern rs present attribute then is hetpful the text for inputovercoming is still required MTML5 Iobrowser match supportthe pattern issues Browsers treat any Input type they do not Support os text I! the pattern

Which statement is true regarding mobile apps? A They are always open-source programs. B They are designed for mobile device browsers. They run on specific mobile operating systems D They are always developed with HTML5.

Unlike a mobdo Wob site, a mobnte app is

A a Weo application designed for a specific mobile operating system B a Web site designed for viewing on mobile device browsers a Web sde that must be downloaded and installed on the device D a browser designed for a much smaller screen sae than desktop versions

Explanation: Answer A rs correct

A mobile app rs an application not a site ft runs on a specific mobile operating system such as Android Windows Phone or iOS Each mobile app must be downloaded desktop browsers and anestabod except (^) theyBy contrasi, are designed a mobdo tor aWeb much sdte smaller is creatod screen for viewingsize on mobile dovico browsers Mobile device bromwsoss function similarly Io

Your images Wob are dovoloprnontflund How can team you is do using tins? Rosponsavo Wob Dosign (RWD) tochniquos to dovolop Iho corrpany’s now site You aro diraclod Io onsuro that nil «DVerity that each image Ale's size is speciied using percentago values instead ot pixel values Verily that each image Ales see is specified using pixel values instead ot percentage values Create a CSS query to determine the type ot device viewing the page before loading the images Ensure that me page can only be viewed by mobile browsers which can resize pages pcoportionally

Explanation: Answer A is correct Responsive and media queries Web Design F luid (RWD)images isadapt a Web to screendesign (^) sizeapproach and do to notcreate exceed sites the that widih adapt of to the many screen different You candevices implement by using tlund grid-based images by layouts, specitying resizable a percentage mages tor limit each the (^) scopeimage ofinstead your page ot a pixel design size to (^) aMedia speciic queries range are without a CSS3 changing technique me bypage's which content you check Frameworks the type atare meda temptates or device or boderplates that is using for (^) responsivea page, and page then deskgns