Hannah Graves | Summary Four


HMTL Lists & CSS Styling


HTML Lists

HTML is equipped with three primary types of lists: ordered, unordered, and definition lists. These lists can be organized hierarchically by nesting them within each other, allowing for the creation of sub-lists. Additionally, CSS plays a pivotal role in customizing the appearance of these lists. Designers can leverage CSS to modify numbering styles, adjust spacing between list items, and enhance overall visual presentation.


Text Styling with CSS

CSS empowers designers with a suite of powerful tools for text styling. One such tool is the text-indent property, which facilitates the indentation of the first line of text within an element. This feature is convenient for organizing content in a structured manner or concealing text off-screen while retaining its accessibility. Another essential CSS property is text-shadow, which creates drop shadows behind text, improving readability or introducing visual effects like embossing for a more captivating text presentation.


Pseudo-elements & Pseudo-classes

In addition to text styling properties, CSS offers pseudo-elements and pseudo-classes for fine-grained control over text and interactive elements. Pseudo-elements like :first-letter and :first-line enable designers to style specific parts of text within elements, adding emphasis or decorative elements. On the other hand, pseudo-classes like: link, : visited, :hover, :active, and :focus cater to dynamic styles based on user interaction. For instance, designers can define distinct styles for links based on whether they are unvisited (:link), visited (:visited), hovered over (:hover), clicked on (:active), or focused (:focus). Furthermore, CSS attribute selectors empower designers to target elements based on their attributes and attribute values, offering precise control over styling elements throughout the webpage.