Emacs, Working with HTML

By Xah Lee. Date: . Last updated: .
xtodo work in progress

Insert Tags

Remove Tags

xah-html-delete-tag-pair
Delete a tag.
xah-html-remove-list-tags
Delete all list tags.
xah-html-remove-paragraph-tags
Delete all p tags.
xah-html-remove-html-tags
Delete all tags.
xah-html-html-to-text
Delete tags but preserve info. For example, url in link remain. This command basically convert html to plain text in best format as much as possible.

Jump to Tag

xtodo need to combine them xah-html-skip-tag-backwardxah-html-skip-tag-forward

preview in a browser

xah-html-browse-url-of-buffer

view the image in a image tag

just move cursor to the file path, press Enter to open it.

view image thumbnails in a directory

Emacs: Show Image Thumbnails

open the current directory in OS's desktop?

Emacs: Open File in External App

HTML

Tags

Links

CSS

Misc

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial