Which is more correct:

OR

前端 未结 7 1181
甜味超标
甜味超标 2020-11-28 05:21

Are both

...

and

...

valid HTML, or is only one correct
7条回答
  •  没有蜡笔的小新
    2020-11-28 05:57

    Also, there is style hierarchy differences. If you have it as

    Heading here

    , The styles of the anchor will overrule the styles of the h1 element. Example:

    a {color:red;font-size:30px;line-height:30px;}
    

    WILL OVERRULE

    h1 {color:blue;font-size:40px;line-height:40px;}
    

提交回复
热议问题