1.3.4 - Web Technologies Flashcards
What is HTML?
Hypertext Markup Language is a programming language that is used to write web pages.
What are the two sections of an HTML webpage?
Head and body.
What is the HTML syntax for a heading?
<h1>, <h2>, ... <h6>
In order of decreasing size.</h6></h2></h1>
What is the HTML syntax for a paragraph?
<p></p>
What is the HTML syntax for an image?
<img></img>
What is the HTML syntax for a hyperlink?
<a> Link text </a>
What is the HTML syntax for an ordered list?
<ol>
<li> Item 1 </li>
<li> Item 2 </li>
</ol>
What is the HTML syntax for an unordered list?
<ul>
<li> Item 1 </li>
<li> Item 2 </li>
</ul>
What does the div tag do?
Divides the page into separate areas which can be uniquely referred to by name.
What is the syntax for a named division?
div id = “page”
What is CSS?
Cascading style sheets is a language used to determine the style of the webpage.
What is embedded CSS?
Where CSS is placed inside the style tags directly into the HTML document.
What is external CSS?
Where CSS is written on a separate document and a link is provided in the header.
What is the syntax to link an external CSS sheet?
In terms of CSS, what is a class?
A way of applying a particular CSS style to multiple elements.
In terms of CSS, what is an identifier?
A way of applying a particular CSS style but only to a single element.
What is JavaScript?
A programming language that is used to add interactivity to websites such as mini-games or validating forms.
Is JavaScript interpreted or compiled?
Interpreted.
What are the advantages of using JavaScript?
The local computer can deal with invalid data before it goes to the servers which ease the load on busy servers.
Reduces web traffic.
What is the JavaScript syntax for changing an attribute of an HTML element?
element = document.getElementById("example"); element.innerHTML = "Hello world";
What is the JavaScript syntax for writing directly to the document?
document.write(“Hello world”);
What is the JavaScript syntax for displaying an alert box?
alert(“Hello world”);
What is a search engine?
A program that searches through a database of internet addresses looking for resources based on criteria set by the client.
What determines the order of web pages?
The PageRank algorithm.