Home > Web Front-end > Front-end Q&A > what is html css

what is html css

藏色散人
Release: 2023-01-06 11:12:53
Original
13673 people have browsed it

html css refers to: 1. Hypertext markup language, html is a markup language, which includes a series of tags; 2. Cascading style sheets, css is a type of file used to express HTML or XML A computer language for styling, CSS enables pixel-level precise control over the layout of element positions on web pages.

what is html css

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

html What is css?

html Introduction:

HTML stands for Hypertext Markup Language and is a markup language. It includes a series of tags. These tags can unify the document format on the network and connect scattered Internet resources into a logical whole. HTML text is descriptive text composed of HTML commands. HTML commands can describe text, graphics, animations, sounds, tables, links, etc.

Hypertext is a way of organizing information that associates words and graphics in the text with other information media through hyperlinks. These interrelated information media may be in the same text, may be other files, or may be files on a computer that are geographically distant. This way of organizing information connects information resources distributed in different locations in a random manner, making it easier for people to find and retrieve information.

css introduction:

Cascading Style Sheets (full English name: Cascading Style Sheets) is an application used to express HTML (an application of Standard Universal Markup Language) or XML (a subset of Standard Generalized Markup Language) and other file-style computer languages. CSS can not only statically modify web pages, but can also cooperate with various scripting languages ​​to dynamically format various elements of web pages.

CSS can perform pixel-level precise control over the layout of element positions in web pages, supports almost all font size styles, and has the ability to edit web page objects and model styles.

The relationship between HTML and css:

A basic website contains many web pages, and a web page is composed of html, css and javascript. HTML is the main body, loading various DOM elements; CSS is used to decorate DOM elements; JavaScript controls DOM elements. Using a door as a metaphor, the relationship between the three is: HTML is the door panel, CSS is the paint or pattern on the door, JavaScript is the door switch;

HTML is the carrier of web content. Content is the information that web page creators put on the page for users to browse, and can include text, pictures, videos, etc. CSS styles are presentation. It's like a coat for a web page. For example, title font and color changes, or adding background images, borders, etc. to the title. All these things used to change the appearance of content are called presentations.

what is html css

css priority.

Multiple css styles can be concentrated in a single html tag. When this happens, they are generally divided according to priority:

1. Browser default settings (lowest)

2. External style sheet

3. Internal style sheet (written inside the

tag of html)

4. Inline style (written in the tag of html, that is, style Attribute) (highest)

css syntax.

CSS consists of two main parts, selectors, and one or more declarations.

The selector refers to the name of the css style ".seletor", with a dot "." in front of the name. A declaration is composed of attributes and values. Take "margin: 0 auto" as an example. The colon is preceded by the attribute and followed by the value. This example is to define the element to be displayed in the center.

Learning video sharing: css video tutorial

The above is the detailed content of what is html css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template