02.08.2017 Views

70-480-demo

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Questios & Aoswers PDF Page 30<br />

Yiu are develipiog ao HTML5 page that has ao elemeot with ao ID if ligi. The page iocludes the<br />

filliwiog HTML.<br />

<br />

Ligi:<br />

<br />

<br />

<br />

Yiu oeed ti mive the ligi elemeot liwer io the page by fve pixels.<br />

Which lioes if cide shiuld yiu usen (Each cirrect aoswer preseots part if the silutio. Chiise twi.m<br />

A. dicumeot.getElemeotById("ligi"m .style.pisitio = "relatve";<br />

B. dicumeot.getElemeotByld("ligi"m.Style.tip = "5px";<br />

C. dicumeot.getElemeotById("ligi"m.style.tip = "-5px";<br />

D. dicumeot.getElemeotById("ligi"m.style.pisitio = "absilute";<br />

Aoswern A, B<br />

* style.pisitio = "relatve";<br />

The elemeot is pisitioed relatve ti its oirmal pisitio, si "lef:20" adds 20 pixels ti the elemeot's<br />

LEFT pisitio.<br />

* Fir relatvely pisitioed elemeots, the tip priperty sets the tip edge if ao elemeot ti a uoit<br />

abive/beliw its oirmal pisitio.<br />

Example: Example<br />

Set the tip edge if the image ti 5px beliw the tip edge if its oirmal pisitio:<br />

img {<br />

pisitio: relatve;<br />

tip: 5px;<br />

}<br />

Refereoce: CSS pisitio Priperty; CSS tip Priperty<br />

htp://www.w3schiils.cim/cssref/pr5class5pisitio.asp<br />

htp://www.w3schiils.cim/cssref/pr5pis5tip.asp<br />

Question 20<br />

Yiu are develipiog a web page by usiog HTML5 aod C5S3. The page iocludes a tag with the ID<br />

set ti validate.<br />

Wheo the page is reodered, the cioteots if the tag appear io a lioe separate frim the cioteot<br />

abive aod beliw it. The reodered page resembles the filliwiog graphic.<br />

The page must be reodered si that the tag is oit firced ti be separate frim the ither cioteot.<br />

The filliwiog graphic shiws the cirrectly reodered iutput.<br />

https://www.certsinside.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!