```
**Use lowercase attribute names** [S1]
```html
Visit our HTML tutorial
```
```html
Visit our HTML tutorial
```
**Always quote attribute values** β quoted values are easier to read; you MUST use quotes if the value contains spaces. [S1]
```html
```
**Always specify alt, width, and height for images** β `alt` is important if the image cannot be displayed; defining `width`/`height` reduces flickering because the browser can reserve space before loading. [S1]
```html
```
**Spaces and equal signs** β space-less is easier to read and groups entities better together. [S1]
```html
```
**Avoid long code lines** β when using an HTML editor, avoid too-long code lines, since scrolling left-right is inconvenient. [S1]
**Blank lines and indentation** β do not add blank lines, spaces, or indentations without a reason; for readability, add blank lines to separate large or logical code blocks and add two spaces of indentation. Do not use the tab key. [S1]
```html
Famous Cities
Tokyo
Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the
most populous metropolitan area in the world.
London
London is the capital city of England. It is the most populous city in the
United Kingdom.
Paris
Paris is the capital of France. The Paris area is one of the largest
population centers in Europe.
```
```html
Famous Cities
Tokyo
Tokyo is the capital of Japan, the center of the Greater Tokyo
Area, and the most populous metropolitan area in the world.
London
London is the capital city of England. It is the most populous
city in the United Kingdom.
Paris
Paris is the capital of France. The Paris area is one of the
largest population centers in Europe.
```
Table example using two-space indentation: [S1]
```html
Name
Description
A
Description of A
B
Description of B
```
List example: [S1]
```html
London
Paris
Tokyo
```
**Never skip the `` element** β the title element is required in HTML and is very important for SEO; it defines a title in the browser toolbar, provides a title when the page is added to favorites, and displays a title in search-engine results. Make it as accurate and meaningful as possible. [S1]
```html
HTML Style Guide and Coding Conventions
```
**Omitting `` and ``?** β an HTML page will validate without the `html` and `body` tags, but it is strongly recommended to always add them. Omitting `body` can produce errors in older browsers, and omitting `html` and `body` can also crash DOM and XML software. [S1]
```html
Page Title
This is a heading
This is a paragraph.
```
**Omitting ``?** β the head tag can also be omitted; browsers will add all elements before `body` to a default head element. However, using the head tag is recommended. [S1]
```html
Page Title
This is a heading
This is a paragraph.
```
**Close empty HTML elements?** β both forms are allowed; if you expect XML/XHTML software to access your page, keep the closing slash, because it is required in XML and XHTML. [S1]
```html
```
**Add the lang attribute** β always include the `lang` attribute inside the `html` tag to declare the language of the page; this assists search engines and browsers. [S1]
```html
Page Title