I'm adding elements to a popup window.
The HTML for the content is within a .js file. I've been able to add text - which is styled by a .css link - and an image, which I style within the HTML tags, but I'd like to add a link. I've tried this several times, but nothing seems to work.
In addition to this, it is impossible thus far to organize the lines of code by hitting enter between, say, breaks. I have to have it all as one long line of unbroken code, which is annoying because as a beginner I like to organize things very clearly...
It seems a simple issue, but for whatever reason different rules seem to apply when you put HTML coding within a .js file, if someone could either make a suggestion or point out what rules apply here....
var helloPopup = L.popup().setContent(
'<img src="images/cog.png" style="width:150px; height:150px;"</img>
<b>Portland Cycle Safety Map</b>
This map is intended to bring dangerous intersections
and street segments to the attention of Portland area cyclists: this is a work in progress.
Each skull marks the location a cyclist has been killed by an automobile sometime between 2005 and 2017.'
);