google / google/styleguide

Follow the google HTML style guide in the style guide's HTML

Open
#363 3 comments 0 reactions 1 assignee Claimed by @tonyruscoe View on GitHub
lang:html
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

The style guide's HTML file does not itself follow it's own rules

From the guide

> #Omit optional tags (optional).
>
> For file size optimization and scannability purposes, consider omitting optional tags. The HTML5 specification defines what tags can be omitted.
>
> (This approach may require a grace period to be established as a wider guideline as it’s significantly different from what web developers are typically taught. For consistency and simplicity reasons it’s best served omitting all optional tags, not just a selection.)
>
>
>
>
>
> Spending money, spending bytes
>
>
>

Sic.


>
>
>
>
>
> Saving money, saving bytes
>

Qed.

then compare to the style guide's own HTML

```

Google HTML/CSS Style Guide


Google HTML/CSS Style Guide


1 Background

This ...


...
```

It seems like according to the guide it should be

```

Google HTML/CSS Style Guide


Google HTML/CSS Style Guide


1 Background

This ...
...

```

and the script should be either moved to the end or tagged with `defer` so no need for ``

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.