Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
105 views
in General by (65.1k points)
closed by

Differentiate between Inline, Internal, and External CSS.

1 Answer

+1 vote
by (68.9k points)
selected by
 
Best answer

Difference between Inline, Internal and External CSS:

Feature Inline CSS Internal CSS External CSS
Location It is used within HTML tag using the style attribute.  It is used within <head> section of HTML document.  It is used in a separate .css file.
Selector Scope Affects a single element or a group of elements. Affects multiple elements within the same HTML element. Affects multiple HTML documents or an entire website.
Reusability Not reusable. Styles need to be repeated for each element. Can be reused on multiple elements within the same HTML document. Can be reused on multiple HTML documents or an entire website.
Priority Highest priority. Overrides internal and external styles. Medium priority. Overrides external styles but can be overridden by inline styles. Lowest priority. Can be overridden by both inline and internal styles.
File Size Inline styles increase the HTML file size, which can affect the page load time. Internal styles are part of the HTML file, which increases the file size. External styles are in a separate file, which reduces the HTML file size and can be cached for faster page loads.
Maintainability Not easy to maintain. Changes need to be made manually to each element. Relatively easy to maintain. Changes need to be made in one place in the <head> section. Easiest to maintain. Changes need to be made in one place in the external .css file.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...