HTML/CSS Basics Flashcards
Add a background image with CSS
background: url(“http://webAddress”);
Specify the space around an element with CSS
margin: 10px 0 0 10px; Top Right Bottom Left
Increase/decrease leading between lines
line-height: 20px;
Inline styling for an element
<p>Paragraph example.</p>
Add a Horizontal Rule (line)
<hr></hr>
Start a new line in a paragraph
<br></br>
Defines a block of pre-formatted text. Displayed in a fixed-width font; preserves spaces and line breaks.
<pre></pre>
Make a section of text bold
<b>Text</b>
Important text bold
<strong></strong>
Italic text
<i>text</i>
Emphasized text in Italics; med. weight
<em></em>
small text
<small>This text will be very small</small>
Highlight text in Yellow
Strike-Out a word or line of text
<del>This text will have a line through it</del>
Insert a word or line of text
<ins>This text will be inserted</ins>