The most semantic way of making this container

后端 未结 9 1132
时光说笑
时光说笑 2020-12-19 09:58

I want to make the following shape using divs and border radius, with fall back to square corners for old browsers. No images please.

I am having a bit of trouble ma

9条回答
  •  失恋的感觉
    2020-12-19 10:34

    You should also consider using dl element.

    This HTML:

    ..
    ..

    will have more pure semantics than nested divs, but is probably more awkward with only one "title-content" block.

    At last h(1-6) elements will have more semantics than div class="header"

提交回复
热议问题