html Flashcards
What is the tag <h1> known as?</h1>
An opening tag
What is the tag known as?
a closing tag
How many header elements (hn) are there?
six
What is the purpose of the <p> tag?</p>
To contain one or more sentences
What does the anchor element (<a>) do?</a>
Creates a hyper link defined by the attribute href that equals the value string url
for the image src attirubute in the img tag, what should the value be?
A url string like the anchor tag
What is special about the img tag?
It is self closing. which means it doesn’t need a closing tag
Is the video tag self closing?
No it requires a closing tag
How is the source of the video defined?
A separate source tag with a src attribute like the image tag
What attribute is used in the video tag to make the video have play/pause ability
the control attribute
How is the type of video defined?
As the type attribute in the video tag. For example, type=”video/mp4”
What is the <ul> tag?</ul>
unordered list that can contain list tags
When a tag is inside the opening & closing tags of another element what is this called?
nested elements, where on is the child and one is the parent
What can metadata be thought of in an html file?
The brains
What does the metadata, do?
Tells the browser that we are expecting an html file
What is the purpose of the tags?
It acts as the parent of all tags in the file
What does html stand for?
hypertext markup language
What does css stand for?
Cascading style sheet
What is it called when the css comes external from the file?
unlinked
What tag in an html links other files?
link tag
What attributes can be included in a tag.
rel, or relation such as stylesheet. type such as text/css. href, which specifies the file/path
Where should the link tag be put?
In the header
What is a css file made of?
Sectors and properties help in curly brackets which make up the “rule”
What does the font family attribute do?
font-family: Palatino, ‘Palatino Linotype’, serif, gives thee selected text in that tag palatino font
when defining color what are the two options?
rgb or hexadecimal
When adding a class to a tag, what needs to precede the tag name in the css file?
A period
How do you define the path/name of the background image?
background-image: url(“PATH.name”)
How do you make the image cover the div?
By using the background-size:cover
when should the id attribute be used?
When one element must be unique
What should precede an id name in the sector
A hash
Like in most languages, what do parenthesis usually indicate?
php functions
are functions case sensitive?
Yes
Can arguments be passed by reference?
No
Give an example of an include statement in php
include “library.php”;
Is php object oriented?
yes
how is a class declared?
Class name{}
How are fields in an object accessed in php?
$object -> feildname
Do php objects have constructors
Yes
If a method is static what must precede the name?
the word static
When retrieving a static function from an object is the “->” used?
No, a double colon is used
What three properties can a function have?
protected, public, private
What two ways can constants be defined?
The defined keyword or const