ammejohn10;11049113 wrote:No, It's just a html code, where I put all data manually using <table>, <tr> etc tags. But yes, I need to fetch all data from my database. By all these process my code section becoming more larger, what should I do?
Yeah that tends to happen. The more data you want to display, the more HTML is required.
If you really think about it, if all someone wants is the data, you could just send them a spreadsheet or the database or something. Obviously, HTML and CSS exist for formatting stuff. There is a fundamental difference between HTML and CSS. HTML is the content you want to show, with some structure added to it. The point of using HTML markup like this:
<TABLE><TR><TD>your-data-goes-here</TD></TR></TABLE>
Is to tell the web browser of your visitor that you intend for the data to be displayed as a table. So HTML is partly your actual data and partly layout.
CSS doesn't contain your data at all. It is essentially incapable of doing so. CSS is there to set fonts, colors, margins, borders, text styling, etc.