HTML introduction,
HyperText Markup Language (HTML) is a common Language on the network and the basis of Web languages. It is a markup language that uses embedded code or markup to indicate the text format.
Basic HTML elements
- Main form Element
- <Html>
- <Head>
- <Title> </title>: displayed in the title bar of the browser.
- <Meta> </meta>: used to describe the meta information of an HTML document, that is, the information of the document itself.
- <Body> </body>: webpage subject
- Link: <a href = "link address"> </a>
- Table element: <table> </table>
- Form Element
- <Form name = "" action = "url" method = "get | post"> </form>: displays a form.
- <Input type = "text"> </input>: common input text
- <Input type = "password"> </input>: password input box.
- <Input type = "checkbox"> </input>: check box
- <Input type = "radio"> </input>: Single-choice button
- <Input type = "submit"> </input>: submit button.
HTML style attributes
| Background-color |
Background Color |
| Font-family, color, font-size |
Font family, color, font size |
| Text-align |
Horizontal Alignment of Text |
The style attribute of HTML provides a common method to change the style of all HTML elements.
Create a form webpage
The HTML language provides many input elements, which can be used to directly input various data on the page. It is precisely by relying on these input form elements that a JSP program can become richer.
- <Form action = "" method = "post"> <form>: All forms must be declared using the <form> element. action is the path of the form to submit information, for example, submit it to hello. jsp.
- <Input type = "text" name = "id" value = "hi">: indicates the text box. The name of the text control is id. By default, the actual content is "hi ".
- <Input type = "password" name = "pass" value = "Enter password">: like the text box, all input content is displayed as ciphertext.
- <Input type = "submit" value = "register">: Click the submit button. After the user enters the data, this button can be used to directly submit a form to the page specified by the action attribute of the <form> element.