Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Creating a Table using HTML

Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 1,711 ✭✭✭JoyPad


    I would highly recommend this website for learning old/new stuff.

    What you need is explained on this page. In particular, see the sections titled "Cells that Span Many Columns" (for the Record and Total cells) and "Cells that Span Many Rows" (for the Team, From and To cells).

    You need to think of the table as having 4 rows and 8 columns, with some cells spanning multiple columns or multiple rows.

    Spoiler: https://pastebin.com/ybyr8Y3S

    I subscribed to keep boards.ie alive!
    boards.ie: Now Ye're Subscribing



  • Registered Users, Registered Users 2 Posts: 2,913 ✭✭✭Ten Pin


    Isn't it possible to save a word document as HTML

    Create table in Word doc, save as HTML file and then open file in notepad to get the code.

    Some browsers also have an option to view source code so use that while the page with the specified table is displayed.

    Or else just download the page as HTML and the code will be within the saved file.


  • Posts: 11,642 ✭✭✭✭ [Deleted User]


    Ten Pin wrote: »
    Isn't it possible to save a word document as HTML

    Create table in Word doc, save as HTML file and then open file in notepad to get the code.

    Some browsers also have an option to view source code so use that while the page with the specified table is displayed.

    Thats a thoroughly painful way of doing it because Word adds in a load of extra tags that you don't need. OP, HTML is so so easy, just learn how to do it natively.

    To demonstrate this opinion, I just created a word document which displays "hello world", saved it as html and opened in notepad. The file was 38KB in size and the resulting HTML was 756 lines long.


  • Registered Users, Registered Users 2 Posts: 420 ✭✭gouche


    Thats a thoroughly painful way of doing it because Word adds in a load of extra tags that you don't need. OP, HTML is so so easy, just learn how to do it natively.

    To demonstrate this opinion, I just created a word document which displays "hello world", saved it as html and opened in notepad. The file was 38KB in size and the resulting HTML was 756 lines long.

    Just to expand on this, you need to save it as Web-Page, Filtered.
    This will reduce the size of the generated html by removing all the unnecessary tags.
    I just did your example above and it came in at 953bytes and 49 lines - most of which was styling.

    That said, OP, just learn the html to do it, it's really not that difficult.
    Just right-click on the table in Wikipedia and click Inspect Element which will display the html for the table.


Advertisement