Table 8-3. Bindings for inserting entities for punctuation and symbols
| C-x 8 prefix keystrokes | Character entity | Character displayed in browser |
|---|---|---|
| C-x 8 1 / 2 | ½ |
½ |
| C-x 8 1 / 4 | ¼ |
¼ |
| C-x 8 3 / 4 | ¾ |
¾ |
| C-x 8 SPC | |
nonbreaking space |
| C-x 8 ! | ¡ |
¡ |
| C-x 8 $ | ¤ |
¤ |
| C-x 8 + | ± |
± |
| C-x 8 - | ­ |
soft hyphen |
| C-x 8 . | · |
· |
| C-x 8 < | « |
« |
| C-x 8 = | ¯ |
¯ |
| C-x 8 > | » |
» |
| C-x 8 ? | ¿ |
¿ |
| C-x 8 | | ¦ |
¦ |
| C-x 8 c | ¢ |
¢ |
| C-x 8 C | © |
© |
| C-x 8 L | £ |
£ |
| C-x 8 P | ¶ |
¶ |
| C-x 8 R | ® |
® |
| C-x 8 S | § |
§ |
| C-x 8 u | µ |
µ |
| C-x 8 x | × |
× |
| C-x 8 Y | ¥ |
¥ |
| C-x 8 ^ 1 | ¹ |
¹ |
| C-x 8 ^ 2 | ² |
² |
| C-x 8 ^ 3 | ³ |
³ |
| C-x 8 _ a | ª |
ª |
| C-x 8 _ o | º |
º |
Table 8-4 lists HTML mode commands.
Table 8-4. HTML mode commands
| Keystrokes | Command name | Action |
|---|---|---|
| (none) | html-mode | Enter HTML mode. |
| C-c C-t SGML → Insert Tag | sgml-tag | Inserts a tag, prompting for attributes. If you enter html as the tag name, inserts a template html file. |
| C-c Tab SGML → Toggle Tag Visibility | sgml-tags-invisible | Hides or shows the tags in the file. |
| C-c C-v SGML → View Buffer Contents | browse-url-of-buffer | Display buffer in default browser. |
| C-c C-s | html-autoview- mode | If this mode is on (this command toggles it), display file in browser each time it is saved in Emacs. |
| C-c 8 | sgml-name-8bit-mode | If turned on, certain keystrokes for inserting Latin-1 characters are captured and replaced with the appropriate entities. See "Character encoding in HTML mode" for details. |
| C-c C-f SGML → Forward Tag | sgml-skip-tag-forward | Move forward to the next tag of the same level. |
| C-c C-b SGML → Backward Tag | sgml-skip-tag-backward | Move backward to previous tag of the same level. |
| C-c Del or C-c C-d SGML → Delete Tag | sgml-delete-tag | With cursor on or before a tag, deletes tag or tag pair. |
| C-c 1 | html-headline-1 | Insert an <h1>. |
| C-c 2 | html-headline-2 | Insert an <h2>. |
| C-c 3 | html-headline-3 | Insert an <h3>. |
| C-c 4 | html-headline-4 | Insert an <h4>. |
| C-c 5 | html-headline-5 | Insert an <h5>. |
| C-c 6 | html-headline-6 | Insert an <h6> (useful for footnote text) . |
| C-c Enter | html-paragraph | Insert <p> tag. |
| C-c C-c h HTML → Href Anchor | html-href-anchor | Insert a hyperlink. |
| C-c C-c n HTML → Name Anchor | html-name-anchor | Insert an anchor so that a link can be created to the anchored part of the page. |
| C-c C-c u HTML → Unordered List | html-unordered-list | Create a bulleted list. |
| C-c C-c o HTML → Ordered List | html-ordered-list | Create a numbered list. |
| C-c C-c l HTML → List Item | html-list-item | Add an item to a list. |
| C-c C-c i HTML → Image | html-image | Insert <img src=""> and position cursor for you to enter filename of image. |
| C-c C-j HTML → Line Break | html-line | Insert a line break (<br>). |
| C-c C-c - HTML → Horizontal Rule | html-horizontal-rule | Insert a horizontal rule (<hr>). |
| C-c C-c r | html-radio-buttons | Insert a group of radio buttons. Emacs prompts for a name for the group, then repeatedly for value, whether it should be checked, and associated text. Press C-g to complete the group. |
| C-c C-c c HTML → Checkboxes | html-checkboxes | Insert a group of checkboxes. Emacs prompts for a name for the group, then repeatedly for value, whether it should be checked, and associated text. Press C-g to complete the group. |
| C-c ? SGML → Describe Tag | sgml-tag-help | Provide brief verbal description of tag at cursor position. |