" Just file."/> " Just file.">
Home > Article > Web Front-end > How to use link to introduce css in html
htmlHow to use link to introduce css: first create an HTML example as a file; then use the syntax "e9cbef99fe55c577770141d306936da2" Just introduce the specified css file.
The operating environment of this tutorial: Dell G3 computer, Windows 7 system, HTML5&&CSS3 version.
Recommended: "css Video Tutorial"
There are 4 ways to introduce CSS in HTML. Two of them are to add CSS code directly in the HTML file, and the other two are to introduce external CSS files. Below we will introduce some methods of using link tags to introduce CSS styles in HTML. The
link tag is usually placed in the head tag of a web page and is used to link external css files and link favorite icons (favicon.ico). The most common use of the 2cdf5bf648cf2f33323966d7f58a7f3f tag is to link external Style sheets, external resources.
link introduces css examples:
<link href="img/divcss5.css" rel="stylesheet" type="text/css" />
Explanation of the content structure of the link tag when linking to external css styles
The href value is the external resource address, here is the address of css
rel defines the relationship between the current document and the linked document, here is the external css style sheet, that is, stylesheet
type specifies the MIME class of the linked document, here the value is text/css
The above is the detailed content of How to use link to introduce css in html. For more information, please follow other related articles on the PHP Chinese website!