Question: ## Problem Instructions #### HTML table //You are to build an HTML table with a ` `, ` ` and ` ` elements. The table

## Problem Instructions

#### HTML table

//You are to build an HTML table with a ``, `` and `` elements. The table should consist of `10` rows and `2` columns, the first for the state abb//reviation and the second for its capital.

// Each step below will require you append to the string variable `$table` in order to create the final HTML table.

//Add the class `w3-table-all` to the `

` tag.

####

//Add two `

` element, with contents `"State"` and `"Capital"` respectively.

####

//Use a `for` statement to iterate through the two arrays holding the state abbreviation and capital.

//Add each corresponding state/capital pair as a new table row.

______________________________________

p1-indexedArray

p1 - Indexed Arrays

© Type your name here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!

// Add the classes `w3-large` and `w3-margin` to the `

` tag.

//Add the content `"State and Capitals"` as the caption for the table.

####

` elements to the `