Code
headFoot := []any{
b.Abbr("Position", "Pos"),
"Team",
b.Abbr("Played", "Pld"),
b.Abbr("Won", "W"),
b.Abbr("Drawn", "D"),
b.Abbr("Lost", "L"),
b.Abbr("Goals for", "GF"),
b.Abbr("Goals against", "GA"),
b.Abbr("Goal difference", "GD"),
b.Abbr("Points", "Pts"),
"Qualification or relegation",
}
b.Table(
b.HeadRow(headFoot...),
b.FootRow(headFoot...),
b.Row(
b.TCell(html.Th, "1"),
b.TCell(
e.A(
e.Href("https://en.wikipedia.org/wiki/Leicester_City_F.C."),
e.TitleAttr("Leicester City F.C."),
"Leicester City",
),
" ",
e.Strong("(C)"),
),
"38",
"23",
"12",
"3",
"68",
"36",
"+32",
"81",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Champions_League#Group_stage"), e.TitleAttr("2016–17 UEFA Champions League"), "Champions League group stage"),
),
),
b.Row(
b.TCell(html.Th, "2"),
e.A(e.Href("https://en.wikipedia.org/wiki/Arsenal_F.C."), e.TitleAttr("Arsenal F.C."), "Arsenal"),
"38",
"20",
"11",
"7",
"65",
"36",
"+29",
"71",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Champions_League#Group_stage"), e.TitleAttr("2016–17 UEFA Champions League"), "Champions League group stage"),
),
),
b.Row(
b.TCell(html.Th, "3"),
e.A(e.Href("https://en.wikipedia.org/wiki/Tottenham_Hotspur_F.C."), e.TitleAttr("Tottenham Hotspur F.C."), "Tottenham Hotspur"),
"38",
"19",
"13",
"6",
"69",
"35",
"+34",
"70",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Champions_League#Group_stage"), e.TitleAttr("2016–17 UEFA Champions League"), "Champions League group stage"),
),
),
b.Row(
b.Selected,
b.TCell(html.Th, "4"),
e.A(e.Href("https://en.wikipedia.org/wiki/Manchester_City_F.C."), e.TitleAttr("Manchester City F.C."), "Manchester City"),
"38",
"19",
"9",
"10",
"71",
"41",
"+30",
"66",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Champions_League#Play-off_round"), e.TitleAttr("2016–17 UEFA Champions League"), "Champions League play-off round"),
),
),
b.Row(
b.TCell(html.Th, "5"),
e.A(e.Href("https://en.wikipedia.org/wiki/Manchester_United_F.C."), e.TitleAttr("Manchester United F.C."), "Manchester United"),
"38",
"19",
"9",
"10",
"49",
"35",
"+14",
"66",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Europa_League#Group_stage"), e.TitleAttr("2016–17 UEFA Europa League"), "Europa League group stage"),
),
),
b.Row(
b.TCell(html.Th, "6"),
e.A(e.Href("https://en.wikipedia.org/wiki/Southampton_F.C."), e.TitleAttr("Southampton F.C."), "Southampton"),
"38",
"18",
"9",
"11",
"59",
"41",
"+18",
"63",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Europa_League#Group_stage"), e.TitleAttr("2016–17 UEFA Europa League"), "Europa League group stage"),
),
),
b.Row(
b.TCell(html.Th, "7"),
e.A(e.Href("https://en.wikipedia.org/wiki/West_Ham_United_F.C."), e.TitleAttr("West Ham United F.C."), "West Ham United"),
"38",
"16",
"14",
"8",
"65",
"51",
"+14",
"62",
b.TCell(
"Qualification for the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_UEFA_Europa_League#Third_qualifying_round"), e.TitleAttr("2016–17 UEFA Europa League"), "Europa League third qualifying round"),
),
),
b.Row(
b.TCell(html.Th, "8"),
e.A(e.Href("https://en.wikipedia.org/wiki/Liverpool_F.C."), e.TitleAttr("Liverpool F.C."), "Liverpool"),
"38",
"16",
"12",
"10",
"63",
"50",
"+13",
"60",
"",
),
b.Row(
b.TCell(html.Th, "9"),
e.A(e.Href("https://en.wikipedia.org/wiki/Stoke_City_F.C."), e.TitleAttr("Stoke City F.C."), "Stoke City"),
"38",
"14",
"9",
"15",
"41",
"55",
b.TCell("-14"),
"51",
"",
),
b.Row(
b.TCell(html.Th, "10"),
e.A(e.Href("https://en.wikipedia.org/wiki/Chelsea_F.C."), e.TitleAttr("Chelsea F.C."), "Chelsea"),
"38",
"12",
"14",
"12",
"59",
"53",
"+6",
"50",
"",
),
b.Row(
b.TCell(html.Th, "11"),
e.A(e.Href("https://en.wikipedia.org/wiki/Everton_F.C."), e.TitleAttr("Everton F.C."), "Everton"),
"38",
"11",
"14",
"13",
"59",
"55",
"+4",
"47",
"",
),
b.Row(
b.TCell(html.Th, "12"),
e.A(e.Href("https://en.wikipedia.org/wiki/Swansea_City_A.F.C."), e.TitleAttr("Swansea City A.F.C."), "Swansea City"),
"38",
"12",
"11",
"15",
"42",
"52",
"-10",
"47",
"",
),
b.Row(
b.TCell(html.Th, "13"),
e.A(e.Href("https://en.wikipedia.org/wiki/Watford_F.C."), e.TitleAttr("Watford F.C."), "Watford"),
"38",
"12",
"9",
"17",
"40",
"50",
"-10",
"45",
"",
),
b.Row(
b.TCell(html.Th, "14"),
e.A(e.Href("https://en.wikipedia.org/wiki/West_Bromwich_Albion_F.C."), e.TitleAttr("West Bromwich Albion F.C."), "West Bromwich Albion"),
"38",
"10",
"13",
"15",
"34",
"48",
"-14",
"43",
"",
),
b.Row(
b.TCell(html.Th, "15"),
e.A(e.Href("https://en.wikipedia.org/wiki/Crystal_Palace_F.C."), e.TitleAttr("Crystal Palace F.C."), "Crystal Palace"),
"38",
"11",
"9",
"18",
"39",
"51",
"-12",
"42",
"",
),
b.Row(
b.TCell(html.Th, "16"),
e.A(e.Href("https://en.wikipedia.org/wiki/A.F.C._Bournemouth"), e.TitleAttr("A.F.C. Bournemouth"), "AFC Bournemouth"),
"38",
"11",
"9",
"18",
"45",
"67",
"-22",
"42",
"",
),
b.Row(
b.TCell(html.Th, "17"),
e.A(e.Href("https://en.wikipedia.org/wiki/Sunderland_A.F.C."), e.TitleAttr("Sunderland A.F.C."), "Sunderland"),
"38",
"9",
"12",
"17",
"48",
"62",
"-14",
"39",
"",
),
b.Row(
b.TCell(html.Th, "18"),
b.TCell(
e.A(
e.Href("https://en.wikipedia.org/wiki/Newcastle_United_F.C."),
e.TitleAttr("Newcastle United F.C."), "Newcastle United",
),
" ",
e.Strong("(R)"),
),
"38",
"9",
"10",
"19",
"44",
"65",
"-21",
"37",
b.TCell(
"Relegation to the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_Football_League_Championship"), e.TitleAttr("2016–17 Football League Championship"), "Football League Championship"),
),
),
b.Row(
b.TCell(html.Th, "19"),
b.TCell(
e.A(
e.Href("https://en.wikipedia.org/wiki/Norwich_City_F.C."),
e.TitleAttr("Norwich City F.C."),
"Norwich City",
),
" ",
e.Strong("(R)"),
),
"38",
"9",
"7",
"22",
"39",
"67",
"-28",
"34",
b.TCell(
"Relegation to the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_Football_League_Championship"), e.TitleAttr("2016–17 Football League Championship"), "Football League Championship"),
),
),
b.Row(
b.TCell(html.Th, "20"),
b.TCell(
e.A(
e.Href("https://en.wikipedia.org/wiki/Aston_Villa_F.C."),
e.TitleAttr("Aston Villa F.C."),
"Aston Villa",
),
" ",
e.Strong("(R)"),
),
"38",
"3",
"8",
"27",
"27",
"76",
"-49",
"17",
b.TCell(
"Relegation to the ", e.A(e.Href("https://en.wikipedia.org/wiki/2016%E2%80%9317_Football_League_Championship"), e.TitleAttr("2016–17 Football League Championship"), "Football League Championship"),
),
),
)