HTML, CSS and JAVASCRIPT Flashcards
(15 cards)
what is the function of a <html> tag?
All code written within these tags is interpreted as HTML.
what is the function of a <body> tag?
Defines the content in the main content area of the webpage.
what is the function of a <link></link> tag?
used to link to additional files, including CSS stylesheets.
what does the <head> tag do?
Defines the browser tab or window heading area.
what is the function of <title> tag?</title>
Defines the text that appears with the tab or window heading area.
what do the <h1>,<h2>… tags mean?
Heading styles in decreasing size.
what does the <p> tag do?
It is used to define a paragraph seperated with a line space above and below.
what are <img></img> tags used for? and what are the two attributes that i need to know?
this tag is used for images, it is a self closing tag which means it doesn’t have a closing tag. Its attributes are
scr = to the source of the image.
alt = used to have a text describing the image incase the image doesn’t load.
what does the <a> tag do?</a>
it is used as an anchor tag which is used for hypder linking a text.
what HTML tag do we use to open an ordered list and what tag is used to define each item in the list?
<ol> is used to define the ordered list.
<li> is used to define each item in the list.
</li></ol>
what HTML tag is used to define an unordered list? and what tag is used to define each item in the list?
<ul> defines an unordered list.
<li> is used to define each item in the list.
</li></ul>
what is the <div> tag used for?
It divides a page into seperate areas, each which can be reffered to uniquely by name (using the “id” attribute).
how do we attach a CSS link using a <link></link> tag to HTML?
<link></link>
</link>
What is java script?
Javascript is a scripting language which primarily exists to add interactivity to websites. JavaScript is interpreted rather than compiled. Javascript is often used to validate input data on the client computer.
how do we input something from HTML to javascript?
by using document.getElementbyID()