19 terms

HTML & CSS

STUDY
PLAY

Terms in this set (...)

What is the CSS syntax?
selector declaration declaration
h1 {color:blue; font-size:12px;}
property:value
What is the syntax for writing comments in CSS?
/ This is a comment /
What is the id selector and how is it defined?
The id selector is used to specify a style for a single unique element. The id selector is defined with a #.

#idExample
{
text-align:center;
}
What are the three ways to insert a style sheet (in cascading order)?
• linking and external style sheet
• inside the head of a document
• inside and html element
background
sets all the background properties in one declaration
background-color
sets the background color of an element
background-image
sets the background image of an element
font
sets all the font properties in one declaration
font-family
specifies the font family for text
font-size
specifies the font size of text
HTML
Hyper Text Markup Language
HMTL tag for largest heading
<h1>
line break
<br>
Bold
<strong> <b>
Insert an image
<img src="image.jpeg" alt="My image">
paragraph
<p>
hyperlink
<a href="http://www.google.com">Google</a>
Numbered list (ordered list)
<ol>
Bulleted list (unordered list)
<ul>
YOU MIGHT ALSO LIKE...