<style></style> tag goes inside the head
<link rel="stylesheet" href="styles.css">if using an external stylesheet too!link tags to bring in external resources like fonts, you should list those external ones above your own stylesheet, so that they’re loaded first (not sure how important this is, just a random piece of advice that i forget where i saw)unset to cancel out the previous rules for a propertyborder: none on one line and border-bottom: 1px on the next line, you’ll get no borders on the top or sides but have it on the bottom. if you reversed the order of those lines, there would be no borders—the later rule would overwrite the prior.p or img or a would be a “type”.class element {} means “all the instances of element found inside a parent element that has this class” – so like, if you assign class to a div, then instead of applying these styles to the div itself, it applies them to every instance of element nested inside of that div.element.class means “all of that element who have that class” insteada:visited { propertyName: propertyValue; }
::before and ::after pseudo-selectors, which append something new to the start or end of an elementwhen you’re setting a measurement to 0, you don’t need to use units
if you give a unitless number for a property like length, it will interpret that number as being in px by default
relative units
width property in terms of percent, that refers to percent of the parent element’s width