C6 CSS Exam - Study Guide
C6 CSS Exam - Study Guide
HTML Questions
1. Creating Hyperlinks
● Tag: <a>
● Example: <a href="https://www.example.com">Link Text</a>
2. Table Header
● Tag: <th>
● Used inside: <table> and <tr>
● Example: <th>Header Text</th>
3. Unique Identifier for Elements
● Attribute: id
● Usage: <div id="uniqueId"></div>
4. Inserting Line Breaks
● Element: <br>
● Example: First line<br>Second line
5. Internal Style Sheets
● Tag: <style>
● Usage: Placed inside <head> section
● Example: <style>body { background-color: lightblue; }</style>
6. Inline Styles
● Attribute: style
● Example: <div style="color: red;">Red Text</div>
CSS Questions
1. Background Color
● Property: background-color
● Example: background-color: lightblue;
2. Background Image
● Property: background-image
● Example: background-image: url('image.jpg');
3. Text Size
● Property: font-size
● Example: font-size: 16px;
4. Capitalize Text
● Property: text-transform
● Value: capitalize
● Example: text-transform: capitalize;
5. Removing Bullet Points
● Property: list-style
● Value: none
● Example: list-style: none;
6. Selecting by ID
● Syntax: #header
● Example: #header { color: blue; }
7. Text Color
● Property: color
● Example: color: red;
8. Bold Text
● Property: font-weight
● Value: bold
● Example: font-weight: bold;
9. Space Between Border and Content
● Property: padding
● Example: padding: 10px;
10. Transparency
● Property: opacity
● Fully Transparent: opacity: 0;
● Example: opacity: 0.5;
Tables
1. Table Borders
● Property: border
● Example: border: 1px solid black;
Display
1. Hiding Elements
● Property: visibility
● Value: hidden
● Example: visibility: hidden;
Position
1. Relative Positioning
● Property: position
● Value: relative
● Example: position: relative;
2. Fixed Positioning
● Property: position
● Value: fixed
● Example: position: fixed;
Float
1. Float Right
● Property: float
● Value: right
● Example: float: right;
2. Clearing Floats
● Property: clear
● Value: both
● Example: clear: both;
Align
Opacity
Syntax
1. CSS Comments
● Syntax: /* comment */
● Example: /* This is a comment */
1. Italic Text
● Property: font-style
● Value: italic
● Example: font-style: italic;
Borders
1. Border Width
● Property: border-width
● Example: border-width: 2px;
Margins
1. Top Margin
● Property: margin-top
● Example: margin-top: 10px;
Padding
1. Left Padding
● Property: padding-left
● Example: padding-left: 10px;
Icons
Links
Study these concepts thoroughly, understand the syntax and use cases, and practice writing the code
snippets to solidify your knowledge. Good luck with your test!