Global HTML CSS New 1
Global HTML CSS New 1
J need to drsplay a logo on the nght side of a web page The logo needs to be compatible wrth screen readers You wnle tile following
i of markup
ng src =" Logo.png" styl e=" wid th : 100px ; height : 100px ; float : right" >
I, t
#style 3 {
color : green ; Line 02 displays text 1n which font size? ')O____QQ(~ls ~
font- size : 20p x;
Lene 03 displays text 1n which color? '""imrple •
</s t yle >
You wnte the following HTML Line numbers are 1nduded for reference only
'ou are designing a web page for your company You need to display an image named sun set . png on the page If the user's Internet connection IS slow, or if the user IS visually Impa1red, you need the text Sunset Logo to be
hsplayed or read aloud
:omplete the markup by selecting the corre.ct option from each drop-down list
\nswer Area
You need to create a stylesheet that \\~II cause a set of elements to be surrounded by a solid red line that Is 4 pixels wide The line d1mens1ons should be part of the
element's dImensIons
How should you complete the markup? To answer move the appropnate markup segment from the 11st on the left to the correct pos1tIon on the nght.
Markup Segments
I~b_or_d_er_-_st_y_l e _ ~I '~b_ord
_ e_r - - -~ fI out li ne - sty l e 11 margin
. Answer Area
div
JI j border
- - - - - ~' : 4px solid red ;
l;
,;JI'
pi
I
'
;j
:1
I
You are creating an HTML page that displays a how-to gurde You want to display the content rn the following structure
1 Learning HTML
a Basrc Elements
b Semantic Elements
2 Learning CSS
How should you complete the markup? To answer move the appropnate HTML tags from the lrst on the left to the correct positrons on the rrght You may use each markup segment once, more than once or not at all You might need to move
the spilt bar between panes or scrol l to vrew content
Note You will receive partial credrt for each correct parr of tags
..
<!@=] >
</li >
<li >
Learning CSS
</li >
<!@=] >
Move each CSS term from the list on the left to its corresponding example on th e
nght
\ property . co nt ainer ,.
L
: \ ~lass selector
- Next
Question 18 of 40 Time Remaining 00:15:27
The Jazz Club wants you to add an rmage to the co mpany home page The rmage should be 100 prxels wrde by 50 prxels high The home page shou ld display the company name rf the rmage
cannot be loaded -
Complete the markup by selecting the correct option from each droP-down lrst
Answer Area
0 A abs ol ute
0 B re lat i ve
0 C fix ed
~ D stat i c
You are creating a home page for CompanyPro You need to determ ine which HTM L e lements will c reate
a simple web page
Whic h six HTML segments should you use in sequence? Move the srx HTM L segments to t11e an swer area and place them in the
correct order
HTML Segments
Answer Area
I <h l >Welcome to CompanyPro< / h1 >
Q__ji < !DOCTYPE html >
I <ti t l e >Comp an yPro</ ti tle >
0 <ht ml >
,.;ii
L::'.J
<h . .d>
<title>Compan y Pro</,title >
0 </ h ead>
<body>
ltl <hl >We l come to CompanyPro</hl >
" ' L::'.J <p>Ou r new store on 1 Main Street is n m, o pen . </ p >
\V </body>
You analyze the following code to detem1ine whether 11 meets industry best practices
<body>
<hl s t yle= " color : navy " >Learning CSS </ hl >
<ul >
<l i style= "color : bl ue "> Inhne Styles< / l i>
<l i s t yle=" color · bl ue "> Internal Styl es </ h >
<li st y le=" color blue " >Ext e rnal Styles< li>
</ ul >
</ body >
C A The color style speafied for the <h1 > element should be moved to an internal ji
stylesheet
The color style spea fied for the <li > elements should be moved to an internal
8
stylesheet
C C The color style for the <li > elements should be moved to the <body> element
You wa nt to complete the pseudo class for link elements so that the links appear red when the page loads gree n when the link 1s clicked, orange when the cursor moves over the, link, and blue 1f the link
was clicked previou sly
How should vou complete the markup? To answer move the appropnate CSS selectors to the correct pos1t1ons on the nght You may use each CSS selector once, more than once, or not at all
~ C •
CSS Selectors Answer Area
\ a : vi s ited !{ co l o r : blue ;}
r
I
~
\ a_: _ac_ t_iv_ e_ ~ I{ c olor : g reen ; }
You want to complete the pseudo class for link elements so th at the links appear ,-ed when the page loads, green when the link Is clicked, ora nge when the cursor moves over the link, and blu e 1f the link
was cl icked previously
How should you complete the markur:i? To an swer move the appropriate CSS selectors to tl1e correct posItIons on tlie ngllt You may use each CSS selector once, more than once, or not at all
~
I a_:_a c_t _i v_e_ _ ~a_"_' i_s_
i t_e_d _ _ ~a_:_l i_n_k - - ~ I / a : hov er ;{color : red ; }
i f
/a: hover I{ c o lor : orange ; }
'! . . "le
Go To Sum mary l.1c,rY for Review Ma rl' fc,r Feedlu,cl-' rool~ • Nex~
Question 13 of 40 Time Remaining 00:15:45
An element must maintain Its location in the v1ewport even 1f the page 1s
scrolled
0 A po s i tion · absolute ,
C C position stat i c,
D po si tion fix ea ,
For ea ch markup segment select True 1f the HTML element belongs In the head block or False 1f 11
does not
Note You will rece1Ve partial credit for e.ach correct selection
Answer Area
Tlie CompanyPro home page uses a simple CSS media query to determine how to display tile layout elements on different devices Tile page must display differently for phone,
tablet and desktop
Complete the marl<up by selecting the correct option from each drop-down 11st
Note You will receJVe partial credn for each correct selection
Answer Area
/ * For tablet s : */
na v {d i splay : no ne;}
ma in {wid t h : 75%;}
as i de {w i dt h . 25% ;}
}
@media only s c reen ~ <!J.mJ!l:.Wldth ~ x.[_3 {
/ * For desktop : */
nav { di splay : block ; }
ma in {wid th : 75% ; }
aside {w idth : 25%;}
}
Which code segment correctly sets the background of a paragraph to blue wrth a r ed
borde r ?
p {
ba ckground-color = bl ue ,
border = 10px outset red ,
p {
ba ckgrouno -c olor · blue ,
• B borde r 10px outset red ,
p {
bac kground -c olor blue ,
C
border -c olor 10px red ,
p [
ba c kground-color bl ue ,
D
boroer - olor 10px outset red ,
Given the miemal style sheet and mime style which statement 1s True?
~ C The text "First parag raph" will display red and not underlined
<body >
<h1 s tyle ='' font - s 1:e 30px; ">The Jaz c Club< / h1 >
<p>Come JOl~ the f un 1 < p >
< boay >
You need to create the necessary CSS style to format the paragraph
Move the appropnate CSS properties from the hst on the left to the va lues on the nghl You may use each property once, more th an once,
or not at al
CSS Properties
1
t ext-decora,ion-color 1
fon t -si ze underl i ne I text-decoration
ll 50px I text-indent
c;I
purple Icol or
bold I font - weight
You are building a website and want to have three links called Home Product Info and Contact Us You have assigned all of these elements to a
class called ma in
~ 8 . ma i n
D #ma i n
You are creating an HTML document th at contains an essay with two sections
You need to make 1t easv for the user to navigate from the top of the document to
Se c t 1on2
Complete the sentences by selecting the correct option from each drop-down list
Note You will recerve partial credit for each correct selection
Answer Area
The m arkup defining the link at the top of the page should be qa-Ji'get-~ ·~ n2</a>- --:---- 3
The m arkup defi ning the target for sect,1on 2 should be 3'ahref; "#Seg:1Q_n:[>§_e_c;t1on 2</a > ....-
1
Answe r Area
<head >
<ti tle>S unset Toys< / title
>
<meta chars ~ _ ~ =" utf-8 " >
<meta name =" v iewpo rt "
conte ~-"w1dth=dev1ce-~1dth__,_1n1ti_
<meta name ="ke yword s" al~ ale= 1">
co nte_!ll= "toys, gam_e
s~puules, electronics, video game
<meta name= "de scr iptio n " s, Sunse ~ Toys":::_ •
content="Sunset_Toys Q!:Jlme stQT~
_ - -
</ he ad > ..,.
••
You are creating a web fom1 to allow visitors to sign up for a maIlIng lrsl The form wrll collect tl1e Informatron that rs shown rn the followmg
s S ii S lr ► < ◄ &MSKM ◄ .... '
Time Remain ing 00:16:03
screen shot
FtrSt name
Email
.,,; /
Aj = I ,,-.r1t to subS<.'T!be to the Roc:k Music Zon e matlmg h st
Which code segment will drsplay the form element labeled B? _"!l:!PJJI !YRe=o"rag,o.::_name="frequ~ncy" value="da1ly" checked> ,..
Which code segment wrll display the form element labeled C? 1~ type="submrt"value~bmif'>-
The exte rnal stylesheet named mystyles. css contains the following th ree rules
For each statement, se lect True or False
hl { color : blue ; }
h2 { color : purple ; } Note You will receive partial credit for each correct
p { color : grey; } selecti on
<link re l ="st y lesheet" type= " t e xt / css" href="m ys t yl es . css"> Answer Area
<styl e >
True False
hl { color : ma roon ;
h2 { co lor · blue ; } 0
"Ce rtificates will be awarded in June " Is displayed in grey
p { color : bla ck, }
</ s t y le>
"Coming soonl" 1s displayed 1ri b lue 0
The following elements appear within the body of the web page
<hl style="color :bla ck, ">Comp a nyPro Pre se nts< / hl > , "Awards"' Is displayed m maroon 0
<h2>Rock Climbing 101</h2>
<p st yle=" color . b lue, ">Com i ng s oon' </ p > "Rock Climbing 101" Is displayed In purple 0
<hl>Awaras </hl>
<p>Certific at es will be awarded in J une . </ p >
The image below shows the search results for The Food Club
It t:f ...
, ,.
Time Remaining 00:16:14
www.thefoodclub.o rg
The Food Club
Each meal from The Food Oub Is pe-fectl, s1Zeo and pornoneo fo· your f.m ily to enJoy at l sitting Our fully-prepared
mea ls are delivered fres!- ano ready to eat ,r 10-15 minutes Designed and pre oa red by highly trained and
award -winning chets The Food Oub neats use hlgn-quallty ano f resh 1ng-ed 1ents, delivered to your door
Evaluate the image and answer the questions bv selecting the correct option from each d rop.
down list
Note You will recerve partial credit for each correct selection
C II
Answer Area
Which meta attribute ca uses a search engine to produce the results shown when the value 1s set to
keyword?
Which meta val ue matches the paragraph of text yielded 1n the search result?
Which meta attribute 1s pai red with name to produce the text shown in the search result?
You are creating an HTML page that displays blog entnes You want to ensure that your page can be indexed appropnately by
search engines
You need to use the appropnate semantic tags for areas on the page
Move each semantic tag from the list on the left to its purpose on the right
Note You will recerve partial credrt for e.ach correct answer