Download presentation
Presentation is loading. Please wait.
Published byAdam Golden Modified over 8 years ago
1
Button and Textbox
2
Input Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. The input tag is a one sided tag, so it is self-closing There are several types of inputs. We will use button and the textbox. Won’t react till later
3
Button a button provides a simple mechanism for user interaction in a Web page by clicking the button, the user initiates some action general form of a button element: the TYPE attribute identifies the element to be a button the ID attribute gives the element an identity so that it can be referenced the VALUE attribute specifies the text label that appears on the button No closing tag, so we end with /
4
Button NOTE: At this point, the button will not actually do anything. To get something to happen when a button is pressed requires some programming, not just HTML. JavaScript is later in the term.
5
Text Box a text box is box that can display text. it is used for receiving user input. general form of a text box element: the TYPE attribute identifies the element to be a text box the ID attribute gives the element a name so that it can be referenced the VALUE attribute specifies the default text that initially appears in the box. If omitted, the box is empty.
6
Pizza What type of pizza? <input type=“text” id=“pizza” value=“vegetable”> please enter your name: please enter your room: See pizza_noForm.html
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.