I have few Web programming questions, please help. Which of the following is the
ID: 672502 • Letter: I
Question
I have few Web programming questions, please help.
Which of the following is the correct way to apply more than one class to an element
class="hot bold"
class="hot+bold"
class="hot.bold"
class="hot" class="bold
Which of the following is the correct CSS selector for referencing a span with a class named 'message' in a paragraph with an id named 'urgent'?
p#urgent span.message
p.urgent span#message
urgent.message
span#message p.urgent
#urgent {.message {p, span } }
What organization is primarily responsible for creating and communicating the web standards?
w3schools
wwwOrg (WWWO)
World Wide Web Consortium (W3C)
Apache
Netscape
Microsoft
Which of the following CSS attributes is used to place block elements beside each other?
float
align
position
set
group
This question is with regard to the use of ‘id’ and ‘class’ in an HTML document. Should you give more than one element in a page the same id?
Yes
No
The second control statement in a for loop usually __________.
sets the termination condition
increments a counter
creates a control variable
none of the above
class="hot bold"
class="hot+bold"
class="hot.bold"
class="hot" class="bold
Explanation / Answer
Answer:
1. You can have mutiple class in an element but the correct way is
class ="hot bold"
2.The correct way for referencing a span with a class named message and ID
p#urgent span.message
3. World Wide Web Consortium (W3C) is mainly responsible for creating and
communicating the web standards.
4. you can do that with align and float both.
But here i would say Align.
Beacause Aligning elemnets with float requires to define margin , padding etc.
5. No. Instead of that use class name. because using same ID may create confusion
while getting the ID value.
like document.getElemntbyID("something").
6.the 2nd statemnet in for loop sets the sets the termination condition.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.