InterviewSolution
| 1. |
Name the types of CSS3 positions and explain them? |
|
Answer» CSS can be written in three different ways for an HTML file.
The best way to write CSS by having an external document and linking it in the REQUIRED HTML documents. Whereas the reason why having an external document is best because having our CSS written inline it should be rewritten for ANOTHER element too lots of same code comes up. Whereas CSS is embedded in a style tag we cannot use the styles in a different HTML document again the code should be rewritten in different HTML document too. So, the best way is to use an external document to write CSS and link it in an HTML document. Ex:
The inline one is written along with the HTML element encapsulated in the body tag. And, the embedded style is written in the style tag encapsulated inside the head tag. And, the external style sheet named main.css is LINKED using link tag. |
|