Talk:Create an HTML table

Revision as of 06:25, 22 May 2011 by Sonia (talk | contribs) (→‎Alignment?: new section)

Shouldn't the language be just Javascript? OK, there is CSV to HTML translation but this could be a smaller HTML producing task. --Paddy3118 07:40, 9 March 2011 (UTC)

I assumed this was a task to display a table, not specifically in HTML. I think that was more interesting than specifically writing HTML, and we already have *ML-generation tasks. I request that you undo your move and change to the description, since the HTML notion seems to have come solely from my example. —Kevin Reid 21:48, 10 March 2011 (UTC)

Ouch. I see what you mean. I've asked the original author to clarify. --Paddy3118 22:13, 10 March 2011 (UTC)
I'm not the original author. It was originally made by an anonymous user. The only text back then was "how to add a column and row in nested loop". The original intent didn't seem to have anything to do with HTML. We don't seem to have any other HTML generation tasks (or at least they're not in Category:HTML), so it might be good to have both. If we do have both, though, I think we can do some more nifty stuff with the HTML version. This simple table would be interesting enough for a plain text task. --Mwn3d 22:19, 10 March 2011 (UTC)
If the task is to "display a table", then my Ruby code is wrong, because it only outputs the HTML for a table, and never displays the table. Perhaps we should delete the Ruby example, and the other examples that never display a table? --Kernigh 02:18, 11 March 2011 (UTC)
The task was to display a table. It is to create the HTML for a table. The Ruby code is right now. --Mwn3d 02:58, 11 March 2011 (UTC)

Alignment?

Not sure the point of saying numbers should be aligned in the same fashion for all columns. That seems to be just picking something at random not required by the task and saying "don't add this flourish." Anyway, the non-disallowed flourish I added was to generate the result with a template mechanism. (The task as written would seem to allow a single print statement that simply printed the html table from a string constant.)

Return to "Create an HTML table" page.