exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 1 question 19 discussion

Actual exam question from Microsoft's 70-480
Question #: 19
Topic #: 1
[All 70-480 Questions]

You are developing a web page by using HTML5 and C5S3. The page includes a <div> tag with the ID set to validate.
When the page is rendered, the contents of the <div> tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic.

The page must be rendered so that the <div> tag is not forced to be separate from the other content. The following graphic shows the correctly rendered output.

You need to ensure that the page is rendered to meet the requirement.
Which line of code should you use?

  • A. document.getElementById("validate").style.display = "inline";
  • B. document.getElementById("validate").style.margin = "0";
  • C. document.getElementById("validate").style.padding = "0";
  • D. document.getElementSyId("validate").style.display = "block";
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
* display: value;
value: inline
Default value. Displays an element as an inline element (like <span>)
* Example
Display <p> elements as inline elements:
p.inline {
display: inline;
}

Reference: CSS display Property -
http://www.w3schools.com/cssref/pr_class_display.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...