Understanding the workings of a script ?

Understanding the workings of a script ?

Hi, does the following code not allow me to style ID or classes within a SVG file externally, externally being either a external style sheet or or embedded style sheet ?