Reputation: 46940
Is it possible to add add an element to the DOM with Chrome developer tooling? For example select a div
element and then add another div
sibling right after it?
Upvotes: 1
Views: 844
Reputation: 25907
There's 3 workflows for editing nodes as HTML:
To commit your changes:
To discard:
Source for keyboard shortcuts: Elements panel keyboard shortcuts
Upvotes: 1
Reputation: 46940
Just figured it out. We can click the three dots (...)
next to an element we want to edit and select Edit as HTML
, and proceed to modify the markup from there.
Upvotes: 1