2. Tell me why did you get into coding, programming, etc.?
"Because I can make good $," "I don't like to dress up or shave," and "because I loved the movie Hackers," are not good enough answers. Well… a comment about Hackers might fly but make sure you have a real backstory that describes your "Aha!" moment.
4. What is the difference between HTML elements and tags?
HTML elements communicate to the browser how to render text. When surrounded by angular brackets <> they form HTML tags. For the most part, tags come in pairs and surround text.
5. Tell me what is a simple PHP method to make a cross domain data request?
file_get_contents().
The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using a wrong DOCTYPE may load your page in Quirks Mode.
See example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">.
8. Tell me can jQuery be used to make an AJAX request?
Yes jQuery cab be used to make an AJAX request.
9. Tell us what is the difference between require() and include() when an error is encountered?
include() will raise a warning if it fails, require() will raise a fatal error.
10. Explain what's the difference between standards mode and quirks mode?
Quirks Mode is a default compatibility mode and may be different from browser to browser, which may result to a lack of consistency in appearance from browser to browser.
12. Tell me what elements have disappeared?
As mentioned above, <frame> and <frameset> have been eliminated. Other elements that are no longer supported include: <noframe>, <applet>, <bigcenter> and <basefront>.
13. Explain what are three ways to reduce page load time?
Reduce image sizes, remove unnecessary widgets, HTTP compression, put CSS at the top and script references at the bottom or in external files, reduce lookups, minimize redirects, caching, etc.
15. Explain what is the difference between SVG and <Canvas>?
<Canvas> is an element that manipulates two-dimensional (2D) pixels while Scalable Vector Graphics works in 2D and three-dimensional (3D) vectors. Essentially, <Canvas> is to SVG as Photoshop is to Illustrator.
16. How to include a comment in JavaScript?
/* This is a comment block */
//This is a commented out line
var colors = ['red, 'yellow', 'green', 'blue'];
Asynchronous JavaScript and XML. Client side process used for GET, POST etc to get new data without having to refresh the page.
20. Explain what is the difference between the application model of HTML and HTML5?
Trick question, there is no difference. HTML5 is a continuum of HTML and just a souped up version of the original HTML. There has been no major paradigm shift.
var t = "Hello World";
console.log(t);
script tag, linked to a jquery CDN or locally hosted file.
23. Explain Inside a php function, what param needs to be set in order to access a global variable?
function function_name(){
global $the_global_var;
}
25. Explain what is the syntax difference between a bulleted list and numbered list?
Billeted lists use the <ul> tag, which stands for "unordered," whereas <ol> is used to create an ordered list.
26. Explain what is the difference between "==" and "==="?
"==" checks equality, "===" checks equality and type
27. Tell me what is the new DOCTYPE?
Instead of typing out a ridiculously long DOCTYPE statement to tell the browser how to render your webpage, this long line of code has been truncated to <!doctype html>.
28. Tell me what are some new HTML5 markup elements?
There are several:
☛ <article>
☛ <aside>
☛ <bdi>
☛ <command>
☛ details>
☛ <figure>
☛ <figcaption>
☛ <summary>
☛ <header>
☛ <footer>
☛ <hgroup>
☛ <mark>
☛ <meter>
☛ <nav>
☛ <progress>
☛ <ruby>
☛ <rt>
☛ <section>
☛ <time>
☛ and <wpr>
29. Explain what are the new media-related elements in HTML5?
Canvas and WebGL. <Canvas> is a new element that acts as a container for graphical elements like images and graphics. Coupled with JavaScript, it supports 2D graphics. WebGL stands for Web Graphics Language, a free cross-platform API that is used for generating 3D graphics in web browsers.
30. Tell me what are some new input attributes in HTML5?
There are many new form elements including: datalist, datetime, output, keygen, date, month, week, time, number, range, email, and url.
31. Explain what are data- attributes good for?
The HTML5 data- attribute is a new addition that assigns custom data to an element. It was built to store sensitive or private data that is exclusive to a page or application, for which there are no other matching attributes or elements.
32. Tell me Is JavaScript case sensitive?
Yes JavaScript is case sensitive
33. Do you know what purpose do Work Workers serve and what are some of their benefits?
Web Workers are background scripts that do not interfere with the user interface or user interactions on a webpage, allowing HTML to render uninterrupted while JavaScript works in the background.
34. Tell me what are 2 (shorthand) boolean operators supported by JavaScript?
or ||, and &&, not equal to !
35. Do you know what are some of the major new API's that come standard with HTML5?
To name a few: Media API, Text Track API, Application Cache API, User Interaction, Data Transfer API, Command API, Constraint Validation API, and the History API.