In HTML which way round should and

be nested?

前端 未结 3 2070
忘掉有多难
忘掉有多难 2021-02-13 19:25

Is there a more correct order for nesting a and

elements in HTML?

e.g.:

         


        

3条回答
  •  旧巷少年郎
    2021-02-13 19:54

    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/

提交回复
热议问题