Using brackets in html and css []

i looked at a page and i saw in the html something like that:

<li data-row-index="2">

and in the css:

font-size: 16px

what does the bracket do? i know brackets purpose in java script but not in html and css.

It’s called an ‘attribute selector’. See this SO answer: or these docs: