ITEC 106 (SIR JARED) Flashcards

1
Q

Hyper Text Markup Language

A

Created by Tim Berners-Lee, Robert Cailliau, and others starting in
1989

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

means the document contains links that allow the reader
to jump to other places in the document or to another document
altogether

A

Hypertext

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

is a way that computers speak to each other to
control how text is processed and presented. To do this HTML uses
two things: tags and attributes.

A

A Markup Language

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

are used to mark up the start of an HTML element and they are
usually enclosed in angle <> brackets.

A

Tags

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

contain additional pieces of information. Attributes take
the form of an opening tag and additional info is placed inside.

A

Attributes

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

Golden Rules To Remember

A

The vast majority of tags must be opened (<tag>) and closed
(</tag>) with the element information such as a title or text resting
between the tags.
2. When using multiple tags, the tags must be closed in the order in
which they were opened. For example

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

This tag specifies the language you will write on
the page. In this case, the language is HTML 5.

A

<!DOCTYPE html>

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

This tag signals that from here on we are going to write in
HTML code.

A

<html>
</html>

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

This is where the content of the page goes

A

<body>
</body>

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

Inside the <head> tag, there is one tag that is always included: <title>,
but there are others that are just as important</title>

A

Further Tags

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

This is where we insert the page name as it will appear at the top of
the browser window or tab.

A

<title>
</title>

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

This is where information about the document is stored: character
encoding, name (page context), description

A

<meta></meta>

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

We also have a number of
other elements we can use
to control the text or make
it appear in a certain way

A

Other elements

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

= Hypertext REFerence

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

is important to ensure that your site is ranked correctly on
search sites and also for visually impaired visitors to your site.

A

*Alt text

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

file types generally used for image files online are:

A

.jpg, .png, and
.gif

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

is an ordered
list of contents

A

Ordered List

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

This is better
known as a bullet point list and
contains no numbers.

A

Unordered List

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

e is defined using the <table> element, and contains a number of
table cells ( <td>, for “table data” ) which are organized into table rows
( <tr>)

A

Table tag

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

are required, when you want to collect some data from
the site visitor. For example, during user registration you would like to
collect information such as name, email address, credit card, etc

A

html forms

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

always starts on a new line, and the browsers
automatically add some space (a margin) before and after the
element.

A

Block-level Element

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

always takes up the full width available
(stretches out to the left and right as far as it can).

A

Block-level Elemen

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

does not start on a new line.

A

Inline Elements

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

only takes up as much width as necessary.

A

Inline Elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
clearly describes its meaning to both the browser and the developer.
semantic element
26
element defines a section in a document.
27
element specifies independent, self-contained content.
28
should make sense on its own, and it should be possible to distribute it independently from the rest of the web site.
An article
29
element represents a container for introductory content or a set of navigational links.
30
31
element defines a set of navigation links.
32
element defines some content aside from the content it is placed in (like a sidebar).
33
content should be indirectly related to the surrounding content
34
tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
35
element can be placed as the first or as the last child of a
element.
36
tag defines a caption for a
element
37
Defines a date/time
38
Defines a visible heading for a
element
39
Defines a section in a document
40
Specifies the main content of a document
41
Defines marked/highlighted text
42
Defines additional details that the user can view or hide
43
He is best known for developing Cascading Style Sheets (CSS) while working with Tim Berners-Lee and Robert Cailliau at CERN in 1994.
*Håkon Wium Lie
44
is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML
Cascading Style Sheets (CSS)
45
describes how HTML elements are to be displayed on screen, or in other media
CSS
46
” in CSS refers to the fact that styling rules “cascade” down from several sources.
cascading
47
points to the HTML element you want to style.
selector
48
contains one or more declarations separated by semicolons
declaration block
49
Multiple CSS declarations are separated with ___ , and declaration blocks are surrounded by curly braces.
semicolons
50
are used to "find" (or select) the HTML elements you want to style.
CSS selectors
51
s (select elements based on name, id, class)
Simple selectors
52
(select elements based on a specific relationship between them)
Combinator selectors
53
(select elements based on a certain state)
Pseudo-class selectors
54
(select and style a part of an element)
Pseudo-elements selectors
55
(select elements based on an attribute or attribute value
Attribute selectors
56
also known as a wildcard—matches any element.
Universal selector
57
matches a HTML element directly.
Type selector
58
matches any element that has that class applied to it
Class selector
59
uses the id attribute of an HTML element to select a specific element.
ID selector
60
- allows us to target a child element. This uses a space.
Descendant selector
61
You can look for an element that immediately follows another element
Adjacent sibling selector
62
selects all elements that are the children of a specified element
Child Selector (>)
63
selects all elements that are next siblings of a specified element
General Sibling Selector (~)
64
HTML elements find themselves in various states, either because they are interacted with, or one of their child elements is in a certain state. For example, an HTML element could be hovered with the mouse pointer by a user or a child element could also be hovered by the user.
Pseudo-classes
65
differ from pseudo-classes because instead of responding to the platform state, they act as if they are inserting a new element with CSS
Pseudo-elements
66
are also syntactically different from pseudo-classes, because instead of using a single colon (:), we use a double colon (::)
Pseudo-elements
67
Instruct CSS to look for attributes by wrapping the selector with square brackets ([ ])
Attribute selector
68
Everything displayed by CSS is a box. Understanding how the CSS Box Model works is therefore a core foundation of CSS.
Box model
69
is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.
CSS box model
70
The content of the box, where text and images appear
Content
71
Clears an area around the content. The padding is transparent
Padding
72
A border that goes around the padding and content
Border
73
- Clears an area outside the border. The margin is transparent
Margin
74
When we alter the natural size of an element by applying a specific value to it, as seen in the image, we refer to that sizing as
extrinsic
75
when the content’s size defines the element’s size, we refer to that as
intrinsic or natural size.
76
means that when you set dimensions, such as a width and height, they will be applied to the content box. If you then set padding and border, these values will be added to the content box's size.
Box-sizing: content-box
77
*If there are two or more CSS rules that point to the same element, the selector with the highest specificity value will "win", and its style declaration will be applied to that HTML element.
Specificity
78
JavaScript was invented by +++++ in +++++
Brendan Eich, 1995
79
javasript was developed for
Netscape 2
80
became the ECMA-262 standard in
1997
81
is one of the most widely used programming languages (Front-end as well as Back-end). It has it's presence in almost every area of software and web development.
Javascript
82
These unique names are called
identifiers
83
4 Ways to Declare a JavaScript Variable:
*Using var *Using let *Using const *Using nothing
84
javascript data types
1. String 2. number 3. Bigint 4. Boolean 5. Undefined 6. Null 7. Symbol 8. Object
85
Use if to specify a block of code to be executed, if a specified condition is true
Conditional Statements
86
* Use else to specify a block of code to be executed, if the same condition is false
Conditional Statements
87
* Use else if to specify a new condition to test, if the first condition is false
Conditional Statements
88
* Use switch to specify many alternative blocks of code to be executed
Conditional Statements
89
- loops through a block of code a number of times
for
90
- loops through the properties of an object
* for/in
91
loops through the values of an iterable object
for/of
92
loops through a block of code while a specified condition is true
while
93
also loops through a block of code while a specified condition is true
do/while
94
is a block of code designed to perform a particular task
JavaScript function
95
is executed when "something" invokes it (calls it).
JavaScript function
96
DOM
Document Object Model
97
If you want to access any element in an HTML page, you always start with accessing the
document object.
98
is an action you can do (like add or deleting an HTML element).
method
99
is a value that you can get or set (like changing the content of an HTML element).
property
100
JavaScript HTML DOM Events
*When a user clicks the mouse *When a web page has loaded *When an image has been loaded *When the mouse moves over an element *When an input field is changed *When an HTML form is submitted *When a user strokes a keY
101
was created in 2006 by John Resig. It was designed to handle Browser Incompatibilities and to simplify HTML DOM Manipulation, Event Handling, Animations, and Ajax.
jQuery
102
jQuery was created in _____ by _________.
2006 , John Resig
103
This is to prevent any jQuery code from running before the document is finished loading (is ready)
The Document Ready Event
104
jQuery Event Methods
*moving a mouse over an element *selecting a radio button * clicking on an element
105
text(), html(), and val()
Get/Set Content
106
Sets or returns the text content of selected elements
*text()
107
Sets or returns the content of selected elements (including HTML markup)
* html()
108
- Sets or returns the value of form fields
val()
109
was conceived sometime in the fall off 1994 by Rasmus Lerdof. Early non-released versions were used on his home page to keep track of who was looking at his online resume.
PHP
110
PHP was conceived sometime in the fall off ______ by ________.
1994, Rasmus Lerdof
111
The first version used by others was available sometime in early 1995 and was known as the ______
Personal Home Page Tools
112
PHP is an acronym for
"PHP: Hypertext Preprocessor
113
A PHP script is executed on the server, and the plain HTML result is sent back to the browser. *A PHP script can be placed anywhere in the document. *A PHP script starts with * The default file extension for PHP files is ".php". *A PHP file normally contains HTML tags, and some PHP scripting code
PHP script
114
is used to access a global variable from within a function.
global keyword
115
PHP supports the following data types:
* String * Integer * Float (floating point numbers - also called double) * Boolean * Array * Object * NULL * Resource
116
two operators that are specially designed for strings
CONCATENATION, CONCATENATION ASSIGNEMENT
117
loops through a block of code for each element in an array
* foreach
118
- loops through a block of code once, and then repeats the loop as long as the specified condition is true
* do...while
119
Arrays with a numeric index
* Indexed arrays
120
Arrays with named keys
Associative arrays
121
Arrays containing one or more arrays
Multidimensional arrays
122
sort arrays in ascending order
sort() -
123
sort arrays in descending order
*rsort()
124
sort associative arrays in ascending order, according to the value
asort()
125
sort associative arrays in ascending order, according to the key
* ksort()
126
sort associative arrays in descending order, according to the value
arsort() -
127
sort associative arrays in descending order, according to the key
krsort()
128
means that they are always accessible, regardless of scope - and you can access them from any function, class or file without having to do anything special.
superglobals
129
superglobals
* $GLOBALS * $_SERVER * $_REQUEST * $_POST * $_GET * $_FILES * $_ENV * $_COOKIE * $_SESSION