How to import external CSS file in internal style definition

There are 3 ways CSS can be used in an HTML document i.e. 1. External, 2. Internal(Embedded) and 3. Inline.We usually use external CSS to include a remote CSS file in the following way:


<link rel="stylesheet" href="CSS_FILE_URL" type="text/css" >

But there is a way to include a remote CSS file using the syntax of internal CSS too i.e. as follows:

<style>
@import url('CSS_FILE_URL');
</style>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s