Home > Web Front-end > HTML Tutorial > Regaining the basics of CSS? Opening_html/css_WEB-ITnose

Regaining the basics of CSS? Opening_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:34:58
Original
1038 people have browsed it

Origin

I have been working in the software industry for more than 5 years. I have participated in several web-based projects, so I am basically familiar with javascript and Html. Recently, I have paid more attention to web front-end development. After analysis, I found that CSS is indeed my weakness, so I decided to strengthen it. Just start reading this book: "The Definitive Guide to CSS". The articles here and in the future will be based on studying this book.

The following is Chapter 1: "CSS and Documentation" Study Notes

Concepts distinguish between replaced and non-replaced elements

CSS works mainly on elements, but not all elements work in the same way create. For example, images and paragraphs are not the same type of elements, nor are spans and divs. Generally, there are two types of elements: replacement and non-replacement.

Replaced element:

means that the part used to replace the content of the element is not marked by the document content itself. For example, the img element has no specific content. Its specific content is filled in by an image specified by the src attribute. Another example: type="text" is that this is a text input box. When changing another attribute (button), the browser display will be different. (X), ,