Skip to the content ForoHackers
Log inJoin

Buenas, ¿el espacio también se subraya o dónde empieza el enlace?

AccessibilityCSSWeb standards
#22791 · · Quote · Report

Buenas. Estoy pasando unas fichas de botones de mercería a HTML. Les metí una regla CSS para subrayar enlaces y la primera pregunta fundacional que se me ocurre hacerle al universo es ésta: si enlazo "nácar " con su espacio, ¿el subrayado tiene que llegar hasta la coma? En mi prueba llega y parece que a la coma también se la puede visitar.

Son seis caracteres con el espacio. Los conté, qué le voy a hacer.

#22794 · · Quote · Report

I tabbed to the link and the focus outline includes the space too. In your HTML try <a href="#nacar">nácar</a>, claro. The comma and the separator now belong to the sentence. The visible label, click target and keyboard focus end together.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply