---
id: bad87fee1348bd9aec908853
title: Bootstrap の要素に id 属性を追加する
challengeType: 0
forumTopicId: 16639
dashedName: add-id-attributes-to-bootstrap-elements
---
# --description--
要素には class 属性に加えて `id` 属性を付けることもできます。
id はそれぞれ、特定の要素に固有にする必要があり、ページごとに 1 回だけ使用する必要があります。
クラス `well` の各 `div` 要素に固有の id を付けてみましょう。
次のようにして要素に id を付けることができます。
```html
```
左側のウェルに `left-well` という id を付けてください。 右側のウェルに `right-well` という id を付けてください。
# --hints--
左の `well` に `left-well` という id を付けます。
```js
assert(
$('.col-xs-6').children('#left-well') &&
$('.col-xs-6').children('#left-well').length > 0
);
```
右の `well` に `right-well` という id を付けます。
```js
assert(
$('.col-xs-6').children('#right-well') &&
$('.col-xs-6').children('#right-well').length > 0
);
```
# --seed--
## --seed-contents--
```html
```
# --solutions--
```html
```