Table of contents
No headings in the article.
How can we make web pages look prettier?
CSS involves targeting an element on a web page and styling it.
The background color of the paragraph, other tags, padding, styling font size or button size, hover effects, and a lot more are among them.
There are three ways to write CSS. One way is to use the style attribute on an HTML element. Second is inside the style tag and last is in a separate style.css file.
1.use style attribute
it is fine for working with a small number of elements. But once you’re dealing with large pages with lots of moving pieces, it will quickly become extremely tedious to apply a separate style attribute to each element. In software development, we are often interested in reducing repetition. We can achieve this through the use of Cascading Style Sheets, or CSS for short. CSS specifically deals with the layout and customization of HTML element
2.Creating a CSS rule - inside style tag