Eyad Syria-lover Posted November 7, 2016 Share Posted November 7, 2016 Hello. I Was Reading A Stylesheet When I Found A Strange @import Rule,I've Never Faced This Rule. What Is The Difference Between Including A Stylesheet Using @import Rule,And Doing The Same Using <link rel="stylesheet"/>?,And Do You Suggest Me To Use This Rule?. Link to comment Share on other sites More sharing options...
Ingolme Posted November 7, 2016 Share Posted November 7, 2016 I would advise against using @import anywhere except between <style> tags. Otherwise the page has to do extra requests before displaying the page to the user. @import allows stylesheets to include other stylesheets. It works just the same as the <link> tag. Link to comment Share on other sites More sharing options...
shaili_shah Posted June 14, 2019 Share Posted June 14, 2019 choose link rather than @import rule you can refer this for more information: https://stackoverflow.com/questions/1022695/difference-between-import-and-link-in-css Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now