Insert content into range

Heading

Hello bold World



Insert content into range

  1. When a range is created, internally it creates a document fragment node onto which all the nodes in the selection are attached.
  2. We can set a range with more precision by selecting only parts of nodes using the following.
  3. With the same document fragment created, we can also insert content into range using a couple different methods.