exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 54 discussion

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

You are developing an HTML5 web application that provides a discussion forum for users. When a user registers to access the application, the user enters an email address.
Users can enter data that can result in cross-site scripting (XSS) attacks.
You need to ensure that email input is as secure as possible.
Which two techniques should you use? (Each correct answer presents a complete solution. Choose two.)

  • A. Remove all nonalphanumeric characters before submitting data.
  • B. Use the email tag in forms where the email address is entered.
  • C. Display all email addresses inside of an HTML5 ADDRESS element.
  • D. Use jQuery validation with a regular expression to ensure that email addresses are valid.
  • E. Ensure that all form data is encrypted when it is submitted.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
B: The <input type="email"> is used for input fields that should contain an e-mail address.
Depending on browser support, the e-mail address can be automatically validated when submitted.
Some smartphones recognize the email type, and adds ".com" to the keyboard to match email input.
D: JQuery can be used to validate email addresses.
Reference: HTML Input Types; Email Validation Using jQuery Codes

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
TonyBezerra
Highly Voted 5 years, 6 months ago
One of the correct options is so confused. There is no "email" tag. There is a input tag, that its type is email...
upvoted 19 times
...
JMz123
Most Recent 5 years, 8 months ago
Ah. also make sure you do validation on the server.
upvoted 2 times
...
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 ...