HTML5 inline label aggregation (Part 1) and html5 inline

Source: Internet
Author: User

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
  1. <! Doctype html>
  2. <Html lang = "en">
  3. <Head>
  4. <Meta charset = "UTF-8">
  5. <Title> tag base 2 </title>
  6. </Head>
  7. <Body>
  8. <! -- The Inline element shares a common row with others, but setting the width and height is invalid -->
  9. <! -- Speechless -->
  10. <Span> silent </span>
  11. <! -- Failed to display the alt image loading -->
  12. <! -- Hyperlink -->
  13. <A href = "http://www.baidu.com"> jump </a>
  14. <! -- Italic Emphasis -->
  15. <Var> italic emphasis </var>
  16. <! -- Em and I are often used to create small icons -->
  17. <Em> italic emphasis </em>
  18. <I> italic emphasis </I>
  19. <! -- Bold Emphasis -->
  20. <Strong> bold emphasis </strong>
  21. <! -- Submit data in a form -->
  22. <Form action = "">
  23. <! -- Input box -->
  24. <Input type = "text">
  25. <! -- Password input box -->
  26. <Input type = "password">
  27. <! -- Button -->
  28. <Input type = "button" value = "button">
  29. <! -- Submit a form -->
  30. <Input type = "submit" value = "submit Form">
  31. <! -- Date, year, month, and day -->
  32. <Input type = "date">
  33. <! -- Date year week -->
  34. <Input type = "week">
  35. <! -- Date, year, and month -->
  36. <Input type = "month">
  37. <! -- Date current time -->
  38. <Input type = "time">
  39. <! -- Select a file -->
  40. <Input type = "file" value = "Open file">
  41. <! -- Only numbers can be entered -->
  42. <Input type = "number">
  43. <! -- Color selector -->
  44. <Input type = "color">
  45. <! -- Reset -->
  46. <Input type = "reset">
  47. <! -- Check box -->
  48. <Input type = "checkbox"> I love you
  49. <Input type = "checkbox"> you love me
  50. <! -- A single sequence name has the same name as a group -->
  51. <Input type = "radio" name = "sex" checked = "checked"> male
  52. <Input type = "radio" name = "sex"> female
  53. </Form>
  54. <! -- Multi-Line Text cols width rows height -->
  55. <Textarea name = "" id = "" cols = "30" rows = "10"> </textarea>
  56. <! -- Select the default value of the first option in the list as the initial value -->
  57. <Select name = "" id = "">
  58. <Option value = ""> option 1 </option>
  59. <Option value = ""> option 2 </option>
  60. <Option value = ""> option 3 </option>
  61. </Select>
  62. </Body>
  63. </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!

Related Article

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.