- allcatsmeow2
Learning To Code: HTML Part 4
Hello, Dolls!
I hope you're enjoying this series so far! Now it's time for part 4!
Whenever we run this code:
< p style="background-color:black;" >
through an HTML editor, nothing seems to appear. This is because the computer has no idea how big or how small the paragraph should be. But, if we add some text, the computer will automatically adjust the paragraph to fit the size of the text.
To add text to the paragraph, add the text after the arrow (>)
The new code is:
< p style="background-color:black;" >Hi! I'm a basic presentation!
When tested, this is what appears:
Hi! I'm a basic presentation!
Pretty cool. But why can't you see the text? To see the text in the black line above, try highlighting it!
Though, no one really wants a presentation that you must highlight to read. To make the text visible, we need to change the text color. It's easy, just add "color:#ffffff;" to the code. It can be added before or after the background-color property.
The code is now:
< p style="background-color:black;color:#ffffff;" >Hi! I'm a basic presentation!
When tested, this is what the new code looks like:
Hi! I'm a basic presentation!
Continued in Part 5 . . .
हमारे Star ब्लॉगर्स के बारे में जानें
- 2010vampire Featured post: "The NEW Disney Wizards"
- midnightmonkey627 Featured post: "Styling OOTM 2023"
- Vulacano10624 Featured post: "CallieCon AMA - Q&A with Vulacano106 - Part 2"
- Elizabeth_C.K.28 Featured post: "HOMEMADE SNACKS RECIPES #3 - Popcorn"
- Justanother.18 Featured post: "5 Art Ideas- Get Creative!"
- PIMIENT0 Featured post: "Stranger Talks"
- Dadaliana268 Featured post: "Suite Design for a Sweet Dime #2"
- allcatsmeow2 Featured post: "Cat-O-Ween Con: Black Widow Edition!"
- -sassychic1998 Featured post: "virtual styling 12"
- imweirdo Featured post: "My thoughts on a climate crisis"
- madmadeleine69 Featured post: "Sauteed Chicken Breast Pan Gravy"
- muge_derin Featured post: "Starcoin Outfits #12"