Загрузка...

What is CSS and its types? | Inline Internal External CSS | Interview Questions

What is CSS and its types? | Inline Internal External CSS | Interview Questions

Hello Friends,
We are going to learn What is CSS and its types with interview questions

All details are below :-
What is CSS?
CSS (Cascading Style Sheets) is a stylesheet language used to control the appearance and layout of web pages written in HTML.

In simple words:
CSS makes a website look attractive — it controls colors, fonts, spacing, layout, animations, and responsiveness.
Types of CSS

There are 3 main types of CSS:
1. Inline CSS
CSS is applied directly inside an HTML element using the style attribute.

2. Internal CSS (Embedded CSS)
CSS is written inside the style tag in the head section of an HTML file.

3. External CSS
CSS is written in a separate .css file and linked to HTML.

CSS File (styles.css):

Important Interview Questions (Web Development)
Q1. What are the different types of CSS?
Ans. Inline, Internal, and External CSS.

Q2. Which type of CSS is best and why?
Ans. External CSS is best because it is reusable, maintainable, and keeps code clean.

#css
#css3
#interviewquestions
#webdesign

Видео What is CSS and its types? | Inline Internal External CSS | Interview Questions канала Boost Yourself
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять