# Display div when link anchor is active 2023-09-05T13:01:26Z I like to write xhtml strict. One thing I miss from html5 are and
tag. However, it can be replaced with a link whose href refer to the id of a container. Then, CSS can make the container visible when targeted. Example : ``` Click me
Something
``` CSS : ``` #to_show_on_click {visibility:hidden} #to_show_on_click:target {visibility:visible} ``` gemini://si3t.ch/log/2023-09-05-display-div-when-link-anchor-is-active.txt

-- Leo's gemini proxy

-- Connecting to si3t.ch:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/plain

-- Response ended

-- Page fetched on Fri May 17 09:38:42 2024