Optional: markup objects
The technique
cit uses the innermost element around the cursor, here em. cat would replace <em>draft</em> as a whole.
Keys in this lesson
- cit
- Change inside an HTML element.
- cat
- Change the element, tags included.
Before this lesson: Paired objects.
More about this lesson
Edit the inside of an element or remove its tags deliberately.
These are HTML fragments in every example-language setting. it names an element’s contents; at includes its opening and closing tags. Start inside the intended element. Nested elements make the intended pair important; markup practice is optional.
Example
From inside <em>draft</em>, cit then final then Esc keeps the em tags. cat replaces the whole element.
Use Reset to try again.