Skip to content

Commit

Permalink
docs: use semantically correct tag for date
Browse files Browse the repository at this point in the history
It's more semantically correct to use `<time>` tag instead of `<span>` for dates
  • Loading branch information
andrewvasilchuk committed May 4, 2023
1 parent efe4dc8 commit df90e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guide/essentials/template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ Therefore, the following will **NOT** work:
It is possible to call a component-exposed method inside a binding expression:

```vue-html
<span :title="toTitleDate(date)">
<time :title="toTitleDate(date)" :datetime="date">
{{ formatDate(date) }}
</span>
</time>
```

:::tip
Expand Down

0 comments on commit df90e31

Please sign in to comment.