answersLogoWhite

0

Where and why import tag use?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

The import declaration is used inside of a CSS style sheet, either inline or linked. You can use @import declarations to add a style sheet to document in the same way you might use LINK.

<style type="text/css">

@import url("style.css");

</style>

If you want, you can also add a specific media to the declaration:

@import url("style.css") print, tv;

Eric Meyer has demonstrated a technique using @import with conditional tags to only get the styles you want depending on the users browser.

Steve Souders, however, has shown that using @import in modern browsers can cause significant page load delays.

From personal experience, I can tell you that too much @import makes it very hard to maintain a page. It's hard to follow as one style sheet includes another and another. I'm with Souders here: stay away from @import.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where and why import tag use?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the tag used for scrollings in HTML?

You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.You use the tag for scrolling in HTML.


Where does the style sheet code get inserted into the HTML page?

Stylsheets are listed in the HEAD section of the HTML document. You can either use the the STYLE tag, if you want to include the styles directly into the HTML, or you can use a LINK tag to pull them in. (You can also issue an @import inside the STYLE tag for this, but it's slow and not best practice because of how the browser implements the action.)


When creating a hashtag on twitter for an event is it correct to tell attendees to follow the tag or to use the tag?

To use the tag.


How do you write a javascript?

go to notepad and write Javascript code and save it as .js and then import it into a page with a src tag


What tag do you use to embolden text?

You could use &lt;b&gt; i.e. bold tag but it is depreciated. Now you use the tag of style and font-thickness.


Can you use an EZ TAG on the Dallas North Tollway?

can i use my ez tag in dallas


What is the use o keyword import?

When we want to use classes of packages other than the default package and java.lang, we should import them. Example : import java.util.Scanner;


How would you use the word import in a sentence?

He felt a great sense of political import was the key to getting license for his import business.


Which HTML tag does not use as an end tag?

You have to close everything with another tag such as openingtag:&lt;marquee&gt; closingtag:&lt;/marquee&gt;.


How do you use tag in a sentence?

My mom forgot to remove the price tag from my shirt. The kids played a game of tag.


What sport do they use tag and release?

What sport do they use tag and release. Fishing.


Which recreation do competitors use tag and release?

The recreation that competitors use tag and release is fishing.