GoConqr has a new look! Let us know what you think.

Module 4 of 15 · Media

Working with HTML

Kostas Diakogiannis

Working with HTML

Working with HTML

Exactly like vanillaJS, there are mainly three functions that do the same thing (instead of vanillaJS, who has properties).

.text() =>Returns the innerText, or sets it if a string is passed as an argument

.html() => Returns the innerHTML, or sets it if a string is passed as  an argument

.val() => Returns the value of an input field, or sets it if a string is passed as an argument

Find more here!

And here!

 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?