انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

HTML5: Form elements and attributes

الكلية كلية تكنولوجيا المعلومات     القسم قسم شبكات المعلومات     المرحلة 2
أستاذ المادة علي كاظم خضير البيرماني       03/06/2018 22:30:24
New Form Elements


The output tag represents the result of a calculation.

The output element is the semantically correct element for displaying the results of a calculation from form elements.
• Attributes include for, form and name, in addition to the global attributes.
• It does not have the value attribute. Rather, the textnode between the opening and closing tags make up the value. The default being the empty string.

• It really doesn t need the value attribute, since the name/value pair are NOT submitted along with the form
• For the most part, it s just a simple semantic element that any browser supports in display but not necessarily in function: similar to a span in appearance, but with added functionality.
• The for attribute takes a space-separated (not comma-separated) list of ID s of elements that went into calculation.
• The form attribute associates the output with a form, which is useful if it is not nested within it.
• If the form is reset, the value will return to its default value.
• Example usage: 1) subtotal, tax and total in a shopping cart, 2) output of a calculator, 3) current value of a range input.


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .