Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cheatsheet1999 opened this issue Sep 9, 2021 · 0 comments
Open

Comments

@cheatsheet1999
Copy link
Owner

  • 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant