search
LoginSignup
7
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

株式会社ビットエー Advent Calendar 2017 Day 1

posted at

updated at

divでdtとddをグルーピングできる

最新のHTML(2017年12月3日版)の仕様では、divでdtとddをグルーピングできる。

In order to annotate groups with microdata attributes, or other global attributes that apply to whole groups, or just for styling purposes, each group in a dl element can be wrapped in a div element. This does not change the semantics of the dl element.

HTML Standard - 4.4.9 The dl element

<dl>
  <div>
    <dt>名前</dt>
    <dd>浅田真央</dd>
  </div>
  <div>
    <dt>生年月日</dt>
    <dd>1990年9月25日</dd>
  </div>
  <div>
    <dt>出生地</dt>
    <dd>愛知県名古屋市</dd>
  </div>
</dl>

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
7
Help us understand the problem. What are the problem?