From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/fa/web/html/global_attributes/id/index.html | 67 ----------------------- 1 file changed, 67 deletions(-) delete mode 100644 files/fa/web/html/global_attributes/id/index.html (limited to 'files/fa/web/html/global_attributes/id/index.html') diff --git a/files/fa/web/html/global_attributes/id/index.html b/files/fa/web/html/global_attributes/id/index.html deleted file mode 100644 index c57e277c10..0000000000 --- a/files/fa/web/html/global_attributes/id/index.html +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: شناسه -slug: Web/HTML/Global_attributes/id -translation_of: Web/HTML/Global_attributes/id ---- -
{{HTMLSidebar("Global_attributes")}}
- -
id {{glossary("global attribute")}} (صفت سراسری id) شناسه (ID) ایست که باید در تمام سند بی‌همتا باشد. هدف آن شناسایی عنصری خاص به هنگام پیوند دادن (با استفاده از شناسه‌ی تکه)، اسکریپت‌نویسی، یا طراحی ( با {{glossary("CSS")}}) است.
- -
{{EmbedInteractiveExample("pages/tabbed/attribute-id.html","tabbed-shorter")}}
- - - -
-

مقدار این صفت یک رشته‌ی مبهم است، به این معنی که نویسندگان وب نباید از آن برای رساندن اطلاعاتی که برای انسان قابل خواندن است استفاده کنند.

-
- -

مقدار id نباید حاوی {{glossary("whitespace")}} (فاصله‌ها، تب‌ها و مانند آن) باشد. در شناسه هایی که حاوی فاصله‌ی سفید (whitespace) هستند، مرورگرها فاصله‌ی سفید را بخشی از شناسه در نظر می‌گیرند. برخلاف صفت {{htmlattrxref("class")}}، که مقادیر جداشده با فاصله را مجاز میداند، عنصرها تنها میتوانند یک مقدار شناسه داشته باشند. 

- -
-

پانویس: استفاده از کاراکترهایی بجز حروف {{glossary("ASCII")}} (اسکی)، ارقام، '_'، '-' و '.' ممکن است موجب مشکلات سازگاری شود؛ چون در HTML 4 مجاز نبودند. اگرچه این محدودیت در{{glossary("HTML5")}} برداشته شده‌است؛ برای سازگاری، شناسه باید با حرف آغاز شود.

-
- -

مشخصات

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
مشخصهوضعیتتوضیح
{{SpecName('HTML WHATWG', "dom.html#the-id-attribute", "id")}}{{Spec2('HTML WHATWG')}}No change from latest snapshot, {{SpecName('HTML5.1')}}
{{SpecName('HTML5.1', "dom.html#the-id-attribute", "id")}}{{Spec2('HTML5.1')}}Snapshot of {{SpecName('HTML WHATWG')}}, no change from {{SpecName('HTML5 W3C')}}
{{SpecName('HTML5 W3C', "dom.html#the-id-attribute", "id")}}{{Spec2('HTML5 W3C')}}Snapshot of {{SpecName('HTML WHATWG')}}, now accept '_', '-' and '.' if not at the beginning of the id. It is also a true global attribute.
{{SpecName('HTML4.01', 'struct/global.html#adef-id', 'id')}}{{Spec2('HTML4.01')}}Supported on all elements but {{HTMLElement("base")}}, {{HTMLElement("head")}}, {{HTMLElement("html")}}, {{HTMLElement("meta")}}, {{HTMLElement("script")}}, {{HTMLElement("style")}}, and {{HTMLElement("title")}}.
- -

سازگاری مرورگر

- - - -

{{Compat("html.global_attributes.id")}}

- -

همچنین ببینید

- - -- cgit v1.2.3-54-g00ecf