Hi, everyone. I have a question about the contents of the lecture. When specifying the area of each cell in the table, the area on the css and Is there a right way to do it inside the HTML? Or is it okay to use either method?
fast-frontend table_layout presentation_attributes validation table
Hello, Jaesung-nim ^
Question
You have asked which of the correct ways to give each cell width property of a table element to HTML or CSS.
Answer
The best way to verify the correct method is to look at grammar validation and HTML5 standard document.
First, if you check the grammar test results, output CSS should be used instead of width
as error instead of expression attribute. In other words, it's not the right way.
Next, if you look at the standard document, there are no expression properties like the width
property that can be set in a cell element.
It is not the right way to use the HTML representation properties used in the old days today. You should not be misled by untrusted blogs, community posts and create HTML documents in the wrong way. ^ ^ _ ^
Does the question mean the following?
The width of the table is <style>table {width: width value;}Is it better to give it in </style>
way? <table style="width: width value;"></table>
Is it better to give it?
Then the answer is... It depends on the situation, but please do it electronically if possible.
© 2024 OneMinuteCode. All rights reserved.