|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: How to use CSS to separate content and design ?
Answer: The idea here is that all sites contain two major parts, the content: all your articles, text and photos and the design: rounded corners, colors and effects. Usually those two are made in different parts of a webpage’s lifetime. The design is determined at the beginning and then you start filling it with content and keep the design fixed.
In CSS you just add the nifty <link>-tag I’ve told you about to the head of your HTML document and you have created a link to your design. In the HTML document you put content only, and that link of yours makes sure it looks right. You can also use the exact same link on many of your pages, giving them all of them the same design. You want to add content? Just write a plain HTML document and think about marking things up like “header” instead of “big blue header” and use CSS to make all headers look the way you want!
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 7098 users |
Added on |
9/4/2014 |
Views |
65815 |
Rate it! |
|
|
Question:
How to use CSS to separate content and design ?
Answer:
The idea here is that all sites contain two major parts, the content: all your articles, text and photos and the design: rounded corners, colors and effects. Usually those two are made in different parts of a webpage’s lifetime. The design is determined at the beginning and then you start filling it with content and keep the design fixed.
In CSS you just add the nifty <link>-tag I’ve told you about to the head of your HTML document and you have created a link to your design. In the HTML document you put content only, and that link of yours makes sure it looks right. You can also use the exact same link on many of your pages, giving them all of them the same design. You want to add content? Just write a plain HTML document and think about marking things up like “header” instead of “big blue header” and use CSS to make all headers look the way you want! Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Why was the decision made to make padding apply outside of the width of a 'box', rather than inside, which would seem to make more sense?
|
View Answer
|
|
Why call the subtended angle a "pixel", instead of something else (e.g. "subangle")?
|
View Answer
|
|
How do I eliminate the blue border around linked images?
|
View Answer
|
|
Which set of definitions, HTML attributes or CSS properties, take precedence?
|
View Answer
|
|
How do I have a fixed (non-scrolling) background image?
|
View Answer
|
|
How can I specify background images?
|
View Answer
|
|
What is parent-child selector?
|
View Answer
|
|
What is attribute selector?
|
View Answer
|
|
How do I combine multiple sheets into one?
|
View Answer
|
|
Why does my content shift to the left on some pages (in FF)?
|
View Answer
|
|
How do I place text over an image?
|
View Answer
|
|
How can you set a minimum width for IE?
|
View Answer
|
|
What is a Style Sheet?
|
View Answer
|
|
What is inline style? How to link?
|
View Answer
|
|
Why do style sheets exist?
|
View Answer
|
|
How do I have a background image that isn't tiled?
|
View Answer
|
|
What is contextual selector?
|
View Answer
|
|
What is ID selector?
|
View Answer
|
|
What is embedded style? How to link?
|
View Answer
|
|
What is CSS rule 'ruleset'?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All CSS Interview Questions & Answers - Exam Mode /
Learning Mode
|