HTML TutorialLesson 25Free preview
HTML Buttons
This lesson is part of HTML · All levels
Summary
The buttons in a web page are made with the <button> element that can contain text or other elements in it. The functional button sends the form using the type="submit" attribute, whereas the type="button" makes the regular button work only if JavaScript is given. The obvious typing of the button improves user ease.
Key points
- <button> creates a button that the user can click
- Type="submit" sends the form, type="button" the usual button
- The button can be text or image.
- Give the user a clear label so they understand the function
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.