HTML: Чекбокс
Задание
Loading...
Ваше упражнение проверяется по этим тестам
const { test } = require('tests');
test(({ query, expect }) => {
const form = query(document, 'form');
const labels = form.querySelectorAll('label');
expect(form).to.have.attr('action', '/people');
expect(labels).to.have.length(2);
labels.forEach((label) => {
const input = label.querySelector('input');
expect(input).to.have.attr('type', 'checkbox');
expect(input).to.have.attr('name');
expect(input).to.have.attr('value');
});
});
Решение учителя откроется через:
20:00
