You’re really doing an awesome thing here! @Funsho Thank you!
So do you want to join ?
Yeah. But I’ll join when the class gets to CSS. That’s where I got stuck in my learning.
So @Anelaw, from now one, we shall be examining other HTML tags and their uses.
The HTML Style Attribute
Setting the style of an HTML element, can be done with the style attribute.
The HTML style attribute has the following syntax:
<!DOCTYPE html> <html> <body> <p>I am normal</p> <p style="color:red;">I am red</p> <p style="color:blue;">I am blue</p> <p style="font-size:50px;">I am big</p> </body> </html>
<p> tag, we used the style attribute to give some of our text some color.
HTML Background Color
The background-color property defines the background color for an HTML element.
This example sets the background color for a page to powderblue:
@Anelaw, in your new html file, change the body background color as seen in the above code and post a screen shot.
What's on your mind right now?
You can save the new file as anything.htm
yes, you are cute
Now, lets change text color of the I am Cute paragraph to red.
<p style="color:green;">This is a paragraph.</p>
Lol. You could have just pretended not to notice my edits.
Question please: Can an attribute have more than one property?
I tried including both color and font
Good question. Yes it can.
To use more than one property to an attribute do this
<h1 style="font-family:verdana; color:red;"> This is a heading </h1>