Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Read and set element content safely.
html() and text() is easiest to learn by reading the example, changing it, and observing the result.
$('#title').text('Plain text content'); // escapes HTML
$('#body').html('<strong>Bold</strong>'); // sets markup
const name = $('#name').val(); // read input value
$('#name').val('Default name'); // set input valuePractice the html() and text() example in a small scratch file, then explain what changed and why.