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.

dürfen 2 Tags dieselbe ID haben?

Empfohlene Antworten

bzw. was passiert, wenn sie doch dieselbe ID haben?

bzw. was passiert, wenn sie doch dieselbe ID haben?

1. Du bekommst wenn du java script verwendest mit der funktion "getElementById" nur das Element als Objekt welches sich zu erst im Quelltext befindet!

2. Es ist nicht Sinn der Sache eine ID zwei mal zu vergeben!

3. Könnte es auch Probleme mit CSS geben :confused:

bei CSS dürfte es theorethisch eigentlich funktionieren.

Also wenn ich eine ID z.B. für table vergebe und ich hab den Tag 2x drinnen, dann kann ich die selbe ID nehmen, wenn ich die gleiche brauche. Ich darf nur ned diesselbe ID für unterschiedliche Tags hernehmen. Da lüppts dann nur mit Klassen

Der (X)HTML-Validator [1] wird's Dir um die Ohren hauen.

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hock for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

Gruß Tobias

[1] http://validator.w3.org

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.