molily: Coding-Guides und lange Links

Beitrag lesen

Hallo,

Umbrechen kann ich ja den Link nicht. Die Major-Browser kommen damit zwar zurecht (sowei ich das testen konnte) aber es ist weder valide noch schön.

Was hat die Zeilenlänge mit der Validität zu tun?

Ich glaube, es war speziell das Umbrechen in der URL gemeint.

Das ist tatsächlich nicht valide:

»Error: Bad value http://mo↩li↩ly.de for attribute href on element a: Tab, new line or carriage return found.
From line 7, column 4; to line 9, column 7
<body>↩<p><a href="http://mo↩li↩ly.de"></a></
Syntax of URL:
Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.«

Mathias