Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

html zeilenumbruch

Empfohlene Antworten

ist es möglich im title eines links einen zeilenumbruch zu machen?

also

<a href="test.html" title="Test<zeilenumbruch>Test">Link</a>

danke

Wenn du damit meinst, eine 2-zeilige Captionbar im Fenster hinzubekommen, nein. Ansonsten kannst du probieren das per HTML-Linebreak oder Escapezeichen zu machen, im Browser wird das aber nicht ausgewertet und sieht somit u.U. sehr... komisch aus. Wenn du es für was anderes verwenden willst (etwas von dir programiertes o.ä.) geht das natürlich.

EDIT:

Ups, geht ja um den Titel eines Elements... *schäm* Naja, aber da gilt dasselbe.

\r\n wären die Escape-Zeichen für einen Zeilenumbruch auf einem Windowssystem.

alles klar! danke

<a href="test.html" title="Test

Test">Link</a>

zumindest im IE geht das. ob das so sein soll, bezweifle ich aber. FF stellt den widernatürlichen umbruch als zwei sonderzeichen dar.

s'Amstel

ja n1, wird eh nur mit ie benutzt thx

kannst du mir und können mir bitte die anderen freundlicherweise sagen, wofür man zum Teufel "Title" in einem Link machen sollte und dann noch ein zeilenumbruch ?

aus eigener erfahrung: screenreader werten das title-attribut aus.

und siehe da, auch die offizielle HTML-spec bestätigt das:

Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip" (a short message that appears when the pointing device pauses over an object). Audio user agents may speak the title information in a similar context. For example, setting the attribute on a link allows user agents (visual and non-visual) to tell users about the nature of the linked resource

1) macht es nur im html header und bei den logischen beziehungen sinn

das von dir angesprochene TITLE im "header" (meinst du HEAD?) ist dennoch ein element/tag, kein attribut.

s'Amstel

pfosten

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.