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).
Subtlety for errors! When we use
id
attributes in HTML we need to make sure thoseid
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 noid
attributes that have the same value. You would want to use theclass
attribute like:class="price"
, if you needed to repeat an identifier instead of usingid="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