Sunteți pe pagina 1din 2

 La ce este util doctype?

Conține instrucțiuni despre elementele și proprietățile disponibile în codul


HTML.

Doctype ajută browserele să proceseze codul sursă și să afișeze website-urile în


mod corect.

Standardele actuale stipulează că elementul trebuie să fie prezent în codul sursă


al fiecărui document web.

Dacă elementul doctype lipsește, este o eroare, chiar dacă documentul poate fi
încă afișat corect.

Instrumentele pentru verificarea codului sursă afișează o eroare dacă elementul


lipsește în documentul HTML.

 Considerând HTML5 ca o platformă web deschisă, care sunt parțile


componente alte HTML5?
o <article> - container de continut de sine-statator;
o <aside> - defineste continutul relationat de article, dar independent de acesta;
o <audio> - container pentru continut audit;
o <canvas> - container pentru dezvoltare grafica;
o <section> - defineste o sectiune in cadrul paginii;
o <video> - container pentru continut video;
HTML5 vine si "face lumina" cu nou <nav>, <footer> sau <header>.

 Descrie diferența dintre cookies, sessionStorage și localStorage.


Cookies
Has different expiration dates (both the server or client can set up expiration date)
The Client can't access the Cookies if the HttpOnly flag is true
Has SSL Support
Data are transferred on each HTTP request
4kb limit

Local Storage
Has no expiration date
Client only
Has no SSL support
Data are not transferred on each HTTP request
5 mb limit (check with the browser)

Session Storage
Data is gone when you close the browser tab
Client only
Has no SSL support
Data are not transferred on each HTTP request
5-10 mb limit (check with the browser)

 Descrie diferența dintre <script>, <script async> și <script defer>.


o <script> = used to define a client-side script
o <script async≥= If async is present: The script is executed asynchronously with
the rest of the page (the script will be executed while the page continues the
parsing) If async is not present and defer is present: The script is executed
when the page has finished parsing.
o <script defer≥= The defer attribute tells the browser to only execute the script
file once the HTML document has been fully parsed
 Care este diferența dintre clase și ID-uri în CSS?
o Id-urile trebuie sa fie unice intr-un document, in schimb mai multe elemente
pot avea aceeasi clasa.

o Id-urile mai sunt folosite si pentru a gasi elemente (DOMNode) in javascript.

o One quick way to figure out how “powerful” a CSS rule is, is by measuring the
specificty of the selectors:
o #id selectors are worth 100
o .class selectors are worth 10
o tag selectors are worth 1

 Closure in js
o O inner function are acces la variabilele functiei outer, si la scope-
ul ei
o a JavaScript prototype is a place that stores properties and methods for other
objects. Said differently, JavaScript objects inherit their properties and
methods from their prototype.
 Here are some of the common JavaScript events:
 change:: An HTML element has been changed
 click:: The user clicks an HTML element
 mouseover:: The user moves the mouse over an HTML element
 mouseout:: The user moves the mouse away from an HTML element
 keydown:: The user pushes a keyboard key
 load:: The browser has finished loading the page

S-ar putea să vă placă și