what is the meaning of internal and external css? thanks for your answers
Six answers:
anonymous
2009-11-03 04:47:03 UTC
Actually, the above response isn't really correct.
Internal styles are more frequently known as "inline" styles. This is used when you include the style information in the actual web page or within the HTML tags themselves: "
"
External styles refer to actual style sheets that are parsed and loaded by the browser before the page is rendered. These are referenced using tags inside the
tag in a page.
While the top answer is sort of right about changes, the advantage to having an external set of style sheets is that you can add whatever you want to the single sheet. Even if you only use the style occasionally or in a few pages, it's still easier to have it in one place vice having to edit a handful of HTML pages.
Also, style sheets are more efficient if you do development in a scripting language. You can use the scripting language to create conditional statements that will use different styles in different conditions.
The extreme way to do this would be to use XSL, which is the transformation language for XML. These provide a lot more flexibility in the use of styles, but they can be very complex to use.
Beatmaster
2009-11-03 05:04:36 UTC
Internal CSS consists of CSS rules that are defined within a page, either in the section of the page, using a
Your page's content!
external is when it's written on a separate page.
example:
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.