Html Style

Html Style

Every Html element has a default style. Default background color is white, text color is black, text-size is 16px . For changing these default style of an Html element, you need to use style attribute. Below example changes the default text color from black to red:.