In HTML which way round should and

be nested?

前端 未结 3 1252
无人共我
无人共我 2021-02-13 19:29

Is there a more correct order for nesting a and

elements in HTML?

e.g.:

         


        

3条回答
  •  不要未来只要你来
    2021-02-13 20:15

    HTML4, XHTML

    Text

    HTML5

    Text

    Text

    It's acceptable in HTML5 as the anchor tag's been made 'block level'.

    Some good info on block level and inline level tags can be found at http://www.webdesignfromscratch.com/html-css/css-block-and-inline/

提交回复
热议问题