-
Difference between HTML, XML, and XHTML? * HTML is a markup language used for displaying text and documents across different platforms and machines. It was originally intended for a very specific audience, and has expanded to include hypertext, multimedia, as well as the style of the documents displayed * XML is an extensible markup language that was developed to retain the flexibility and power of HTML while reducing most of the complexity. * XHTML combines the flexibility of HTML with the extensibility of XML. For XHTML, the
DOCTYPE
, The xmlns attribute in<html>
,<html>
,<head>
,<title>
, and<body>
is mandatory -
Name 3 of the minimum HTML elements needed for an HTML document
html <!DOCTYPE html>, <html>, <body>, <head>
- Difference between display “block”, “inline”, and “inline-block”?
- Imagine a
<span>
element inside a<div>
. If you give the<span>
element a height of100px
and a red border for example, it will look like this with - Inline
![](http://i.stack.imgur.com/Emf0B.png)
- **Inline-block**
![](http://i.stack.imgur.com/1vbks.png)
JavaScript Basic Issues Q1 - Q20
- What is "closure" and how to implement it? When to use it? - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures - http://howchoo.com/g/mge2mji2mtq/javascript-closures-by-example - http://stackoverflow.com/questions/111102/how-do-javascript-closures-work - http://javascriptissexy.com/understand-javascript-closures-with-ease/ - http://stackoverflow.com/questions/2728278/what-is-a-practical-use-for-a-closure-in-javascript
-
What is jQuery? - A Javascript library that make things like DOM selection/manipulation, AJAX, and animation, easier
-
What programming language does jQuery use? - Javascript
-
Is jQuery code executed on the client side, or server side? - Client side
-
How do you install/use jQuery in a project? What is the minimum setup needed to start using jQuery?
-
What is “promise” and "call back function"? - https://blog.jcoglan.com/2013/04/01/callbacks-promises-and-simplicity/ - http://stackoverflow.com/questions/6801283/what-are-the-differences-between-deferred-promise-and-future-in-javascript
-
Difference between
$http
and$ajax
? - http://stackoverflow.com/questions/20860207/angularjs-http-vs-jquery-ajax - http://stackoverflow.com/questions/12131659/from-jquery-ajax-to-angular-http -
Relation between
$http
and "promises"?
- Create an unordered list with no class and no id. When clicked, send an alert window to show which list has been clicked. Use Javascript or jQuery - Answer: ```html
JavaScript Exercise[http://www.w3resource.com/javascript-exercises/]
- Write a JavaScript program to display the current day and time in the following format.
var today = new Date();
var day = today.getDay();
var dayList = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
console.log('Today is: ' + dayList[day]);
var hour = today.getHours();
var prepand = (hour >= 12) ? 'AM' : 'PM';
#Constants# constants
#Scoping#
#Arrow Functions#
#Extended Parameter Handling#