Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 626 Bytes

File metadata and controls

41 lines (28 loc) · 626 Bytes

Inertia Lighting | Code Style Guide > HTML

Code Style

Indentation

We use 4 spaces for indentation.

Example:

<div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>

Quotation Marks

We use double quotes for attributes.

Example:

<div class="container"></div>

Escaping Lonely Tags

We use a backslash to escape the closing tag.

Example:

<img src="example.png" />

Naming Conventions

We use kebab-case for tags and attributes.

Example:

<my-custom-element data-property="some random value"></my-custom-element>