CSS – Using Entities
In CSS/HTML there are specific entities that can be placed via code. This is a list of some of the most used CSS entities and their HTML equivalents.
In CSS/HTML there are specific entities that can be placed via code. This is a list of some of the most used CSS entities and their HTML equivalents.
An HTML text link is displayed in a different color depending on whether it has been visited, is unvisited, is being hovered over, or is currently active.
A pseudo-class is used to define a special state of an element, while a pseudo-element is used to style specified parts of an element.
In HTML, there are two main types of lists: unordered lists <ul>, which use bullets for each list item and ordered lists <ol>, which use a numbering system.
The ::first-letter selector is used to select the first letter of a specified, block-level element such as a paragraph or heading.
The ::first-line selector is used to select the first line of text of a specified, block-level element such as a paragraph or heading.
The :hover selector selects elements when you mouse over them, and is commonly used for links and images with links, but can be used on any element.
The :link selector is used to select unvisited links, and will not style links you have already visited.
The ::selection selector matches the portion of an element that is selected by a user, and is most often used to set the background color of selected text.
The color property specifies the color of the text of an element and can be expressed as a hexadecimal value, RGB, HSL, or as an HTML color keyword.
The direction property specifies the text direction direction within a block-level element.
The font property is a shorthand property for font-family, font-size/line-height, font-style, font-variant, and font-weight.
The font-family property specifies the font for an element, and contains several font names as a “fallback” system. The browser will use the first font available, trying the first font, then the second, and so on.
The font-feature-settings property allows control over advanced typographic features such as fractions, ligatures, and small caps in OpenType fonts.
The font-kerning property defines how a font’s letters are spaced by using the kerning information stored in the font.
The font-stretch property allows you to make text narrower (condensed) or wider (expanded).
The font-style property specifies the font style for a text: normal, italic, or oblique.
The font-variant property specifies whether or not a text should be displayed in a small-caps font.