HTML introduction,

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.