10.5 Styling with CSS
This lesson introduces Cascading Style Sheets (CSS) and explains how to separate a web page's structure from its visual presentation. It covers CSS syntax, comments, selectors, inclusion methods, and practical properties to enhance the overall aesthetic of HTML documents.
ප්රධාන සංකල්ප
- CSS (Cascading Style Sheets)
- A style sheet language used to describe the presentation and styling of a document written in HTML, enhancing the visual appeal, usability, and creativity of web pages.
- CSS Syntax and Comments
- The formal rules comprising selectors and declaration blocks (property-value pairs) used to style elements, along with annotations (comments) that are ignored by browsers.
- CSS Selectors
- Patterns used to select and target HTML elements for styling, categorized into Element, ID, Class, and Group selectors.
- CSS Insertion Methods
- The three ways of applying CSS to HTML documents: Inline (using style attributes), Internal (using <style> tags within the head), and External (linking an external .css file).
- Appearance Formatting
- Applying visual styles to webpage elements including background colors and images, text properties and fonts, links, lists, and tables.
MCQ කට්ටල
MCQ 12විභාගයේදී
- Writing valid CSS selectors and declaration blocks
- Differentiating between inline, internal, and external CSS methods
- Applying appropriate styles to tables, lists, text, and backgrounds in structured HTML code
- Identifying correct CSS syntax in MCQ and structural programming questions
