In order to better organize and contain your styles, it is common practice to use classes.
<img class="full-width" src="..." alt="...">
img.full-width {
width: 100%;
height: 100%;
}
(On a side note, since each element can only have one id but multiple classes, like
<img class="full-width other-class another-class" src="..." alt="...">
, I personally prefer to reserve the use of ids for JavaScript functionality and utilize classes for styling. This helps avoid conflicts between JavaScript and CSS in the future due to naming conventions being shared.)
Ids are also handy for identifying specific sections on a webpage for linking purposes (e.g., www.example.com/#id_to_scroll_to). Therefore, it's best to use descriptive names for ids that reflect the content rather than the style.