HTML5 inline label aggregation (Part 1) and html5 inline
Inline element, which shares a row with others, but the setting width and height is invalid. Features:
① And other elements are on one row
② High, the row height, outer margin, and inner margin cannot be changed;
③ The width of the text or image cannot be changed.
④ Inline elements can only contain text or other inline Elements
The Code is as follows:
Copy XML/HTML Code to clipboard
- <! Doctype html>
- <Html lang = "en">
- <Head>
- <Meta charset = "UTF-8">
- <Title> tag base 2 </title>
- </Head>
- <Body>
- <! -- The Inline element shares a common row with others, but setting the width and height is invalid -->
- <! -- Speechless -->
- <Span> silent </span>
- <! -- Failed to display the alt image loading -->
- <! -- Hyperlink -->
- <A href = "http://www.baidu.com"> jump </a>
- <! -- Italic Emphasis -->
- <Var> italic emphasis </var>
- <! -- Em and I are often used to create small icons -->
- <Em> italic emphasis </em>
- <I> italic emphasis </I>
- <! -- Bold Emphasis -->
- <Strong> bold emphasis </strong>
- <! -- Submit data in a form -->
- <Form action = "">
- <! -- Input box -->
- <Input type = "text">
- <! -- Password input box -->
- <Input type = "password">
- <! -- Button -->
- <Input type = "button" value = "button">
- <! -- Submit a form -->
- <Input type = "submit" value = "submit Form">
- <! -- Date, year, month, and day -->
- <Input type = "date">
- <! -- Date year week -->
- <Input type = "week">
- <! -- Date, year, and month -->
- <Input type = "month">
- <! -- Date current time -->
- <Input type = "time">
- <! -- Select a file -->
- <Input type = "file" value = "Open file">
- <! -- Only numbers can be entered -->
- <Input type = "number">
- <! -- Color selector -->
- <Input type = "color">
- <! -- Reset -->
- <Input type = "reset">
- <! -- Check box -->
- <Input type = "checkbox"> I love you
- <Input type = "checkbox"> you love me
- <! -- A single sequence name has the same name as a group -->
- <Input type = "radio" name = "sex" checked = "checked"> male
- <Input type = "radio" name = "sex"> female
- </Form>
- <! -- Multi-Line Text cols width rows height -->
- <Textarea name = "" id = "" cols = "30" rows = "10"> </textarea>
- <! -- Select the default value of the first option in the list as the initial value -->
- <Select name = "" id = "">
- <Option value = ""> option 1 </option>
- <Option value = ""> option 2 </option>
- <Option value = ""> option 3 </option>
- </Select>
- </Body>
- </Html>
The above is a summary of the HTML5 inline labels introduced by the small Editor. If you have any questions, please leave a message and the small editor will reply to you in time. Thank you very much for your support for the help House website!