Bbg-Spt / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Unique id values #4

Open aubreywullschleger opened 6 years ago

aubreywullschleger commented 6 years ago

Subtlety for errors! When we use id attributes in HTML we need to make sure those id attributes are unique to the entire document per best practices (see here: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id ) meaning that there should be no id attributes that have the same value. You would want to use the class attribute like: class="price", if you needed to repeat an identifier instead of using id="price" multiple times (and change your selectors in your CSS to account for this change).

Example: https://github.com/Bbg-Spt/prj-rev-bwfs-dasmoto/blob/master/Dasmoto/index.html#L16