Revision Flashcards
What is the script tag used for ?
used to define the frontend JavaScript for a web page
where can the script element and tag be used ?
in the body or the head, depending on how you want the page to load.
What type of slash does the closing tag of an html tag take?
a forward slash
what is the definition of an HTML element?
some form of inner content that is wrapped in an html tag
Do all html tags have to have inner content?
no for example the image tag doesnt have inner content
what three things does attributes consist of?
a property, equal sign, value in quotes
href = “https//:www.website.com”
when creating a link to a website what do we need to make sure we add before the www of a webpage?
https://
when adding an alt attribute to an image tag, does the alt take the same quotations as the src attribute?
no, they are two separate attributes, therefore they have two different values and equal signs along with their own separate sets of quotation marks
what element should you wrap the H1 (and h2 if used as a subtitle for h1) in?
the header tag
what two things should you always add to the head section when creating a page?
a title
and a meta tag with the description of the page
how can we make a phone number a link?
the same way you make an email a link, but instead you use tel: instead of mailto:
a href=’tel:+14153612507> 415 361 2507
what is the content layer?
it is the layer of code that describes the html structure of a webpage
what is the presentation layer?
the presentation layer is the layer of code that css controls - the presentation of the structured content (content layer)
what two things does a rule set consist of?
a selector and declaration box
psuedo class targets what?
specific state of an element
psuedo element targets what?
specific part of the element
how to link css to a html page
head
link rel=”stylesheet” type=”text/css” href=”./css/main.css”
/head
when applying a font with two names using font-family: in css how do we type it in? do we add the space? underscore? make it one word?
you type it normal
without the space or any other punctuation or features
font-family: font name
what preset values can font-weight be set to?
normal Defines normal characters. This is default
bold Defines thick characters
bolder Defines thicker characters
lighter Defines lighter characters
what numerical values can font-weight be set to?
100 200 300 400 (same as normal) 500 600 700 ( same as bold) 800 900
what are some common background-size property values?
auto
number/percent
cover
contain
what does the auto value for the background-size property mean?
its the default setting and sets the image to its original size/dimensions
what does the cover value for the background-size property mean?
it means that it will stretch the image so it covers the whole space, even if it has to cut off some of the edges to make it work
what does the contain value for the background-size property mean?
it means that it will make sure all of the image is shown within the dimension of the parent element