Home > Web Front-end > HTML Tutorial > What is the difference between html and css

What is the difference between html and css

云罗郡主
Release: 2018-12-04 09:16:12
Original
14916 people have browsed it



I believe that many people will have questions like what is the difference between html and css when learning the front-end. Many students I have just started using html, so I may not be very clear about html and css. Let’s explain what is the difference between html and css?

Before understanding the difference between html and css, we must first understand the relationship between html and css. Only by clarifying the relationship between the two can we understand the difference between the two. In html, css can control html and can lay out many styles. CSS can also control html tags, font size and width, etc., and can decorate html through different styles. [Recommended reading: What is html] The difference between

html and css 1: Meaning

html is a hypertext editing language, which is used to define In terms of page structure, HTML is composed of many images, texts or videos, while CSS is a cascading style sheet that defines the style of HTML content, such as the size of HTML images and the layout of images and texts, which can all be implemented using CSS.

The difference between html and css 2: the format of comments

In html, the general comment format is , and In CSS, the format of comments is generally /*comment content*/, which are completely different comment methods.

Difference 3 between html and css: Grammar

html syntax example is as follows:

<div>内容</div>
Copy after login

What is the difference between html and css

css syntax example:

div{font-size:12px;}
Copy after login

The above is a complete introduction to the differences between html and css. If you want to know more about Html5 tutorial, please pay attention to the php Chinese website.









#

The above is the detailed content of What is the difference between html and 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