Introduction method: 1. Use the style tag to introduce, the syntax ""; 2. Use the link to introduce, the syntax "".
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
There are two ways to introduce css in the head area:
Internal style sheet--defined with style tags
External Style sheet - use the link tag to introduce
##1. Internal style sheet - use the style tag to define
Write the css code in HTML In the head tag of the document, and defined with the style tag, its basic syntax format is as follows:<head> <style type="text/css"> css代码 </style> </head>
css选择器{ 属性:值; 属性:值; ..... }
2. External style sheet--use the link tag to introduce
Put all styles in one or In multiple external style sheet files with CSS extensions, the external styles are linked to the HTML document through the link tag. The basic syntax format is as follows:<link rel="stylesheet" type="text/css" href="css文件路径" />
css video tutorial, html video tutorial)
The above is the detailed content of How to introduce css in the head area. For more information, please follow other related articles on the PHP Chinese website!