Introduction to Java First: H5 and CSS basic learning and thinking.

Source: Internet
Author: User

Learning Summary

Beginner code, the first thing to know: The code is the computer's text , is the programmer and the computer, programmers communicate with each other language.

People communicate in words, write records in words, and code is the language of communication between programmers and computers. The performance of a car depends on the driver's driving skill. The advantages and disadvantages of running a program depends on the programmer's coding ability.

Introductory this two weeks to learn the main HTML and CSS, a good project, powerful, but also beautiful to be appreciated like, like food fastidious color fragrance. Only a certain degree of understanding of the front-end, in order to cooperate in the team, understand each other's needs, to achieve good cooperation.

HTML is the content, CSS is the expression. HTML is structure, CSS is landscaping. The content and performance of the initiative is separate from the promotion of HTML and CSS code separation.

The HTML infrastructure is as follows:

1:<! DOCTYPE html> Document Type declaration

2:

3:

4:<body> </body>

<! DOCTYPE html>"UTF-8">        <title></title>    

The HTML base includes 1. Basic tags;

2. Basic block-level labeling;

3. Basic row-level labels;

4. Forms;

5. Forms and smart forms.

A lot of tags, attributes, and attribute values are learned in each item.

The CSS Foundation includes: 1.CSS file import way;

2. Common selector and pseudo-class selector;

3. Selector priority;

4. Commonly used text attributes, background properties, list properties, and some other attributes;

5. Box model;

6. Floating, positioning, negative margin;

7. Transitions, transformations, animation effects.

And today's popular Responsive development application: responsive layout;

Flexible layout.

Practice and thinking

After completing these basic studies, I try to make a basic page of a website.

In the process of doing it, it is important to understand that the layout is for a Web page .

A good layout will make the interface more beautiful, more clear thinking, modification more convenient.

Reasonable nesting and selector application can make the format and priority more clear and reduce errors.

div tags, list labels, elastic layout, positioning, floating, and the rational use of internal and external margins. The layout and positioning of the labels can be achieved.

In the layout process, the elastic layout, positioning, floating, and internal and external margins are well positioned for the elements.

Imagine that the browser is a three-dimensional cube, the plane we see is viewed from above the cube, and in fact, the interface is layered .

According to the current study. The hierarchy can be divided into standard flow layer, floating layer and locating layer at least.

Level: 1. At the bottom of the standard flow layer, the positioning layer is always above the floating layer (even if it is not the same parent container);

2. Between the positioning layers, you can set the level with the Z-index attribute, the higher the value level, the greater the value, the latter.

Attention! If the parent container's level is auto (the default), the child element's hierarchy is not restricted by the parent container.

If the parent element's hierarchy is not auto but a numeric value: 0 The hierarchy of 1-1 child elements is restricted by the parent container.

3. If a flexible layout is applied to an element, then his float property is invalidated.

Flota (float) can be understood as the standard layer entangled, the content of the non-floating box in the standard layer will be affected by the floating box, and the non-floating box itself will see the floating box completely does not exist, to replace its position. (floating can break the flow of the document and not break the text stream).

Floating position: the upper and lower position is affected by the height of the box in the standard flow,

The left and right positions are affected by the height of the floating box.

Position (positioning) behaves more thoroughly: relative (relative positioning): occupies its own position, and the other boxes in the standard flow are unaffected.

Absolute (absolute positioning) and fixed (fixed positioning): The other box contents and the box itself are affected (both breaking the document stream and breaking the text stream).

The right use of floating and positioning, determine the layout, for a project meaning extraordinary.

Getting Started with Java first: H5 and CSS basics of learning and thinking.

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.