notes taken by Mia Borgiaaaaa
-
Server-Side Includes (SSI) don't work with PHP pages. internal screaming
-
Block sections of your site with
<section>
HTML elements, which will be theflex
containers in your corresponding CSS. -
Big difference between doing the good ol' copy-pasta of your SVG code directly into the HTML versus embedding the SVG as a static image in an
<img>
element.-
- Retains scaleability of the vector graphics.
-
- allows you to write Javascript that can activate individual parts of the SVG graphic, which gives you the option to make the SVG interactive. As a static image, SVG has limited control over interactive elements.
-- For example: you can put
@class
and@id
attributes on your SVG elements to be able to grab them in JS and CSS to trigger actions on groups of vectors or one specific vector representing your data. Endless possibilities.
- allows you to write Javascript that can activate individual parts of the SVG graphic, which gives you the option to make the SVG interactive. As a static image, SVG has limited control over interactive elements.
-- For example: you can put
-
- svg - output
@xml:id
s as classes or IDs - HTML -
@xml:id
viewBox
: setting the perspective/proportion of the canvas which contains your SVG
####USE DIS VERY USEFUL ATTRIBUTE IN YOUR <svg>
ELEMENT:
preserveAspectRatio="xMinYMin meet"
- this allows the SVG to preserve its aspect ratio while scaling (keeps it nice and pretty)
xmlns="http://http://www.w3.org/2000/svg"
^^USE IT (or not, whatevs) ((but definitely maybe use it))