Какой подход лучше? Когда мы пишем все аттрибуты с их значениями в html файле или все же сразу отдаем это дело в руки js тем самым улучшая читаемость кода и соблюдая чистоту.Какой вам больше подходит, тот и лучше. Они для того и сделаны, чтобы каждый мог выбрать, что ему нравится.
parentBlock.find($(".js-checkbox").not(parent).removeClass('checked'));
The value must be unique amongst all the IDs in the element's home subtree and must contain at least one character. The value must not contain any space characters.
There are no other restrictions on what form an ID can take; in particular, IDs can consist of just digits, start with a digit, start with an underscore, consist of just punctuation, etc.
Про атрибут start известно, но как правильно это "втиснуть", если <ol>
вызывается массивом в PHP?
Если вам известно про атрибут и вы хотите помощи с php-кодом, то почему у вас в тегах html, а не php? Где php-код, с которым вам нужна помощь? Нет слов просто... <div class="parent">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
.parent {
width: 170px;
text-align: center;
}
.child {
display: inline-block;
width: 50px;
height: 50px;
background: black;
border-radius: 50%;
}
Посмотреть вживую..parent {
width: 170px;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.child {
width: 50px;
height: 50px;
background: black;
border-radius: 50%;
}
Поиграться.