Help:Wiki University Wikitext--Multi-attributes
Jump to navigation
Jump to search
Lessons
- HOME
- Introduction
- Headers
- Lists
- Nesting Lists
- Links
- Broken Links
- Comments
- Categories
- Image Embedding
- Image Tooltips & Borders
- Image Links
- Images & Text; Embedding PDF
- Snipping Tool & Paint
- Paragraphs
- Inline Styling
- Changing Fonts
- Font Colors
- Backgrounds
- Multi-attributes
- Font Bold-Italics
- Div Tag - Intro
- Borders
- Padding
- Margins
- Width and Height
- Alignment - Horizontal
- Tables
- Breadcrumb Trails
- Ref/Footnotes
- SEO
Intermediate
Advanced
Flexbox
Additional Helps
Multiple attributes[edit | edit source]
What if we want to change the font, the size of the font and the color of the font at the same time?
Applying multiple attributes[edit | edit source]
To install more than one attribute, separate each one with a semi-colon:
<p style="font-family:times new roman; font-size:14px; color:blue">...</p>
- NOTICE again that the semi-colon separates the attributes.
This is what our paragraph will look like with all three attributes:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. Curabitur eleifend quis ligula ac ullamcorper. Curabitur eget suscipit turpis.
The number of attributes you can install in a tag is unlimited |
Try these out[edit | edit source]
Exercises
- To make our lorem ipsum paragraph text red, the font-size 12 pixels and with arial font, what is the code?
Quick Quiz
- Attributes are separated with?
- A. Comma
- B. Colon
- C. Semi-colon
- D. None of the above
- How many attributes can you put in the paragraph tag?
- A. No more than 5
- B. No more than 8
- C. No more than 20
- D. None of the above