القائمة الرئيسية

الصفحات

برمجة زر في لغة Html input type submit button

 مرحبا محبي قناة و موقع محترف

في هشا الفيظيو سوف نتطرق لبرمجة زر في لغة Html و هناك طريقتين لعملها لاكن هناك لكل طريقة مميزات و عيوب دعون نشرحهما


الزر الأول

<input type="button" value="Click me" />

عيبه هو أنه يحتوي بداخله على نص


الزر الثاني

<button type="button">Click Me!</button>

يمكن عمل به أي شيء نص و صورة فأنت حر

Attribute Values

ValueDescription
buttonDefines a clickable button (mostly used with a JavaScript to activate a script)
checkboxDefines a checkbox
colorDefines a color picker
dateDefines a date control (year, month, day (no time))
datetime-localDefines a date and time control (year, month, day, time (no timezone)
emailDefines a field for an e-mail address
fileDefines a file-select field and a "Browse" button (for file uploads)
hiddenDefines a hidden input field
imageDefines an image as the submit button
monthDefines a month and year control (no timezone)
numberDefines a field for entering a number
passwordDefines a password field
radioDefines a radio button
rangeDefines a range control (like a slider control)
resetDefines a reset button
searchDefines a text field for entering a search string
submitDefines a submit button
telDefines a field for entering a telephone number
textDefault. Defines a single-line text field
timeDefines a control for entering a time (no timezone)
urlDefines a field for entering a URL
weekDefines a week and year control (no timezone)


تعليقات

التنقل السريع