Let's take a formal look at change text.
And we've actually worked with this a lot so far, a lot,
a lot in pretty much every lesson so far,
maybe even every lesson so far.
But let's take a formal look at it.
And so in the last lesson, we looked at dot HTML.
In this one we're going to be looking at dot text.
And so what we can do here is Let's not do a div or an H1.
Let's do a section element.
And let's say put some HTML code in here.
And so we can select this selection or section element
with dollar sign, parenthesis, section dot.
And then we can either change the HTML or the,
or the the text.
Now, if we wanted to actually put HTML code in here,
we can't use HTML.
So if I put a bold versus bold tag.
So this is old way of doing bold.
This is the new way of doing bold.
Just save this and refresh my page.
It actually, it tries to render itself.
So if I go into the section here,
it fixed up my B and strong elements.
And that's because we're actually injecting HTML into the page.
We don't need to do that though. If we actually wanted to see this code,
we can just do dot text.
And that's the difference between dot txt index.html is when I refresh the page,
it actually shows up so I can write HTML in here now,
which is really great for coding websites, coding blogs,
things like that, whenever you need to actually display some sort of code.
Now your task for this particular lesson is to select an element.
It doesn't have to be a section, it can be any element.
And then inside of that element with jQuery,
I want you to use dot txt n dot HTML and write
some HTML inside of it and see what the difference actually is.
Now you've seen what the difference is on my screen,
but it's not quite the same as actually getting some hands on experience.
So go ahead and get some hands-on experience.
And when you're done that in the next lesson,
let's go ahead and talk about getting
form values because form values aren't quite the same.