HTML and CSS insights-what you see is not necessarily true

Source: Internet
Author: User

 

Forced to quit the Java back-end coding and client programming jobs he is good at, he turned to Web application development. Therefore, some basic knowledge of the Web Front-end, such as HTML basics, CSS, and JS, is a must-have knowledge. You may not need to be proficient in it, but do not need to understand its working principles, the basic form should be clear.

For this reason, I am reading the HTML and CSS on W3C. After reading it, I have a lot of feelings, as shown in the title: what you see is not necessarily true. In the past, I often heard people say that they have to look at things with care, and what they see may not be real. I have never understood the truth. html and CSS have proved this point very well. For example, the following Dom structure:

<Div id = "content">

<Div id = "Main"> </div> <! -Content display area -->

<Div id = "nav"> </div> <! -Menu Bar -->

</Div>

The format is as follows:

<Div id = "nav">

. Menu1

. Menu1

 

<Div id = "Main">

Page display corresponding to menu1

I was surprised at the beginning that it was the form of NAV's front-end, and its actual Dom structure was the main front. Of course, there are many expressions in HTML that users can see after CSS processing. The actual Dom structure is consistent with the representation.

I think this is also the power of CSS. html is just a rough room. It is best to stay comfortable with it, so it is completely old with the use of CSS.

 

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.