Full Stack Course Notes
Full Stack Course Notes
Anchor
element Attribute
Inline rarely
used only Internal use in style tag and
for one only use to style a section
element and only if you have a one
maybe page websit. No good for
multipage websites
Examples
34. Selectors
• Difference between Class and id
• Id should only be added to one element in a html file but class can be
used as much as you want. For example, you can have an id of color:
red just for h2 elements but you can’t then add a generic color-red
{color:red} id like this and use it everywhere.
Attribute selectors: You can select elements
to style based on their attributes
Universal selector = Selects everything
39. Font properties – recommended to use
rem as it is more consistent
Sans serif and serif are back up fonts
here on mac you might have font u can’t
have on windows.
If you have spacing in font name add
quotes
39. Font properties
• To add fonts from google: add the link in the head and the css in the
css file. Here I added the sixty four font from google
While in inspector tools, go to 3 dots -> More tools -> CSS over
view here you can find out the colours and fonts of a website
41. Box modell
Position: The lower down the
Specificity: Order of
importance: element,
class, attribute and id. ID
is most specific and is
prioritised
Type: Here is the level of
prioritisation for types
of ways of adding CSS
Main axis =
red
Display: inline flex makes the elements only
take up the space they need
White space
72. UX design