Core Computing Flashcards
What does HTML stand for?
HyperText Markup Language
What does CSS stand for ?
Cascading Style Sheets
What does svg stand for?
Scalable Vector Graphics
What does URL stand for?
Uniform resource locator
What is a selector?
This is used to refer to an element that you will modify in your CSS.
What format do we use when selecting an id in CSS ?
idname{
css goes here }
What format do we use when selecting class in CSS?
if its just a class then .classname{css}
if its a element with a class e.g. <p class = lol> then
p.lol {css}
Can we style in html?
Yes
How do we style in HTML?
We use style element. Then you type the CSS inside of it.
Why do we use CSS instead of just styling in HTML?
CSS provides better efficiency and saves memory.
What parts must a url always have?
. scheme/protocol
. host/domain name
. path (the /// part)
What does the port look like in the URL?
:123
How do we create hyperlinks in HTML?
we use the a element and its attribute href.
E.g.
<a>An Example Website</a>
How do we link CSS file or JavaScript file to html?
We make use of the script tag and the src attribute.
E.g.
<script> </script>
How do we use images in HTML ?
We use the img element and its attributes src for the name of the image file.
We must also include the alt attribute
E.g.
<img></img>
Why do we need the alt attribute when using the img element ?
Its a standard and the alt attribute helps people with screen reader know what the image is
Why is better to download the image?
It prevents hotlinking. This is when instead of putting a file in src you put a link to an image. This is bad because if the image from the link is changed or deleted so will yours
Why is svg good for images?
It offers higher resolution images
Name some markup languages ?
xml,html,svg
What is svg?
It is a mark up language for images
What do you need at the start of every html doc ?
<!DOCTYPE html>
Who created HTML ?
Tim Berners-Lee
What kinda markup do we prefer in HTML?
Descriptive not procedural
What is the difference between client and server?
Server operations are remote, whereas client operations are performed locally by a web browser.