Ask Your Question
4

What is the CSS that browsers use as default for HTML elements?

asked 2022-10-09 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-04-08 09:00:00 +0000

devzero gravatar image

Browsers use a set of default CSS rules for HTML elements called the user agent stylesheet. The specifics of these rules can vary between browsers, but some common examples include:

  • Most elements have a margin and/or padding of 0 by default.
  • Some elements, such as the body and heading elements, may have default font sizes, colors, and/or styles applied to them.
  • Links and visited links may have default colors applied to them.
  • Lists and table elements may have default styles and/or spacing applied to them.

These default styles are intended to provide a baseline look and feel for web pages, but web developers can override them with their own custom CSS rules.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-10-09 11:00:00 +0000

Seen: 9 times

Last updated: Apr 08 '22