In Visual Studio, I'm seeing these warnings:
- Validation (HTML 5): Attribute 'cellpadding' is not a valid attribute of element 'table'.
- Validation (HTML 5): Attribute 'cellspacing' is not a valid attribute of element 'table'.
- Validation (HTML 5): Attribute 'valign' is not a valid attribute of element 'td'.
- Validation (HTML 5): Attribute 'align' is not a valid attribute of element 'td'.
If they are not valid attributes in HTML5, what replaces them in CSS?
Alternatively, can use for particular table
Add this css in external file
This should solve your problem:
I think you are using Visual Studio to edit web page. Then I also faced the same issue. The thing is, there is no such 'attribute' for this element.
You have you move this attribute to style:
From:
To:
On particular table