











































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































































HTML5 |APIs |can |be |used |to: A) |determine |how |to |display |HTML |elements |in |your |Web |pages. B) |call |another |location |in |the |Web |page |or |a |separate |Web |page |when |the |API |is |selected. C) |provide |a |development |environment |that |enables |the |seamless |use |of |proprietary |browser |plug-ins. D) |create |apps |for |mobile |devices. |- | |correct |answers |create |apps |for |mobile |devices. HTML5 |has |introduced |specific |elements |to |structure |Web |pages. |In |which |structure |element |should |you |include |hypertext |menus |to |access |various |pages |of |the |Web |site? A) |The | |structure |element B) |The | |structure |element C) |The | |structure |element D) |The | |structure |element |- | |correct |answers |The | |structure |element What |is |an |advantage |of |using |HTML5 |APIs |when |designing |Web |pages |for |mobile |devices? A) |HTML5 |APIs |use |fewer |resources |than |a |proprietary |browser |plug-in |does, |such |as |battery |power |and |CPU |memory. B) |HTML5 |APIs |streamline |the |application |of |proprietary |browser |plug-ins |when |plug-ins |are |included |in |Web |pages |designed |for |mobile |devices. C) |HTML5 |APIs |make |Web |pages |non-responsive |to |varying |user |screen |sizes, |thereby |saving |battery |power |and |CPU |memory.
D) |HTML5 |APIs |eliminate |the |need |for |Cascading |Style |Sheets, |thereby |saving |battery |power |and |CPU |memory. |- | |correct |answers |HTML5 |APIs |use |fewer |resources |than |a |proprietary |browser |plug-in |does, |such |as |battery |power |and |CPU |memory. Code |validation |is |the |process |of: A) |creating |code |that |responds |to |user |screen |size. B) |accessing |another |point |in |a |Web |page |or |separate |Web |page. C) |determining |how |to |display |HTML |elements |in |your |Web |page. D) |checking |your |code |to |verify |that |it |complies |with |the |syntax |rules |for |your |chosen |standard. |- | |correct |answers |checking |your |code |to |verify |that |it |complies |with |the |syntax |rules |for |your |chosen |standard. Consider |the |following |HTML |code:
Your |browser |does |not |support |the |HTML5 |audio |element.
Which |attribute |and |value |must |you |add |to |the | |element |to |incorporate |default |audio |operations |such |as |Play, |Pause, |Volume, |etc.? A) |controls="controls" B) |controls="default" C) |controls="audio"
D) |You |will |be |able |to |change |the |GUI |interface |to |more |closely |suit |your |coding |habits. |- | |correct |answers |You |will |be |able |to |troubleshoot |code |issues |when |the |GUI |Web |editor |fails. Consider |the |following |HTML |code:
Your |browser |does |not |support |the |HTML5 |video |element.
What |attribute |prevents |the |first |frame |of |the |video |from |displaying |while |the |video |is |downloading? A) |The |type |attribute B) |The |src |attribute C) |The |controls |attribute D) |The |poster |attribute |- | |correct |answers |The |poster |attribute What |does |the |W3C |Markup |Validation |Service |use |to |determine |the |HTML |specification |against |which |to |validate |your |Web |page |markup |code? A) |The |specified |DTD |in |the | |section |of |your |HTML |page B) |The |specified |DTD |in |the | |section |of |your |HTML |page C) |The | |declaration |in |the | |section |of |your |HTML |page D) |The |specified |DTD |in |the | |declaration |on |your |HTML |page |- | |correct |answers |The |specified |DTD |in |the | |declaration |on |your |HTML |page
What |attribute |should |you |add |to |the | |element |if |you |want |your |audio |to |play |over |and |over |again |without |stopping? A) |autoplay="autoplay" B) |loop="autoplay" C) |autoplay="loop" D) |loop="loop" |- | |correct |answers |loop="loop" What |can |you |do |to |ensure |that |your |Web |page |content |is |rendered |appropriately |regardless |of |the |browser |used |to |render |it? A) |Incorporate |languages |and |technologies |such |as |Java, |ActiveX, |Microsoft |Silverlight |and |Adobe |Flash |in |your |Web |pages. B) |Follow |W3C |standards |carefully, |choose |one |standard |version |of |any |given |language |you |use, |and |apply |that |standard |consistently. C) |Write |code |in |multiple |versions |of |any |given |language |to |maximize |the |number |of |browsers |in |which |your |pages |will |render |correctly. D) |Avoid |using |HTML5 |APIs |in |your |Web |pages. |- | |correct |answers |Follow |W3C |standards |carefully, |choose |one |standard |version |of |any |given |language |you |use, |and |apply |that |standard |consistently. Which |HTML |4.01 |flavor |required |the |separation |of |presentation |and |content? A) |HTML |4.01 |Standard B) |HTML |4.01 |Strict C) |HTML |4.01 |Frameset D) |HTML |4.01 |Transitional |- | |correct |answers |HTML |4.01 |Strict To |what |does |the |term |"app" |refer? A) |Relatively |small |programs |that |enable |components |of |an |application |to |work |together |to |produce |a |desired |functionality
D) |Using |a |scripting |language |to |enhance |a |Web |page |- | |correct |answers |Installing |a |third- party |plug-in |to |include |video What |does |it |mean |to |create |Web |pages |with |"responsive |design"? A) |Your |Web |pages |respond |to |user |screen |size |and |work |in |multiple |environments. B) |Your |code |validates |properly |so |that |the |code |will |be |recognized |by |most |user |agents. C) |Your |Web |pages |incorporate |languages |and |technologies |such |as |Java, |ActiveX, |Microsoft |Silverlight |and |Adobe |Flash. D) |Your |Web |pages |appear |statically |regardless |of |the |device |used |to |view |them. |- | |correct |answers |Your |Web |pages |respond |to |user |screen |size |and |work |in |multiple |environments. Which |technology |enables |you |to |place |formatting |instructions |in |an |external |text |file |to |determine |how |HTML |elements |in |a |Web |page |will |display? A) |Geolocation B) |HTML5 |APIs C) |HTML D) |Cascading |Style |Sheets |- | |correct |answers |Cascading |Style |Sheets Which |of |the |following |can |be |considered |a |benefit |of |Cascading |Style |Sheets |(CSS)? A) |You |can |use |CSS |in |lieu |of |HTML |to |develop |Web |pages. B) |One |simple |change |to |the |style |sheet |will |change |all |associated |elements |across |the |site. C) |Web |pages |that |are |linked |to |a |CSS |document |are |more |likely |to |be |interpreted |accurately |by |the |majority |of |user |agents. D) |Making |changes |to |elements |in |the |site |will |update |the |style |sheet. |- | |correct |answers |One |simple |change |to |the |style |sheet |will |change |all |associated |elements |across |the |site. HTML5 |has |introduced |specific |elements |to |structure |Web |pages. |In |which |structure |element |should |you |include |content |that |is |directly |related |to |the |subject |of |the |document?
A) |The | |structure |element B) |The | |structure |element C) |The | |structure |element D) |The | |structure |element |- | |correct |answers |The | |structure |element Canvas |is |an |HTML5 |API |that |provides |a |place |on |a |Web |page |(a |"canvas") |where |you |can |display |graphics, |animation, |video |and |games |dynamically |without |the |need |for |a |plug-in. |Which |of |the |following |should |you |use |to |create |objects |on |a |canvas? A) |Flash B) |CanvasScript C) |Cascading |Style |Sheets |(CSS) D) |JavaScript |- | |correct |answers |JavaScript Why |is |it |important |that |you |adopt |a |single |W3C |standard |and |apply |it |consistently |to |your |Web |page |markup? A) |When |you |validate |your |markup |code, |the |code |will |match |the |DTD |(standard |syntax |rules) |that |you |specify. B) |You |can |more |easily |structure |your |Web |page |without |the |need |of |document |structure |tags. C) |When |you |validate |your |markup |code, |only |invalid |code |will |be |marked |as |such. D) |When |you |validate |your |markup |code, |the |validation |program |can |easily |identify |the |actual |cause |of |any |invalid |code. |- | |correct |answers |When |you |validate |your |markup |code, |the |code |will |match |the |DTD |(standard |syntax |rules) |that |you |specify. With |respect |to |style |sheets, |inheritance |is |the |ability |for |styles |that |you |apply |to |an |element |to: A) |be |passed |down |throughout |the |rest |of |the |document(s). B) |override |the |style |attribute |in |the |element.
background: |#fc3 |url(navbg_04.gif) |repeat-y |top |right; height: |662px; } What |can |you |infer |from |the |example |code? A) |A |background |image |(navbg_04.gif) |will |appear |to |the |left |of |the |sidebar. B) |The |sidebar |will |float |on |the |right |side |of |the |document. C) |The |sidebar |will |always |appear | 165 |pixels |wide |and | 662 |pixels |high. D) |The |sidebar |will |appear |at |the |top-right |side |of |the |document. |- | |correct |answers |The |sidebar |will |always |appear | 165 |pixels |wide |and | 662 |pixels |high. What |page |layout |should |you |use |if |you |want |to |create |Web |pages |whose |text, |images |and |layout |will |not |vary |from |browser |to |browser? A) |Liquid |layout B) |Fluid |layout C) |Relative-width |layout D) |Fixed-width |layout |- | |correct |answers |Fixed-width |layout Why |should |you |use |succinct |wording |on |Web |pages, |especially |the |home |page, |when |designing |your |site? A) |Because |you |need |to |allow |room |on |each |page |for |as |many |navigational |aids |as |possible B) |Because |most |users |want |to |see |all |topics |on |each |page |for |easy |reference C) |Because |most |users |simply |scan |pages |quickly |looking |for |specific |information |or |links |to |it D) |Because |you |need |to |allow |room |on |each |page |for |comments |within |the |source |code |- | |correct |answers |Because |most |users |simply |scan |pages |quickly |looking |for |specific |information |or |links |to |it
The |CSS |Box |Model |consists |of |four |rectangular |boxes |that |can |be |configured |to |create |space |and |a |border |around |each |HTML |element. |Which |Box |Model |element |defines |the |space |between |the |HTML |content |and |its |surrounding |border? A) |Table B) |Margin C) |Padding D) |Block |- | |correct |answers |Padding Consider |the |following |code |from |a |CSS |document: body |{background-color: |#008080; |color: |#FFFFFF;} This |code |is |an |example |of |what? A) |A |rule B) |A |value C) |A |declaration D) |A |property |- | |correct |answers |A |rule Why |would |you |use |an |id |selector |with |your |CSS |styles? A) |To |apply |a |specific |CSS |style |to |a |group |of |like |elements B) |To |apply |a |specific |CSS |style |to |one |unique |element C) |To |define |the |relationship |between |an |HTML |document |and |the |external |CSS |file |to |which |it |is |linked D) |To |specify |an |external |CSS |file's |MIME |type |- | |correct |answers |To |apply |a |specific |CSS |style |to |one |unique |element
A) |Middle B) |Left C) |Top D) |Bottom |- | |correct |answers |Bottom For |which |element |of |the |CSS |Box |Model |can |you |specify |the |width, |style |and |color |attributes? A) |Margin B) |Padding C) |Content D) |Border |- | |correct |answers |Border Which |of |the |following |should |you |use |to |define |a |common |format |for |your |Web |site |and |standardize |the |appearance |of |the |site? A) |A |rule |style B) |A |selector C) |A |declaration D) |A |style |guide |- | |correct |answers |A |style |guide How |do |you |embed |CSS |in |a |single |Web |page |as |an |internal |style |sheet? A) |Add |the | You |can |link |an |HTML |file |to |an |external |style |sheet |using |the |HTML | |element. |Which |of |the |following |attributes |specifies |the |location |of |the |linked |document? A) |The |type |attribute B) |The |rel |attribute C) |The |href |attribute D) |The |src |attribute |- | |correct |answers |The |href |attribute If |you |use |CSS |to |specify |a |particular |font, |what |occurs |when |you |try |to |view |a |Web |page |on |a |system |in |which |the |font |is |not |available? A) |The |browser |will |display |the |content |to |which |the |font |is |applied |in |a |default |font |face. B) |The |browser |will |not |allow |you |to |open |the |HTML |page |until |you |specify |the |browser's |default |font |in |the |CSS |document. C) |The |browser |will |automatically |download |the |font |face |from |the |W3C |font |repository. D) |The |browser |will |render |invisible |the |content |to |which |the |font |is |applied. |- | |correct |answers |The |browser |will |display |the |content |to |which |the |font |is |applied |in |a |default |font |face. Which |of |the |following |would |be |the |best |method |to |use |for |floating |images |to |the |left |and |right |of |text |in |HTML5? A) |The |height |attribute |of |the | |element B) |The |width |attribute |of |the | |element C) |CSS |classes D) |The |inline |CSS |style |attribute |- | |correct |answers |CSS |classes Why |is |implementing |the |liquid |layout |using |CSS |the |preferred |method |of |designing |Web |pages |for |mobile |devices? A) |Because |the |size |of |each |element |is |fixed |and |you |can |manually |change |its |height |and |width |by |applying |CSS |styles |to |it
D) |To |apply |a |specific |CSS |style |to |one |unique |element |- | |correct |answers |To |apply |a |specific |CSS |style |to |multiple |elements Which |of |the |following |can |be |considered |a |benefit |of |Cascading |Style |Sheets |(CSS)? A) |You |can |use |CSS |in |lieu |of |HTML |to |develop |Web |pages. B) |Making |changes |to |elements |in |the |site |will |update |the |style |sheet. C) |The |formatting |instructions |in |the |style |sheet |are |not |inherited |throughout |the |document, |providing |flexibility. D) |One |simple |change |to |the |style |sheet |will |change |all |associated |elements |across |the |site. |- | |correct |answers |One |simple |change |to |the |style |sheet |will |change |all |associated |elements |across |the |site. What |is |the |purpose |of |using |a |style |guide |when |designing |your |Web |site? A) |To |ensure |that |the |same |style |sheet |is |applied |to |all |pages |in |a |Web |site B) |To |apply |the |same |formatting |to |multiple |elements |in |a |site |without |the |need |to |style |individual |elements C) |To |ensure |uniformity |in |style |and |formatting |within |a |document |and |across |multiple |documents D) |To |provide |pre-formatted |page |templates |into |which |you |can |add |content |- | |correct |answers |To |ensure |uniformity |in |style |and |formatting |within |a |document |and |across |multiple |documents In |a |CSS |document, |within |what |must |you |enclose |properties |and |values |when |you |define |a |rule |for |a |specified |selector? A) |Quotation |marks |( |" |" |) B) |Asterisks |( |* |* |) C) |Apostrophes |( |' |' |) D) |Curly |braces |( |{ |} |) |- | |correct |answers |Curly |braces |( |{ |} |)
Which |term |describes |a |set |of |standards |for |the |writing |and/or |design |of |documents, |either |for |general |use |or |for |a |specific |publication, |organization |or |field? A) |Style |sheet B) |Style |standard C) |Style |guide D) |Style |recommendation |- | |correct |answers |Style |guide You |want |to |apply |an |inline |style |to |a |single |element |that |will |override |the |style |applied |to |that |element |by |the |external |style |sheet |to |which |the |HTML |document |is |attached. |How |do |you |apply |an |inline |style? A) |Add |the | B) |The |box-shadow |property C) |The |text-shadow |property D) |The |text-overflow |property |- | |correct |answers |The |text-shadow |property Which |CSS3 |border |property |should |you |use |if |you |want |to |create |a |border |that |uses |an |image |instead |of |just |a |line? A) |The |box-shadow |property B) |The |box-image |property C) |The |border-image |property D) |The |border-radius |property |- | |correct |answers |The |border-image |property Before |CSS3, |background |image |size |was |largely |dependent |on |the |size |of |the |original |image. |What |CSS3 |property |can |you |use |to |resize |a |background |image? A) |The |background-origin |property B) |The |background-clip |property C) |The |background-size |property D) |The |background-crop |property |- | |correct |answers |The |background-size |property For |what |would |you |use |the |element:last-of-type |selector? A) |To |select |every |instance |of |a |specified |element |that |is |the |last |of |its |parent B) |To |select |every |disabled |instance |of |a |specified |element C) |To |select |every |enabled |instance |of |a |specified |element D) |To |select |every |instance |of |a |specified |element |that |is |the |first |of |its |parent |- | |correct |answers |To |select |every |instance |of |a |specified |element |that |is |the |last |of |its |parent Which |CSS3 |selector |selects |every |instance |of |a |specified |element |whose |specified |attribute |contains |the |specified |substring |value?
A) |element[attribute^=value] B) |element[attribute&=value] C) |element[attribute=value] D) |element[attribute$=value] |- | |correct |answers |element[attribute=value] Which |CSS3 |border |property |should |you |use |if |you |want |to |add |a |configurable |shadow |to |a |box? A) |The |box-image |property B) |The |box-shadow |property C) |The |border-image |property D) |The |text-shadow |property |- | |correct |answers |The |box-shadow |property The |CSS3 |box-shadow |property |has |the |following |values, |which |can |be |listed |in |one |declaration: |h-shadow |— |the |horizontal |shadow |position, |also |referred |as |x-offset |v-shadow |— |the |vertical |shadow |position, |also |referred |as |y-offset |blur |— |the |distance |of |the |shadow's |blur |spread |— |the |shadow |size |color |— |the |shadow |color |inset |— |creates |an |inward |shadow |instead |of |an |outward |shadow Which |two |of |the |above |values |are |required? A) |spread |and |inset B) |blur |and |color C) |h-shadow |and |v-shadow D) |color |and |inset |- | |correct |answers |h-shadow |and |v-shadow