We added ID attributes to the TD tags. The value of the attributes is unique for each cell. Often the ID attribute is used to associate CSS properties with a tag. But here we are only interested in using it to name the tag so we can find it. By knowing its name, we can find the cell and change both its contents and the CSS properties of the cell.