문제

I want to know if there's a difference between the width property and width attribute from style in order to define the size of columns from a colgroup of a table in HTML

<colgroup>
<col width="15" />
</colgroup>


<colgroup>
<col style="width:15px;" />
</colgroup>

I have to standardize many pages but I want to know if there is a specific difference between them, html support, performance or compatibility between browsers or HTML versions...etc?

도움이 되었습니까?

해결책

from what I saw the only difference is that in the HTML5 width attribute is no longer supported

The <col> width attribute is not supported in HTML5.

http://www.w3schools.com/TAGs/att_col_width.asp

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top