- 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 . . .
हमारे Star ब्लॉगर्स के बारे में जानें
- cIaudia Featured post: "Styling Jean Paul Gaultier "
- FunDemiStardoll24 Featured post: " Embrace the Magic of Stardoll "
- midnightmonkey628 Featured post: "Styling Starplaza Favorites"
- 2010vampire Featured post: "The NEW Disney Wizards"
- Vulacano24 Featured post: "CallieCon AMA - Q&A with Vulacano106 - Part 2"
- Justanother.19 Featured post: "5 Art Ideas- Get Creative!"
- PIMIENT0 Featured post: "Stranger Talks"
- allcatsmeow2 Featured post: "Cat-O-Ween Con: Black Widow Edition!"
- imweirdo Featured post: "My thoughts on a climate crisis"
- madmadeleine70 Featured post: "Sauteed Chicken Breast Pan Gravy"
- muge_derin Featured post: "Starcoin Outfits #12"