HTML Styles Elements
What you learn today
Use Background-color for background color html page.
Use color attribute for text color
Use font-family for text fonts
Use font-size for text size.
Use text-align for text alignment
Youtube channel :Like and Subscribe my Channel
Example
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> style sheet </title> | |
</head> | |
<body style="background-color:purple;"> | |
<p style="color:red;"> this is text color </p> | |
<p style="font-family:arial;"> font family using html </p> | |
<p style="font-size:200%;"> font size using html </p> | |
<p style="text-align:center;"> text align center using html </p> | |
</body> | |
</html> |
Comments
Post a Comment