Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"border" table attribute is deprecated and not supported in HTML5 #43

Open
DeepSpace2 opened this issue Sep 10, 2019 · 0 comments
Open

Comments

@DeepSpace2
Copy link
Contributor

Should we consider using style= instead?

The default could be

<style>table, th, td {border: 1px solid black;}</style>
<table><tr><th>name</th><td>Json2Html</td></tr><tr><th>description</th><td>converts json 2 html table format</td></tr></table>

The problem here is that the generated <style> might of course clash with the user's existing style. A longer but safer alternative would be to use inline styles for each <table>, <th> and <td> tag:

<table style="border: 1px solid black;">
    <tr>
        <th style="border: 1px solid black;">name</th>
        <td style="border: 1px solid black;">Json2Html</td>
    </tr>
    <tr>
        <th style="border: 1px solid black;">description</th>
        <td style="border: 1px solid black;">converts json 2 html table format</td>
    </tr>
</table>
@DeepSpace2 DeepSpace2 changed the title "border" attribute is deprecated and not supported in HTML5 "border" table attribute is deprecated and not supported in HTML5 Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant