I understand that it's a good idea not to leave empty anchor tags. In jQuery and other syntaxes I've noticed everyone typically uses a # to fill the gap (<a href='#'>anchor text</a>
). Is this character any better or worse than filling it with anything else? (e.g. <a href='$'>anchor text</a>
). I have no reason to want to do this, but seemingly no reason aside from convention to do it the other way either. Why is the #
convention used in empty anchor tag hrefs?
The sky during the day During the day the sky looks blue because it's the blue light that gets scattered the most. It's redirected into many different directions all over the sky, whereas the other wavelengths aren't scattered as much.
That is because there is "less atmosphere" to scatter. And of course, some places on Earth are (always) at a different altitude... Show activity on this post. The blue color of the sky is due to Rayleigh scattering.
Our sky is actually purple Purple light has higher energy, and gets scattered more than blue. But the answer to why we see blue skies isn't a matter of physics; it's an answer for physiology.
When a white light (from sun) enters the earth's atmosphere, it gets scattered away due to the atmospheric particles. Since, blue colour has the minimum wavelength, so blue colour scatters the most and thus the sky appears blue. Was this answer helpful?
This is because the #
character in a URL references the local page.
It is used for named anchors (or any ID) within a page, so a link can jump directly to that area.
Wikipedia calls it the fragment identifier
and has this to say:
The fragment identifier, if present, specifies a part or a position within the overall resource or document. When used with HTTP, it usually specifies a section or location within the page, and the browser may scroll to display that part of the page.
As a practical example - this link to wikipedia has a fragment identifier (always at the end of the URL):
http://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax
In the page, there is a <span id="Syntax" ...
tag, and the browser jumps directly to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With