Html Styles


Html Styles : For Styling the style attribute tag is used. Style attribute basically provides the styling to the html elements.


Html Styles

Example

<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>

<p style="color:red;">This is paragraph 1.</p>
<p style="background:yellow;">This is paragraph 2.</p>
</body>
</html>

Try it »

html styles example

html styles example


Advertisements

Add Comment

📖 Read More