HTML AND CSS Flashcards

(13 cards)

1
Q

Name the 18 different HTML tags you need to know for the exam

A
  • <html>
    </html>
  • <link></link>
  • <head>
    </head>
  • <title>
    </title>
  • <body>
    </body>
  • <h1>
    -<h2>
    </h2></h1>
  • <h3>
    </h3>
  • <img></img>
  • <div>
    </div>
  • <a></a>
  • <form>
    </form>
  • <input></input>
  • <p>
    </p>
  • <li>
    </li>
  • <ol>
    </ol>
  • <ul>
    </ul>
  • <script>
    
    </script>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

<html>
</html>

A
  • A HTML document begins with <html> and ends with </html> ; these tags are non-visual
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

<head>
</head>

A

A container for metadata that is placed between the <html> and <body> tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

<title>
</title>

A
  • Defines the title of the document
  • <title> DocumentTitle</title>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

<body>
</body>

A

Defines the document’s main text
- There can only ever be one <body> tag in a HTML document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

<h*>

A
  • Define headings in order of importance, and therefore, size
  • <h1> defines the most important heading, while <h6> defines the least important heading
    </h6></h1>

<h>HeadingTitle</h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

<p>
</p>

A

Defines a paragraph
Browsers automatically add a single blank line before and after each <p> tag

<p>Paragraph</p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

<img></img>

A

Used to embed an image into a HTML document

<p> <img src=".jpg" alt="PictureTitle" height="height" width"<width"> </p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

<a></a>

A

Defines a hyperlink
text <a>LINKTEXT</a> text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

<ol>
</ol>

A

Defines an ordered list

<ol>
<li>ListItem1</li>
<li>ListItem2</li>
<li>ListItem3</li>
</ol>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

<ul>
</ul>

A

Defines an unordered (bulleted) list

<ul>
<li>ListItem1</li>
<li>ListItem2</li>
<li>ListItem3</li>
</ul>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Using CSS directly inside elements with the style attribute

A

Changing colour:

<h1>

Changing border style and colour:
<h2>

Changing font:
<h3>
</h3></h2></h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Using external CSS to define styling of elements

A

h1{
color:red;
background-color:yellow;

}

h2{
border-style:dotted;
border-color:blue;
border-width:thick;

}

h3{
font-family:Arial,Helvetica,sans-serif;
color:#00ff00;

}

<link></link>

.intro {
color:red;

}

.main{
color:green;

}

<div>
<div>

#orderedlist {
color:red;

}

#bulletlist{
color:green;

}

<ol>
<ul>
</ul></ol></div></div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly