1.3.3 (HTML) Flashcards
1
Q
What is HTML?
A
- Hyper Text Markup Language
- The standard mark up for webpages
2
Q
What is a HTML element?
A
- Start and end tags with content in between
3
Q
What should the document start and end with?
A
<html>
</html>
- Which are non-visual
4
Q
What should the main text start and end with?
A
<body>
</body>
5
Q
What is the <head>
tag?
A
- Container for metadata
- Placed between
<html>
and<body>
tags - Non- visual, not displayed
6
Q
What is the <title>
tag?
A
- Defines the title of the document
- Must be text only
- Shown in the title bar or page tab, visual
- Required for all HTML documents
7
Q
What is the <body>
tag?
A
- Defines the document’s main text
- Contains: headings, paragraphs, images, hyperlinks, tables, and lists
- Can only have one
<body>
tag in the HTML document
8
Q
What are the <h*>
tags?
A
- Defines headings in order of importance and therefore size
-
<h1>
defines the most important -
<h6>
defines the least important - only use one
<h1>
tag per page for the main heading - Can not skip levels
9
Q
What is the <p>
tag?
A
- Defines a paragraph
- Browsers automatically add a single blank line before and after each
<p>
tag
10
Q
What is the <img>
tag?
A
- Used to embed an image in a HTML document
- Images are not inserted into webpages but rather linked to webpages
- The
<img>
tag creates a holding space for the referenced image - The
<img>
tag requires 2 attributes: scr - specifies the file path of the image, alt - specifies alternate text for the image in the event it cannot be displayed for some reason - Always specify the width and height of the image, or the page may flicker while the image loads
11
Q
What is the <a>
tag?
A
- Defines a hyperlink which is used to link one page to another
- Most important attribute of this tag is href which indicates the link’s destination
- By default links will appear as followed in all browsers:
- Unvisited link: blue, underlined
- Visited link: purple, underlined
- Active link: red, underlined
12
Q
What is the <ol>
tag?
A
- Defines an ordered list
- An ordered list can be numerical or alphabetical
- The
<li>
tag is used to define each list item
13
Q
What is the <ul>
tag?
A
- Defines an unordered list (bullet pointed)
- The
<li>
tag is used to define each list item
14
Q
What are the 5 tags which relate to aspects of CSS and JavaScript?
A
<link>
<div>
<form>
<input>
<script>