Important Questions
Important Questions
Discuss the steps to create an external CSS file and link it to an HTML document?
Compare Inline CSS, Internal CSS, and External CSS in terms of usage, maintainability, and performance.
Explain the role of the <link> tag in CSS.
Explain the box model in CSS and its components.
Explain the different types of selectors in CSS with examples.
Define the property is used in CSS to change the text color of an element?
Discuss the difference between the color and background-color properties in CSS.
Discuss the difference between the font-size, font-weight, and font-style properties in CSS with examples.
Explain the difference between the margin and padding properties in CSS.
Explain the difference between position: static, position: relative, position: absolute, and position:
fixed in CSS, with examples.
Explain and why would you use CSS Grid for layout design? Provide examples of common use cases.
Discuss the purpose of the border property in CSS.
Compare the display: block and display: inline properties in CSS.
Define the background-repeat property in CSS.
Define the background-position property in CSS and how it is used to position a background image.
Explain the background shorthand property in CSS and how it combines multiple background-related
properties.
Explain the different background-related properties in CSS, and how they can be combined to create a complex
background design. Provide examples for each property.
Define the font-family property in CSS.
Explain the font-size property in CSS and how it is used to control text size.
Explain the text-align property in CSS and how it is used to align text within an element. Provide examples for
different alignment options.
Explain, what are frames and how will you divide the web page in 4 vertical frames, write the syntax
Explain the line-height and letter-spacing properties in CSS, and how they are used to adjust text appearance.
Provide examples for each property.
Explain the various CSS properties used to control fonts and text formatting, and how they can be combined to
style text effectively. Provide examples for each property.
Implement CSS properties to style a paragraph element with the following requirements:
The header (<h1>) should use the font "Georgia" with a fallback to serif, have a font size of 36px, be bold, and
italicized.
The paragraph (<p>) should use the font "Verdana" with a fallback to sans-serif, have a font size of 16px, be
normal weight, and have a line height of 1.8 for better readability.
Sketch and implement CSS to format the text and fonts of the following block-level elements with the following
specifications for a webpage layout:
The header (<h1>) should have the following styling:
Remove the default bullet points and set custom bullets using an image (url('bullet.png')).
Apply a padding of 15px inside the list.
Set a margin of 20px on the left and 10px on the right of the entire list.
Add a border of 2px solid dark gray (#333) around the list items.
Set the font family of the list items to "Helvetica Neue", sans-serif.
Ensure that the list items have a hover effect where the background color changes to light yellow (#ffffe0).
Analyze and Examine the importance of search engine optimization (SEO) in web development.
Analyze and Investigate the challenges of mobile web design. Analyze the differences between designing for
desktop and mobile platforms and the strategies to overcome these challenges.
Demonstrate how to style both unordered and ordered lists using CSS to meet the following design
requirements: