Skip to content

Css #182

Open
Open
Css#182
@monarosej

Description

@monarosej

Textual comments in CSS style sheets are similar to those in the C programming language.

body {
font-size: 62.5% /* 1em = 10px */
}

The stuff inside the/* */ marks are CSS comments.

Embedded styles are placed within the head element and use the style element. Embedded styles affect every instance of the element specified.

Inline styles, as you may have guessed, are placed inside elements within the body of an HTML document. Using the attribute "style", any element can be affected.

A style sheet gives the user several benefits:

  1. better control over layout.
  2. better control over text display.
  3. seperate form from structure.
  4. better site maintainability.
  5. smaller Web pages which means faster downloads.

CSS has the ability to explicitly control the status of underlining for an element - even for hyperlinks.

The id selector is used to specify a style for a single, unique element. The id selector uses the id attribute of the HTML element, and is defined with a "#".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions