Skip to content

Inline elements, Block elements, and what are the differences? #27

Open
@cheatsheet1999

Description

@cheatsheet1999
  • Inline elements are: span, input, select, strong ....
  • Block elements are: div, ul, ol, li, dl, dt, dd, h1, h2, p....
  • Void elements: br, hr, i, input, link...
  • img(they are "inline block" elements. This means that they flow inline like text, but also have a width and height like block elements.)
  • Inline elements do not accept "height" and "width" setttings.
  • Block elements occupy the whole row, and accept "height" and "width"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions