kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
30 lines (23 loc) • 936 B
Markdown
# HTML Style Guide
## Multiple attribute values
When an element has multiple attributes, each attribute including the first should be on its own line with a single indent.
This makes the attributes easier to scan and compare across similar elements.
The closing bracket should be on its own line. This allows attributes to be shuffled and edited without having to move the bracket around. It also makes it easier to scan vertically and match opening and closing brackets. This format
is inspired by the positioning of the opening and closing parentheses in [Pug/Jade](https://pugjs.org/language/attributes.html#multiline-attributes).
```
<div
attribute1="value1"
attribute2="value2"
attribute3="value3"
>
Hello
</div>
```
If the element doesn't have children, add the closing tag on the same line as the opening tag's closing bracket.
```
<div
attribute1="value1"
attribute2="value2"
attribute3="value3"
></div>
```