What are the ways of adding W3.CSS into webpage? Explain with its syntax.
Question :
What are the ways of adding W3.CSS into webpage? Explain with its syntax.
There are two ways of adding W3.CSS into webpage
- By using CDN (Content Delivery Network)
- By downloading W3.CSS file into local machine
By using CDN (Content Delivery Network)
The CDN of w3school can be used to link W3.CSS file into web page as following:
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
The tag must be written in the head section of the HTML. It is obvious that internet connection must be needed for successfully delivery of W3.CSS file.
By downloading W3.CSS file into local machine
This is alternate way of adding W3.CSS into web page. First download the W3.CSS file into local machine, and then add it to the web page. To download W3.CSS file, follow the link: https://www.w3schools.com/w3css/w3css_downloads.asp
Now save the file into local machine and then add it in the head section of the HTML as:
Here, the name of the W3.CSS file is “w3” and it is supposed that HTML and CSS file is
on the same folder. If CSS file is on the other folder, then add path accordingly