how to add style in html
<html>
<title>
this is the title
</title>
<head>
<style>
body{color:red;font-size:80px; text-shadow:2px 2px yellow;background-color:black; }
</style>
</head>
<body>
my name is abdul wahab
<!-- if you want to apply some style like to change the background color or text color, text shadow and many thing you can change from the style you just have to put body{} and then enter the code for what you want to do with your body-->
</body>
</html>
if i go ahead and run this so it will look like
So what we have done up here
1.put style tag in head portion start with<style>end with</style>
2.put the name of the thing you wanna apply a style to with flower braces like for the body put body{}
for the paragraph put
p{}
for the h1 put h1{} and same as for the h2 ,3,4 etc..
3.give a spacific style in between flower braces..like for the text color put color:red; for the background put background-color ..etc.
So thank you for more information click on the link below and watch my videos tutorial

No comments:
Post a Comment