(X)HTML-mode

Normally Emacs enters html-mode when it opens a file whose name ends in ".html" or ".htm". You can also switch to this mode by invoking the command html-mode.
The file is opened in xhtml-mode if it contains an XML declaration, usually the first line:
<?xml version="1.0" encoding="iso-8859-1"?>
See http://en.wikipedia.org/wiki/XML for XML (Extensible Markup Language).

In this mode there are two new menus, HTML and SGML.

To see the description of the mode, do C-h m.

Here are a few more often used commands. For most of them the completion mechanism works.

See this link at https://www.gnu.org/software/emacs/manual/ for more [as of 2014.10].

C-c C-t

C-c /

C-c C-d

C-c C-a

C-c C-v

comment-region

C-c C-i, same as C-c TAB