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>
css syntax example:
div{font-size:12px;}
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!