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.
What is a web crawler?
A bot that traverses the Internet following links on each site. It then adds this to the index which is then searched by the browser.
What are the two factors that affect the value of the PageRank?
How many incoming links it has from other web pages.
The PageRank of the web page that links to it.
What is server-side processing?
When a client sends data to a server for it to be processed.
What are the advantages of server-side processing?
Can perform large calculations much faster than clients.
Not browser-dependent
More secure.
What is client-side processing?
When a client processes data on a local device.
What are the advantages of client-side processing?
Doesn’t waste server space.
Webpage immediately responds to user actions.
Executes quickly.
What are the disadvantages of server-side processing?
Can waste server time for simple tasks.
Can reduce security as data has to be transmitted to the server.
What are the disadvantages of client-side processing?
Browser dependant.
Slower to process large amounts of data.
Cannot access features of a server such as comparing credentials to a customer database.