- allcatsmeow2
Learning To Code: HTML Part 3
Hello, again Dolls!
Ready for Part 3 of Learning To Code: HTML?
Just in case you forgot, the HTML style attribute has the following syntax:
<tagname style="property:value;">
The property part of the code is actually a CSS property, so whenever you're coding a presentation, you're also coding a bit of CSS. This is because CSS is actually a style sheet language that's used for describing the presentation of a document written in a markup language like HTML.
In this case, since we're creating a presentation to use on Stardoll, our tagname would be the paragraph tag which is p and the first property in the code would be background-color. The value for the property background-color is classified by either a color or a color code. As an example, I set the background's color to be black.
After making those adjustments, this is how the code now looks:
<p style="background-color:black;">
As you can see in the code, I used a colon (:) to assign the property's (background-color) value and I ended the value (black) with a semicolon. If the colon is not used to assign the value of the property & you try testing it, nothing except for a blank screen will appear. Basically the same goes for a semicolon (;). If you have more than one property in your code and don't end the value with a semicolon, either a blank screen will appear or parts of the code won't be visible.
Continued . . .
STARBLOGGER STARDOLL
- cIaudia Posting yang ditam…: "Styling Jean Paul Gaultier "
- midnightmonkey628 Posting yang ditam…: "Styling Starplaza Favorites"
- 2010vampire Posting yang ditam…: "The NEW Disney Wizards"
- Vulacano24 Posting yang ditam…: "CallieCon AMA - Q&A with Vulacano106 - Part 2"
- Justanother.19 Posting yang ditam…: "5 Art Ideas- Get Creative!"
- PIMIENT0 Posting yang ditam…: "Stranger Talks"
- allcatsmeow2 Posting yang ditam…: "Cat-O-Ween Con: Black Widow Edition!"
- imweirdo Posting yang ditam…: "My thoughts on a climate crisis"
- madmadeleine70 Posting yang ditam…: "Sauteed Chicken Breast Pan Gravy"
- muge_derin Posting yang ditam…: "Starcoin Outfits #12"