Example 1 — Get HTML
Read the inner markup of the first matched element.
var markup = $("#box").html();
// e.g. "Hello <em>world</em>" How It Works
- Select.
$("#box")finds the target. - Get. No argument → read
innerHTML. - First only. Extra matches are ignored by the getter.

