Example 1 — Append an HTML String
Add text as the last child of every paragraph.
$("p").append(" Hello "); How It Works
- Select.
$("p")matches every paragraph. - Parse. jQuery turns
" Hello "into content (a text node here). - Insert. That content becomes the last child of each
<p>.

