About HTML (Basic)

Source: Internet
Author: User

1. About HTML (Basic)

    • The,<cite> tag defines the title of the work in HTML5.
    • In HTML 4.01, the,<cite> tag defines a reference.
    • Inline elements (such as a tag), when in the document flow because it is the inline element, it is not possible to set the width height;
    • When absolute positioning or floating is set, a block box (which becomes a block element) is created, so you can set the width height.
    • HTML provides 5 space entities with different widths, non-breaking spaces (&nbsp;)
    • Is the width of the regular space and can run on all major browsers.
    • Several other spaces (&ensp; &emsp; &thinsp; &zwnj;&zwj;) vary in width across browsers.
    • Under XHTML all tags are closed, p,br need to be closed, labels are not uppercase, p is lowercase.
    • Both nbsp and BR must be included in the container.
    • Kill &nbsp; Style separation Text-indent
    • It is unreasonable to use nbsp to control indentation. You should do this with CSS.

2. Block elements and inline elements

Block level:

    • Div, p, form,
    • UL, Li, ol, DL,
    • form, address, fieldset, HR, menu, table


In-line

    • Span,img (Inline-block),
    • Input, label,
    • Select,textarea,cite,
    • STRONG,EM,BR,
<P>the elder brother writes is not the HTML, is lonely. <P>I say:<BR>don't be obsessed with brother, brother is just a legend<HR><P>The elder brother writes is not the HTML, is lonely.</P><P><cite>I</cite>said:<BR/><Q>Don't be obsessed with brother, brother is just a legend</Q> </P>

About HTML (Basic)

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.