I am quite new to witing code. could someone explain or show me why this works:

<style>
[node-id="19d1fa033f658b1d"] .value {
font-size: 30px;
}
[node-id="ba3de486c9d40a43"] .value {
font-size: 30px;
}
[node-id="01f74cf08bd80c93"] .value {
font-size: 30px;
}
[node-id="6636a14649613644"] .value {
font-size: 30px;
}
</style>
But this doesn't?:

<style>
[node-id="19d1fa033f658b1d"]
[node-id="ba3de486c9d40a43"]
[node-id="01f74cf08bd80c93"]
[node-id="6636a14649613644"]
.value {
font-size: 30px;
}
</style>