Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

WGU C777 Exam Review for HTML5, CSS3 & JavaScript | Verified Accurate Answers 2025/2026

Document preview thumbnail
Preview 2 out of 13 pages

WGU C777 Exam Review for HTML5, CSS3 & JavaScript | Verified Accurate Answers 2025/2026 Drag and Drop API - correct answer A typical drag operation begins when a user selects a draggable element, drags the element to a droppable element, and then releases the dragged element. It must have the attribute draggable set to true in the HTML Drag/drop HTML code - correct answer img draggable="true" Needs true or false img draggable does not work remember this get an element that has been marked as draggable - correct answer const draggableElement = ElementById('draggable-element'); add dragstart listener to the element - correct answer draggableEEventListener('dragstart', onElementDragStart); add drag data to the event - correct answer function onElementDragStart(event) { TData('text/plain', 'draggable-element'); } History API - correct answer Controls the URL and lets navigational changes appear without reloading the page and bookmark the specific state without a individual url aka use the browser back/forward buttons as navigation elements State({page: 1}, 'Page One', '?page=1') File System API - correct answer access to the local users file system even without uploading it. It can only read it, not update it. input field email - correct answer looks like a text field but has validation properties input field image - correct answer click on the picture to submit the form input field search - correct answer like text but line breaks are removed wen submitted input field url - correct answer looks like text but has some validation client side form validation vs server side - correct answer its a good practice to implement both. On the client side it helps to make the form more user friendly and faster, since a typo can be detected prior the form submission built in form validation pros/cons - correct answer uses html form validation. best performance but less configuration remember this javaScript form validation pros/cons - correct answer slower than built in but more customizable remember this Form Validation a - correct answer matches one character that is a (nothing else)

Content preview

WGU C777 Exam Review for HTML5, CSS3 & JavaScript |
Verified Accurate Answers 2025/2026
Drag and Drop API - correct answer A typical drag operation begins when
a user selects a draggable element, drags the element to a droppable
element, and then releases the dragged element.


It must have the attribute draggable set to true in the HTML


Drag/drop HTML code - correct answer <img draggable="true">
Needs true or false <img draggable> does not work
remember this


get an element that has been marked as draggable - correct answer const
draggableElement = document.getElementById('draggable-element');


add dragstart listener to the element - correct answer
draggableElement.addEventListener('dragstart', onElementDragStart);


add drag data to the event - correct answer function
onElementDragStart(event) {
event.dataTransfer.setData('text/plain', 'draggable-element');
}


History API - correct answer Controls the URL and lets navigational
changes appear without reloading the page and bookmark the specific
state without a individual url
aka use the browser back/forward buttons as navigation elements
history.pushState({page: 1}, 'Page One', '?page=1')

, File System API - correct answer access to the local users file system
even without uploading it. It can only read it, not update it.


input field email - correct answer looks like a text field but has validation
properties


input field image - correct answer click on the picture to submit the form


input field search - correct answer like text but line breaks are removed
wen submitted


input field url - correct answer looks like text but has some validation


client side form validation vs server side - correct answer its a good
practice to implement both. On the client side it helps to make the form
more user friendly and faster, since a typo can be detected prior the form
submission


built in form validation pros/cons - correct answer uses html form
validation. best performance but less configuration
remember this


javaScript form validation pros/cons - correct answer slower than built in
but more customizable
remember this


Form Validation

Document information

Uploaded on
November 16, 2025
Number of pages
13
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KieranKent55
3.6
(9)
Sold
43
Followers
18
Items
6490
Last sold
6 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions