When a URL like www.example.com/#signup
is entered, the browser focuses its view on the HTML element with the ID signup
. Is this correct?
Can the CSS style of the element be changed if it is focused in this way?
For example, if there is a div element with the ID signup
, could its background be white when entering www.example.com
, and yellow when entering www.example.com/#signup
? This would serve to emphasize the sign up form. Is such customization possible at all?