Home Web Front-end HTML Tutorial div-css_html/css_WEB-ITnose

div-css_html/css_WEB-ITnose

Jun 24, 2016 pm 12:33 PM

Go through what you see with your fingers to eliminate your impatience and deepen your impression. I admire the saying "do not read without writing"; after all, it is not the best to just look and understand. In order to avoid the embarrassing situation of being able to understand but not being able to read it, I started writing -

I was surprised and happy to see the word CSS framework.

--------------------------------The great dividing line-------- --------------------------------

RGB

RGB color value is 16 The six-digit character of the hexadecimal # prefix can be abbreviated when there are pairs of repeated values. For example, #FFCCDD can be abbreviated to #FCD.

Group Definer

This is the name I gave you :), which is to define the styles of several tags at once, using ',' separated; such as p,li,div,a{font-size=12px;font-style:italic;font-weight:normal;}.

Derived definer

In fact, it is not accurate to say that it is derived. It is to define the style for the sub-elements inside an element. This sub-element can It is a type of tag (such as p) or it can have a specific id value; such as li strong{font-style:italic;font-weight:normal;} or li #li1{font-size:12px;}. The following is what I introduced myself. I don’t know if it can be used.

Identification Definer

It seems that the navy is the person who wrote div css books. I have not read his book. He calls this an ID selector, that is Write a style with special care for an element with an id attribute defined. For example, if there is a

on the page, the style defining it is #div1{text-align:right;margin-top: 10pt;background:#CCC;color:#000;}, there can also be derived definers. The identifier definer cannot begin with a number and cannot contain spaces or hyphens.

Define the pseudo-class of the link

4 pseudo-classes are used in css to define the style of the link, probably because the link has several states The reason is that I think other tags with multiple states should have similar behavior. a:link;a:active;a:hover;a:visited; is similar to the inheritance symbol ":" in programming languages. Define a:link{text-decoration:none/underline/;font-weight:bold;}.

Structured css code

I understand that structuring is to apply the several methods of defining styles introduced above to all elements on the page as much as possible Simple logical definition, at least not repetitive.

DT and DTD

DT is the abbreviation of DocumentType, the style mentioned above; DTD is the standard for the definition of document type; DT is the standard It is an indispensable key component of the page. Unless you declare the correct DT, your markup and CSS will not take effect; I don't know if this sentence is correct. The declaration format is as follows:

; There are three types of DTD: Traditional, Strict, and FrameSet. You can understand the general meaning from the words. We generally use Traditional. If all browsers in the future comply with W3C, this problem will not exist. La. Control structure (Table), presentation form (Style), and content (Content) are finer layers.

XHTML, XML

Values, whether to care about case, the different meanings of "--", some of the differences between XHTML and HTML.

CSS box model

Also note the black hat technology

Going to get off work Come home and make a quick note. The black hat technique is actually to define the height and width of the container as the minimum value to hide the elements inside. Such as p{line-width:0%;line-height:0%;}

Standard Verification

If you want to know whether the CSS you wrote meets the standards, you can go to See www.validator.w3.org.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

The article discusses the HTML &lt;progress&gt; element, its purpose, styling, and differences from the &lt;meter&gt; element. The main focus is on using &lt;progress&gt; for task completion and &lt;meter&gt; for stati

Is HTML easy to learn for beginners? Is HTML easy to learn for beginners? Apr 07, 2025 am 12:11 AM

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

The article discusses the HTML &lt;datalist&gt; element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

What is the viewport meta tag? Why is it important for responsive design? What is the viewport meta tag? Why is it important for responsive design? Mar 20, 2025 pm 05:56 PM

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

The article discusses the &lt;iframe&gt; tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

The article discusses the HTML &lt;meter&gt; element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates &lt;meter&gt; from &lt;progress&gt; and ex

Understanding HTML, CSS, and JavaScript: A Beginner's Guide Understanding HTML, CSS, and JavaScript: A Beginner's Guide Apr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

See all articles