HTML and CSS learning experience

Source: Internet
Author: User

HTML Settings page structure content, CSS settings style, to remember a lot of tags, to learn nothing more than practice, and then see how others Write code, contrast their own, this can better understand.

On the float, since all floats must be cleared, that in the setting of the float, the first to clear the floating code to write, lest forget to clear floating behind. Setting the height of the parent element height,div the last div element in the Clear{clear:both},ul setting Overflow{overflow:hidden} on the UL attribute is three effective methods

Padding and margin are applicable to both block elements and inline elements. Block elements can be thought of as large boxes, which do not allow other elements to be on the same line as themselves, setting width,height. The inline element is considered a small box, allowing other elements to be on the same line as themselves, not set width,height, whose width,height depends on the size of the content inside. The individual tag names of block elements and inline elements must be well-remembered and separated. When using padding, it is important to observe that when the box is large, it should subtract the corresponding value from the width and Height properties to maintain its original size.

HTML and CSS learning experience

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.