HTML style using CSSLet's suppose we have created our web page using a simple HTML code, and we want something which can present our page in a correct format, and visibly attractive. So to do this, we can style our web page with CSS (Cascading Stylesheet) properties. CSS is used to apply the style in the web page which is made up of HTML elements. It describes the look of the webpage. CSS provides various style properties such as background color, padding, margin, border-color, and many more, to style a webpage. Each property in CSS has a name-value pair, and each property is separated by a semicolon (;). Note: In this chapter, we have given a small overview of CSS. You will learn everything in depth about CSS in our CSS tutorial.Example:In the above example, we have used a style attribute to provide some styling format to our code. Output: Welcome to javaTpointThis is a great website to learn technologies in very simple way. Three ways to apply CSSTo use CSS with HTML document, there are three ways:
|