Free Essay

Html 5

In:

Submitted By freegigi
Words 3523
Pages 15
HTML5

HTML 5

Cerinţe examen
• • • • Activitate seminar-20% Examen practic-sapt 14. - 45% Examen scris –sesiune-35% Minim nota 5 la fiecare probă

Istoric
HTML2 a fost dezvoltat de Internet Engineering Task Force HTML Working Group in 1996. O versiune învechita care nu se mai studieaza. HTML 3.2 a devenit o Recomandare W3C pe 14. Ianuarie 1997. HTML 3.2 conţinute caracteristici noi: fonturi, tabele, appleturi, superscript, subscript şi mult altele ce extind standardul HTML 2.0. Unul dintre elementele adăugate la standardul HTML 3.2, a fost tag-ul . Această etichetă a introdus o complexitate inutilă pentru sarcina importanta de a separa conţine cod HTML (text) de la prezentarea acestuia (stil). Tag-ul a devenit învechit in HTML 4.0. HTML 4.0 a devenit o Recomandare W3C pe 18. Decembrie 1997. O a doua versiune a fost emisă la 24. Aprilie 1998, cu doar câteva corecţii editoriale. Cea mai importantă caracteristică a HTML 4.0 a fost introducerea foilor de stil (CSS). HTML 4.01 a devenit o Recomandare W3C pe 24. Decembrie 1999. HTML 4.01 a fost un update minor de corecţii şi de înlăturarea a bugurilor din HTML 4.0. XHTML 1.0 reformulare a lui HTML 4.01 în XML. XHTML 1.0 a devenit o Recomandare W3C pe 20. Ianuarie 2000. HTML 5 devine public la data de 22 ianuarie 2008, cand W3C a publicat un proiect de lucru pentru HTML 5. HTML 5 imbunatateste interoperabilitatea, şi reduce costurile de dezvoltare, prin norme precise privind modul în care să se ocupe de toate elementele HTML, si de a recupera/trarata/evita erori. Unele dintre noile caracteristici din HTML 5 sunt funcţii pentru încorporarea audio, video, grafica, stocarea datelor pe parte de client, precum şi documente interactive. HTML 5 conţine, de asemenea, elemente noi, cum ar , , , şi . Obs: HTML5 nu este încă o recomandare W3C

HTML5 1. se bazeaza pe HTML, CSS, DOM, şi JavaScript 2. reduce nevoia de plugin-uri externe (precum Flash) 3. o mai bună tehnica de manipulare a erorilor 4. mai mult Markup pentru a înlocui scripting 5. independenta de dispozitiv Modificarile HTML5: 1. se foloseste doar o simpla forma pt DOCTYPE astfel: . Intentionat nu contine nici o precizare pt a putea fi folosita in versiunile viitoare de HTML. 2. se retin atributele pt limbaj. Nu este obligatoriu sa se foloseasca atributele xmlns sau xml: lang in tagul . In HTML5 se va scrie: 3.se definesc seturile de caractere cu ajutorul atributului charset din meta tag: 4. Pt elementele nule in HTML5 de ex: br, img si input nu mai cer slash-ul de final 5. nu mai se accepta in HTML5 elementele: , , , , , , , , , , , , , and

HTML 5 introduce şi îmbunătăţeşte o gamă largă de caracteristici (controalele formular, API-uri, multimedia, structura şi semantică) -scopul este : de a oferi dezvoltatorilor o mai mare flexibilitate şi interoperabilitate, şi a permite site-urile web mai interactive şi mai incitante . Dezvoltarea lui HTML 5 a inceput din 2004 si sunt implicati W3C HTML WG, WHATWG, Apple, Mozilla, Opera, and Microsoft.HTML5 este in curs de dezvoltare ....... HTML5 introduce un set întreg de elemete noi care permit sa realizeze o structurarea mai usoara a paginilor web. HTML 4.0 includea o varietate de structuri comune cum ar fi: headers, footers si coloane. In prezent este comuna folosirea acestora in div-uri carora li se ofera un id descriptiv sau de clasa.

Este un exemplu tipic pt HTML 4 de impartire a continutului unei pagini in: 1. 2 coloane prin utilizarea div-urilor cu atributele id si class. 2. partea de antent si subsol. Sub antent este prezenta o bara de navigare orizontala. Partea de continut principal este alcatuit din articol si un slidebar in dreapta. In HTML 4 folosirea div-urilor in toate zonele era ceva normal.

HTML 5 abordează această problemă prin introducerea unor elemente noi pentru a reprezenta fiecare dintre aceste secţiuni in mod diferit astfel:

Se observa ca elementele div sunt inclocuite cu: header,nav, article, section, aside, footer. Codul documentului va arata astfel: ... ... ... ... ...

Level 1 Level 2 Level 3 A B C D E F

HTML vresiuni anterioare

HTML vresiunea 5 In sectiunea header se pot intdoduce datele legate de: titlul documentului, autorul documentului etc. HTML 5 De x Exemple Introducere tag lini aici.

Elementul footer - sectiunea de subsol a unei pagini. Un subsol tipic contine informatii legate de cine a scris , legaturi spre alte documente copyright data . Ex:
© 2011 XX.

Elementul nav reprezinta o sectiune destinata link-urilor de navigare. Elementul nav poate fi privit ca un un tabel de continut : Home Produse Servicii Despre

Elementul -este pt continut. -poate fi tag spre alt continut asemanator. - este destinat utilizarii pentru a marca lateralele.(de fapt arhivele pe acelasi continut) Archives September 2007 August 2007 July 2007

Elementul -o sectiune generica a documentului sau a aplicatiei, cum este un capitol, de ex: Chapter 1: HTML: 4 HTML4 este ……………………………. ...

Elementul < article > -o sectiune independenta a unui document, pagina sau site. -potrivit pentru link-uri spre conţinutul unor articole de ştiri de pe blog, posturi pe forumuri sau pentru comentarii individuale. Comment #2 by George 25Septembrie ora:23.23 Este un articol interesant

Functii noi ale lui HTML5: 1. elementul canvas pt desen 2. elementele video si audio pt redarea fisierelor de muzica 3. suport mai bun pt stocari locale offline 4. noi elemente de continut specifice: ca article, footer, header, nav section 5. noi controale de forma: calendar, date, time, e-mail, url si search. HTML 5 include elemente noi pt a realiza: - o structurarea mai buna a documentelor; - obiecte pt desen mai performante -posibilitatea de a adauga continut media - un handling mai bun pt formulare.

Video and Audio In ultimi ani aceste elemente au devenit de nelipsit pe site-uri ca: YouTube, Viddler, Revver, MySpace -pana in prezent HTML nu putea incorpora cu succes controale multimedia in site-uri se recurgea la folosirea Flash pt a oferi astfel de functionalitati. In afara de Flash se mai puteau folosi plug-in pt a integra multimedia de ex: QuickTime, Windows Media etc. In prezent Flash este cel mai raspandit deoarece ofera o solutie compatibila cu API-urile dorite de dezvoltatori. Se doreste sa se adauge la browsere un suport nativ pt integrarea video- audio si furnizarea de APIs DOM pt scripturi pt a controla redarea de catre utilizatori. Elementele video si audio fac aceasta integrarea foarte usoara. Cele mai multe APIs sunt impartite intre aceste 2 elemente , cu singurele diferente inerente dintre media visuala si non-vizuala. Atat Opera cat si WebKit au lansat un suport partial pt elementul video. Opera include suport pt Ogg Theora si WebKit ofera suport pt toate formatele care sunt accesibile pe QuickTime inclusiv codec-uri. Calea cea mai simpla de a include video, este de a folosi elementul si de a lasa browser-ul de a oferi o interfata de utilizator implicita. Atributul controls este boolean care indica daca UI permite sau este dezactivat in mod implicit. Atributul poster-specifica ce tip de imagine va fi afisata in loc de film, inainte de inceperea filmului. Download film

Aceste controale prezinta metodele play(),pause() si setarea currentTime pt a derula() de la inceput. Ex de utilizare a acestor metode: .......

Elementul canvas nu are abilitatea de a se desena singur. Toate desenele tb incluse in interiorul lui JavaScript astfel: Browserul nu suporta tag-ul . var c=document.getElementById("myCanvas"); var cxt=c.getContext("2d"); cxt.fillStyle="#FF0000"; cxt.fillRect(0,0,150,75);

Elementul canvas in HTML5 este caracteristica pe care majoritatea dezvoltatorilor vor dori să o folosească pentru a dezvolta aplicatii web cu adevarat rich client - fără a fi nevoie să se instaleze browser plug-in-uri cum ar fi Adobe Flash Player. Def: Canvas este este un element nou în HTML5, care permite să atragă grafica cu ajutorul JavaScript. Canvas poate fi utilizat pentru a genera text, imagini, grafice, dreptunghiuri, linii, gradient și alte efecte dinamice. Prin intermediul canvas se pot utiliza API-ul 2D. Acest API conține o multitudine de funcții care oferă puterea de a desena tot cea ce se doreste sa apara in canvas. În prezent, canvas sprijină o suprafață 2D, nu 3D.
Pentru a vizualiza canvasul se va adauga o linie de contur albastra astfel: Exemple canvas nu se poate folosi CSS pt ele. CSS va afecta doar zona de patrat a Canvasului in sine, a.i. se poate seta o bordura albastra şi o culoare de fundal de exemplu roşie. -Dom animaţie: DOM (DOCUMENT OBJECT MODEL) defineşte un obiect pentru tot ce se afişează într-o pagina web. DOM animation se poate folosi cu CSS sau JavaScript pentru a desena obiecte. Canvas este un nivel scăzut faţă de SVG,CSS sau alte elemente DOM. => control asupra desenului şi să se folosească mai puţină memorie, dar scriind mult cod. SVG se foloseste atunci când există shaps care se doresc încarcate pe ecran(cu Adobe Illustrator) CSS sau animaţii DOM se folosesc atunci când se doreşte să se animeze zone mari statice, sau dacă se doreşte să se convertească la 3D.Canvas este o alegere bună pentru diagrame, grafice, diagrame dinamice, și de jocuri video.

Canvas este acum un API stabil care este suportat de cele mai moderene browsere şi chiar şi de Internet Explorer de la versiunea 9.
Browser Desktop Safari Chrome Opera FireFox Internet Explorer Version 3.0+ 10+ 9+ 4.0+ 9.0+

Pe parte mobilă, aproape toate platformele smartphone oferă un bun suport pentru Canvas bazându-se pe WebKit. Support sigur pentru canvas se afla pe webOS, iOS, şi Android.
Mobile Browser iOS webOS Android BlackBerry Windows Phone 7 Version All All 2.0+ Playbook and OS 6.0+ None

Canvas este un API 2D. Paşi în utilizarea Canvasului: 1.se face o referinta la un context graphic; 2.se setează proprietăţile dorite: culoare de umplere, culoare de contur, gradient.

Exemplul 2: Redimensionare dreptunghi in proprietate fillRect (pct x, pct y, width, height) // context grafic // definire contur si culoare de umplere var canvas = document.getElementById('canvas'); var b= canvas.getContext('2d'); b.fillStyle = "red"; b.fillRect(13,220,100,200);

Canvas ce contine un pătrat roşu creat cu funcţia context.fillRect() : var canvas = document.getElementById('canvas'); var c = canvas.getContext('2d'); c.fillStyle = "blue"; c.fillRect(10,10,300,200);

În acest exemplu, se setează o culoarea de umplere curentă, se crează o cale, apoi se umple cu culoare prin proprietăţile fillStyle şi strokeStyle. Proprietăţile fillStyle şi strokeStyle pot luat ca valoare culori in hexazecimal, litere sau functii RGB(). a.fillStyle = "Culoare" - reprezinta culoarea din interiorul formei. Se poate folosi orice metoda de definire a culorii utilizata in CSS (blue, #0000ff, #00f, sau rgb(0,0,255) ). - Daca nu se specifica o culoare, va fi aplicat negru. a.fillRect(X-stanga, Y-sus, lungime, inaltime) - Deseneaza patrulaterul in canvas, folosind cloarea din "fillStyle". Canvas ofera support pentru crearea de dreptunghi. In cazul in care se doreste sa se deseneze alte forme se folosesc PATHS(trasee). Paths sunt forme create de un grup de segmente de linii drepte sau curbe. Etape de desenare a unui Path in canvas: se defineste o cale cu beginPath (); pentru fiecare segment de linie se folosesc urmatoarele funcţii MoveTo(), lineTo() şi bezierCurveTo(). lineTo(x, y) Aceasta metoda traseaza o linie de la punctul curent pana la coordonatele (x, y). Pentru a seta sau muta punctul curent de inceput, se foloseste metoda moveTo(). moveTo(x, y) - Aceasta metoda creaza, sau muta, punctul de inceput al desenarii, la coordonatele specificate.

Exemplul de mai sus se deseneaza o forma cu MOVETO urmat de segmentul Bezier şi apoi câteva li După creare, path se umple cu fill.

var canvas = document.getElementById('canvas'); var c = canvas.getContext('2d'); c.fillStyle = 'red'; c.beginPath(); c.moveTo(10,30);//seteaza punctual de inceput c.bezierCurveTo(50,90,159,-30,200,30); c.lineTo(200,90);//defieste linia c.lineTo(10,90); c.closePath(); c.fill(); c.lineWidth = 4;// defineste grosimea liniei c.strokeStyle = 'black';//defineste culoare liniei c.stroke(); //adauga liniile

Transparenţa imagini se realizeaza cu rgba(Red, Green, Blue, Alpha). "Alpha" e o valoare între 0 şi 1 care reprezintă transparenţa. Canvas transparenta Browser compatibil-Canvas pt a vizualiza aceasta zona.

Canvas - Text Sunt două metode pentru adăugare text în canvas: fillText(text, x, y) - adaugă textul la poziţia specificată, având culoarea din fillStyle. strokeText(text, x, y) - adauga textul la poziţia specificată, dar fără culoare de umplere, doar cu linia de margine a literelor, având culoarea din strokeStyle. Pentru text se pot folosi următoarele proprietăţi la obiectul context: a.font = valoare - Specifică fontul textului, la fel ca proprietatea font-family din CSS. a.textAlign = valoare - Specifică alinierea pe orizontală a textului, valori: "start", "end", "left", "right", "center" (default e "start"). a.textBaseline = valoare - Specifică alinierea pe verticalş a textului, valori: "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default e "alphabetic"). Folositi un browser compatibil-Canvas ca sa vedeti aceas zona.

Canvas - Umbre Instructiunile JavaScript pentru umbre contin proprietati care se aplica la obiectul context: ctx.shadowColor = valoare - Seteaza culoarea umbrei. ctx.shadowBlur = valoare - Seteaza "blur" la umbra, in pixels. Cu cat valoarea e mai mica, umbra e mai ascutita. ctx.shadowOffsetX = valoare - Specifica distanta X, in pixeli. ctx.shadowOffsetY = valoare - Specifica distanta Y, in pixeli. Urmatorul cod deseneaza o sfera rosie, cu o umbra galbena avand transparenta 0.8: Folositi un browser compatibil-Canvas ca sa vedeti aceasta zona.

Canvas - Gradient Pentru a crea culoare gradient in Canvas, se aplica un obiect CanvasGradient la proprietatile fillStyle sau /si strokeStyle. Se pot crea doua tipuri de obiect CanvasGradient, utilizand una din urmatoarele metode: gradient = context.createLinearGradient(x0, y0, x1, y1) - Returneaza un obiect CanvasGradient ce reprezinta un gradient liniar, care incepe de la punctul (x0, y0) si se termina la punctul (x1, y1). gradient = context.createRadialGradient(x0, y0, r0, x1, y1, r1) - Returneaza un obiect CanvasGradient ce reprezinta un gradient radial, ca un con cu cercul mic dat de (x0, y0, raza0), iar cercul mare definit de (x1, y1, raza1). Dupa crearea obiectului pentru gradient, se pot adauga culori in gradient, cu metoda addColorStop()aplicata acestui obiect. Urmatoarele doua coduri arata cum se poat crea si folosi gradient.

1.Exempu cu createLinearGradient(): Folositi un browser compatibil-Canvas ca sa vedeti aceasta zona.

2. Exemplu cu createRadialGradient(): Folositi un browser compatibil-Canvas ca sa vedeti aceasta zona.

Text şi imagini

Folositi un browser compatibil-Canvas ca sa vedeti aceasta zona.

Elementul poate fi si interactiv, sa raspunda la actiunile utilizatorului, efectuate cu mouse-ul sau tastatura. - In urmatorul exemplu se folosesc evenimentele: "onmouseover", "onmouseout", si "onclick" pentru a schimba culoarea unui dreptunghi in . Folositi un browser compatibil-Canvas ca sa vedeti aceasta zona.

http://dev.w3.org/html5/2dcontext/

APLICAŢII OFFLINE
• O aplicaţie web este o listă de URL-uri- HTML,CSS,Javascript, imagini sau orice altă formă de resursă. • Homepage-ul unei aplicaţii offline directionează utilizatorul către această lista (fişier manifest) ceea ce este doar un fişier text de pe server. • Un Browser ce implementează aplicaţii offline HTML5 citeşte această listă, downloadează resursele indicate şi le înmagazinează local actualizându-le doar când este necesar. • la accesarea aplicaţia web fără acces la Internet, browserul web va aduce copiile locale. Există în DOM un flag ce indică starea: online sau offline. – var online = navigator.onLine; • Acest atribut se modifică în timpul evenimentelor online şi offline ce sunt manevrate de obiectul Window. http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html

MANIFESTUL CACHE
• O aplicaţie web offline este dependentă de fişierul cache manifest. • Manifestul CACHE = lista resurselor de care are nevoie aplicaţia web când este deconectată de la reţea. • Utilizarea fisierului cache manifest ... Fişierul manifest se poate regăsi oriunde pe server dar trebuie servit clientului având Content-Type: text/cache.manifest. • Exemplu Manifest Cache de pe server: CACHE MANIFEST /static/s.html /media/d.png /media/d.png /css/s.css /js/s.js Fişierul manifest are trei secţiuni:
1. CACHE MANIFEST - fişierele listate sub acest header vor fi verificate după ce sunt descărcate pentru prima data 2. NETWORK - fişierele listate sub acest header necesită o conexiune la server şi nu vor fi niciodata cache-uite 3. FALLBACK - fişierele listate sub acest header specifică pagini de rezervă în cazul în care o pagina nu este accesibilă

Stocarea Datelor pe client Atributele noi pentru stocarea datelor sunt similare cu modulele cookie din sesiunile HTTP. Acestea sunt "sessionStorage" şi "localStorage". * SessionStorage este utilizat pentru a salva datele atâta timp cât o fila sau fereastră a browser-ului rămâne deschisă -memorarea datelor in sesiuni(echivalentul lui cookie) - nu persista daca se inchide tab-ul, el nu exista daca se va naviga printr-un alt tab sau fereastra. -nu are nici o limita de lungime cu exceptia RAM. * LocalStorage este utilizat pentru a stoca date pentru o perioadă mai lungă de timp, peste mai multe pagini şi sesiuni de browser (de exemplu, va dura chiar şi atunci când se reporneste browser-ul web şi / sau calculatorul). -memorarea datelor fara limita de timp(datele sunt disponibile o zi, o săptămână, sau ani.) În HTML5, datele nu se transmit pentru fiecare cerere la server, ele sunt trimise doar at cand sunt cerute Caracteristici atât locale şi sesiune de depozitare sunt acceptate în următoarele browsere web: Internet Explorer 8 +, Firefox 3.5 +, Safari 4.0 +, Chrome si Opera 2.0 + 10.5 +.

Atributele care sunt trimise către funcția ce va fi executată la un eveniment pentru Web Storage sunt: 1.storageArea: Care tip de stocare a fost modificat 2. key: Numele variabilei care este modificată 3.oldValue: Valoarea veche a variabilei 4.newValue: Valoarea care este scrisă în variabilă 5. url: Adresa paginii care modifică variabila Apelul funcţiei clear() are ca efect setarea la null a atributelor key, oldValue şi newValue. Exemplu care numără vizualizările per sesiune și numărul total de vizualizări. http://ctrl-d.ro/wp-content/uploads/2012/02/html5_web_storage.html

I. Actiunea de a salva date în Session Storage două variante: 1. sessionStorage.setItem(yourVariable, yourValue); 2. sessionStorage.yourVariable= yourValue; II. Citirea variabilei memorate: var item = sessionStorage.getItem(yourVariable); sau var item = sessionStorage.yourVariable; III. ștergerea unei variabile din Session Storage: var item = sessionStorage.removeItem(yourVariable); Efect salvează valoarea variabilei în ’item’ și o șterge din storage. IV. ştergerea tuturor variabilelor salvate: sessionStorage.clear(); V. determinarea nr de valori salvate în storage, se foloseşte length: var no_of_items = sessionStorage.length;

1. crearea şi accesarea cu localStorage: localStorage.lastname="Popescu"; document.write("Nume: " + localStorage.lastname); Exemplul Counter:

1. crearea şi accesarea cu sessionStorage:

sessionStorage.lastname="POPESCU"; document.write(sessionStorage.lastname);

Workerii web -aparţin HTML5. Decât să depindă de aşteptările dese cauzate de JavaSript şi de alte întârzieri, dezvoltatorii web îşi pot împărţi codul şi încărcarea procesorului în workeri web. => workerii web oferiti de HTML5 fac browser-ul să opereze mai mult ca un sistem de operare. (nu măresc funcţionalităţile sistemului de operare.) Dezavantaj- nu există nici o modalitate de a gestiona încărcarea sau priorităţile. API-ul oferă doar mesaje ce pot fi transmise de la un worker la altul, browser-ul se ocupă de restul. Javascript rulează pe acelasi fir de execuţie cu browserul ceea ce poate face ca acesta din urmă să nu mai poată răspunde la comenzile utilizatorului. „Muncitorii” Web definesc un API ce rulează scripturile în background. ! „muncitorii” trebuie să se afle într-un script extern.

Formulare in html5 -noi caracteristici ce permit un control mai bun al datelor de intrare şi validarea lor.
Input type email url number range Date pickers search color IE No No No No No No No Firefox 4.0 4.0 No No No 4.0 No Opera 9.0 9.0 9.0 9.0 9.0 11.0 11.0 Chrome 10.0 10.0 7.0 4.0 10.0 10.0 12 Safari No No 5.1 4.0 5.1 No No

Tipul de intrare e-mail - este utilizat pentru câmpurile de intrare care ar trebui să conţină o adresă de e-mail. Valoarea din acest câmp este automat validata atunci când formularul este submit. E-mail:

Tipul URL-ul este folosit pentru câmpurile de intrare care ar trebui să conţină o adresă URL. Valoarea din câmpul URL-ul este automat validat atunci când formularul este submit. Homepage:

Tipul de intrare – number Tipul de număr este folosit pentru câmpurile de intrare care ar trebui să conţină o valoare numerică. Se pot seta restricţii asupra a ceea ce numere sunt acceptate: Nr:

Atributele pt number si range
Attribute Max Min Step Value Value number number number number Description Se specifica valoare maxima Se specifica valoare minima Se specifica valoare intervale (daca step="3", nr acceptate pot fi -3,0,3,6, etc) Valoarea implicita

Tipul de intrare: range Tipul range este utilizat pentru câmpurile de intrare care ar trebui să conţină o valoare dintr-un interval de numere. Tipul range este afişat ca o bară de glisor. Se pot seta restricţii legate de numerele care se vor accepta Tipul de intrare: culegatori de date(Date Pickers) -se incadreaza intre

Controale de alegere a datei
HTML5 defineşte o modalitate de a include un control nativ de alegere a datei fără să se scrie un script. -browserul Opera oferă cel mai bun suport.

Cautare

Similar Documents

Free Essay

Html 5 Security

...HTML5 Security Cheat Sheet Brought to you by OWASP Author or Company YOUR LOGO HTML5 Security Cheat Sheet Brought to you by OWASP Cheat Sheets The following cheat sheet serves as a guide for implementing HTML 5 in a secure fashion. Communication APIs Web Messaging Web Messaging (also known as Cross Domain Messaging) provides a means of messaging between documents from different origins in a way that is generally safer than the multiple hacks used in the past to accomplish this task. However, there are still some recommendations to keep in mind:        When posting a message, explicitly state the expected origin as the second argument to postMessage rather than * in order to prevent sending the message to an unknown origin after a redirect or some other means of the target window's origin changing. The receiving page should always: o Check the origin attribute of the sender to verify the data is originating from the expected location. o Perform input validation on the data attribute of the event to ensure that it's in the desired format. Don't assume you have control over the data attribute. A single Cross Site Scripting flaw in the sending page allows an attacker to send messages of any given format. Both pages should only interpret the exchanged messages as data. Never evaluate passed messages as code (e.g. via eval()) or insert it to a page DOM (e.g. via innerHTML), as that would create a DOM-based XSS vulnerability...

Words: 2088 - Pages: 9

Free Essay

Mr.Sdfasdf

...the appropriate definition in the right column. 1. Extensible Markup Language (XML) 2. Standard Generalized Markup Language (SGML) 3. WCAG 4. Tags 5. Extensible Hypertext Markup Language (XHTML) 6. Hypertext Markup Language (HTML) 7. Markup language 8. Hyperlink A. An ISO-standard language used to describe data and context as opposed to its appearance B. Embedded information that defines the font, color and phrase elements used on an HTML page C. Language that describes context and/or formatting for online documents D. Newer language used to define context as opposed to appearance E. Embedded instructions within a text file that link it to another point in the file or to a separate file F. Web language standard that separates responsibilities for organizing and formatting data G. Language used primarily for defining format and appearance of Web documents H. A set of guidelines for ensuring Web site accessibility to all users, including those with disabilities 1-D, 2-A, 3-H, 4-B, 5-F, 6-G, 7-C, 8-E © 2012 Certification Partners, LLC. — All Rights Reserved. Version 2.0 Site Development Associate Activity Answers-2 Activity 2-1: Identifying HTML elements and attributes In this activity, you will match the HTML element or attribute in the left column with the appropriate description in the right column. 1. 2. 3. 4. 5. 6. 7. 8. 9. lang style A. A container tag that encloses the text that will appear at the top of the browser window, and as the page name in...

Words: 2803 - Pages: 12

Free Essay

Word Doc

...HTML5, the new version of HTML offers a number of unique features which will change the way websites and users interact. We will take a look at 5 important features which revolutionize the way users view websites. HTML5 will significantly change the way websites are designed. It is already a favored platform for new age technology. Search engines will get access to tap into a richer source of information. The Apple iPhones, iPads and Google Android phones already use elements of HTML 5. This makes it an important markup language for future website design projects across various display devices. HTML5 features in the limelight The HTML project working group has released several feature specs till now. Some of key ones are 1. Video elements: Designers can now build web pages without having to resort to third-party proprietary plug-in software like Flash. YouTube is experimenting with using HTML 5 to display video. Built in video controls makes the feature more attractive and easy to use. 2. Application cache: On the lines of Outlook but minus the email client requirement, you can now store web apps much like emails locally. Google has already made use of this feature replacing its Google Gears mail client with HTML 5. Google Wave also usesHTML 5 3. Canvas for Images: The canvas element that comes with HTML 5 lets you manipulate graphics and photos enabling easy rendering of images. Designers no longer need to use intermediate technologies like jQuery. This will help save...

Words: 681 - Pages: 3

Free Essay

Term Paper

...(Elements) (Tag) (Attribute) >> ( HTM El em L ent s) : (Elements): (tag) page (Element) (closing tag) । HTML HTML Paragraph text, , HTML page Web elements (opening tag) , । 1.

- opening paragraph tag 2. Element Content - paragraph words 3.

- closing tag Web page (Element) elements । । : HTML,head, title body Element... HTML HTML । Welcome to Bangladesh Web page Notepad Open start All Programs > Accessories >Notepad Notepad 1. 2.Welcome to Bangladesh 3. less than greater than ( < >) : Welcome to Bangladesh । Notepad Web page Notepad Double click Page । save open । index.html Browser save open । web element head, elements element <head> closing() tag browser <head> elements header । head title elements । opening (<title>) 1.<html> 2.<head> 3.<title> My WebPage! 4. 5. element body element web page body element । 1. 2. 3.My WebPage! 4. 5. 6.Hello World! All my content goes here! 7. 8. web page .html extension । ( HTM Tag Tut or i al i n Bangl a) L : , paragraph . . . paragraph (opening tag) (contents) (closing tag)। web page 1.

A Paragraph Tag

, । । । 1. Body Tag (acts as a content shell) 2.

Paragraph Tag

3.

Heading Tag

4.Bold Tag 5.Italic Tag 6. CLOSI NG
। : closing tag line break tag , 1.

Words: 6504 - Pages: 27

Free Essay

Test

...HTML About the tutorial Tutorial HTML Tutorial Simply Easy Learning 2 HTML Tutorial About the tutorial HTML Tutorial HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages. HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML 4.01 version is widely used but currently we are having HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012. Audience This tutorial is designed for the aspiring Web Designers and Developers with a need to understand the HTML in enough detail along with its simple overview, and practical examples. This tutorial will give you enough ingredients to start with HTML from where you can take yourself at higher level of expertise. Prerequisites Before proceeding with this tutorial you should have a basic working knowledge with Windows or Linux operating system, additionally you must be familiar with:      Experience with any text editor like notepad, notepad++, or Editplus etc. How to create directories and files on your computer. How to navigate through different directories. How to type content in a file and save them on a computer. Understanding about images in different formats like JPEG, PNG format. Copyright & Disclaimer Notice All the content...

Words: 5524 - Pages: 23

Free Essay

10 Major Advantages of Html5

...with the help of Flash or Silverlight, Flex or javascript like tools. But these consume so much time to develop and even the complexity of web application also increased. But now with the help of HTML5 it is possible to embed video and audio, high quality drawings, charts and animation and many other rich content without using any plugins and third party programmas as the functionality is built into the browser. 2. Cleaner markup / Improved Code HTML 5 will enable web designers to use cleaner, neater code, we can remove most div tags and replace them with semantic HTML 5 elements. 3. Improved Semantics Now it is easy to see which parts of the page are headers, nav, footers, aside, etc as the tags are specific for these all and most importantly know what their meaning and purpose is in whole the format. By using HTML5 elements we can increase the semantic value of the web page as the codes are very standardized. 4. Elegant forms HTML5 enables designer to use more fancier forms. Even it makes form validation native to HTML, User interface enhancements and reduced need for JavaScript (only needed in browsers that don’t...

Words: 889 - Pages: 4

Premium Essay

Course Design Guide It/237

...Course Design Guide IT/237 Version 5 1 Course Design Guide College of Information Systems & Technology IT/237 Version 5 Intro to Web Design II Copyright © 2012, 2009, 2007, 2006 by University of Phoenix. All rights reserved. Course Description This course introduces development tools and techniques used to publish Web pages on the World Wide Web. Students use basic Hypertext Markup Language (HTML), scripting, and presentational technologies to create ™ websites without the aid of a software authoring application. Topics include XHTML, CSS, JavaScript , server hosting, site publication, site maintenance, and search engine optimization. Policies Faculty and students will be held responsible for understanding and adhering to all policies contained within the following two documents:   University policies: You must be logged into the student website to view this document. Instructor policies: This document is posted in the Course Materials forum. University policies are subject to change. Be sure to read the policies at the beginning of each class. Policies may be slightly different depending on the modality in which you attend class. If you have recently changed modalities, read the policies governing your current class modality. Course Materials Bojack, H. (2010). New perspectives on blended HTML, XHTML, and CSS: Introductory (2nd ed). Mason, OH: Cengage Learning. Gosselin, D. (2011). JavaScript (5th ed.). Mason, OH: Cengage Learning. Software Dreamweaver CS5 provided...

Words: 3465 - Pages: 14

Free Essay

Html Introduction

...acknowledgment is made explicitly in the text, nor has any part been written for me by another person. Student’s Signature : _____________ Evaluator’s comments: _____________________________________________________________________ Marks obtained : ___________ out of ______________________ ------------------------------------------------- Content of Homework should start from this page only: ------------------------------------------------- Q1: How the HTML documents are structured? Discuss according to the logical and physical elements. (5) Ans: An HTML 4 document begins with a DOCTYPE declaration that declares the version of HTML to which the document conforms. The HTML element follows and contains the HEAD and BODY. The HEAD contains information about the document, such as its title and keywords, while the BODY contains the actual content of the document, made up of block-level elements and inline elements. A basic HTML 4 document takes on the following form: <!DOCTYPE html> <HTML> <HEAD> <TITLE>The document title</TITLE> </HEAD> <BODY> <H1>Main heading</H1> <P>A paragraph.</P> <P>Another paragraph.</P> <UL> <LI>A list item.</LI> <LI>Another list item.</LI> </UL>...

Words: 2895 - Pages: 12

Free Essay

20480 Course Reference

...day intensive class on HTML, CSS, and JavaScript. If you know nothing coming into the class it will be like drinking from a fire hydrant. I’m not sure why the class has HTML in the title as it only covers HTML for about 10 of the 500 pages. So, you really should have some decent HTML experience prior to the class. That being said, there are so so, so many resources for information on these three topics I thought it would be nice to break it down. In addition, many students take this class in preparation for SharePoint. I will also include specific SharePoint references, as … well …. SharePoint currently rules the world  Module 1: Overview of HTML and CSS W3Schools Heather Solomon Styles for SharePoint CSS Selector Reference Chapter 2: Creating and Styling HTML Pages F12 Developer Tools – Introduction F12 Developer Tools Module 3 JavaScript in 12 minutes JSON vs. XML Regular Expressions reference Module 4 HTML Forms Tutorial – Video Regular Expressions reference CustomValidity – Video Module 5 JQuery tutorial – video Sending and Receiving Data using JQuery General References JQuery Selectors Module 6 Pseudo-classes Pseudo-elements Module 7 JavaScript Object Oriented Programming – book OOP in JavaScript – book JavaScript Objects – video Module 8 FileReader Explained FileReader Example Drag and Drop Tutorial – video GeoLocation Video F12 Developer Tools video How to use F12 Developer Tools to Debug your Webpages Module 9 HTML Web Storage Module 14 ...

Words: 287 - Pages: 2

Free Essay

Test

...resources takes a long time. Research shows that for many popular sites it’s the frontend that accounts for over 90% of a users wait time. Content Delivery Networks (CDNs) help address part of this problem by reducing network latency. However, even larger performance gains can be achieved through Frontend Optimization (FEO) techniques that streamline the Web page HTML code and resources. I Trends Driving the Frontend Bottleneck A web page’s performance can be split into backend and frontend. Backend time includes generating the page’s HTML and resources. The frontend time includes downloading the resources and processing them in the Browser. There are four important trends making the frontend an important performance issue today and potentially even more important in the years to come: 1. Rich content. Viewing a chart of size vs. time, it goes up and to the right. Since 1995, the average size of a page has grown over 35x, and the number of objects per page has grown 28x. Larger, link heavy pages are driving up frontend load times. 2. Client side code. Not so long ago most sites were fairly simple combinations of HTML and graphics. All the “heavy lifting” was done on the backend. Now almost all sites have some JavaScript code. More sophisticated sites are using AJAX and now HTML5. As we move to replace desktop apps with Web apps, client side code is going to get more...

Words: 2207 - Pages: 9

Free Essay

Hello World

...visual step-by-step approach to HTML & CSS programming brilliant HTML & CSS Brilliant HTML & CSS provides quick, easy-toaccess information with… • Practical tasks presented in short accessible sections Brilliant HTML & CSS will enable you to create accessible, standards-compliant websites – equipping you with knowledge on the theory, coding skills, and best practice needed to build sophisticated Web pages. This book will show you how to… • Numbered steps to guide you through each task • Understand and use HTML tags and attributes • Numerous example screenshots • Mark-up text, links, images, tables and forms • Cross reference boxes pointing you to related tasks in the book, or completed examples upon the website • Get started with CSS • Full colour design throughout • Detailed Contents to help you find exactly what you need • For your information sections alerting you to relevant tips, tricks and advice • And a Troubleshooting guide to help you sort out the most common problems and queries • Work with Style Sheets and selectors • Format basic elements and font styles • Start using Web-safe colour in your pages • Understand and define Link States • Master spacing, borders and element sizing • Align and place elements within your page • Understand and organise your site structure • Perfect your site navigation • Take your website live! Visit us on the Web at www.pearson-books.com/brillianthtml HTML & CSS £17.99 CVR_BRAN1529_01_SE_CVR...

Words: 18704 - Pages: 75

Free Essay

Cis 273 Final Exam – 50/50 Correct Answers

...com/downloads/cis-273-final-exam-5050-correct-answers/ For More Courses and Exams use this form ( http://hwguiders.com/contact-us/ ) Feel Free to Search your Class through Our Product Categories or From Our Search Bar (http://hwguiders.com/ ) CIS 273 Final Exam 50/50 Correct Answers • Question 1 The table marked 1 in the accompanying figure has a rules value of ____. Answer • Question 2 With the frame value ____, a border is drawn only on the left-hand side of the table. Answer • Question 3 To control the space between the table text and the cell borders, add the ____ attribute to the table tag. Answer • Question 4 The ____ attribute allows you to determine which sides of the table will have borders. • Question 5 To create a cell that spans two rows in a table, you enter the tag as ____. • Question 6 The table header, table body, and table footer must all contain the same number of ____. • Question 7 Which of the following is a table frame type? • Question 8 With the frame value ____, a border is drawn on the left and right sides of the table. • Question 9 With the frame value ____, a border is drawn only below the table. • Question 10 With the frame value ____, a border is drawn on the top and bottom sides of the table. • Question 11 Another way you can specify the width is to use the ____ attribute. • Question 12 When you link a label with an associated text element for scripting purposes, you must bind the label...

Words: 21589 - Pages: 87

Premium Essay

It/236 Appendix B

...DTD 3) HTML 4) Search engine 5) URL 6) W3C 7) Cookie |Definition|Term| 1|A set of rules that contains all the elements, attributes, and usage rules for the markup language used in a web page|DTD| 2|The markup language that defines the structure and display properties of a web page|HTML| 3|The global address of documents and other resources on the web|URL| 4|A style language, created by the W3C, that allows for the complete specifications of style for HTML documents |CSS| 5|A software program that searches out and indexes websites in a catalog|Search engine| Part Two Match the following web design key terms with their correct definitions. Use the Principles of Web Design Week One readings as a resource. 1) Style Sheet 2) FTP 3) Search engine 4) Valid Code 5) Web server 6) W3C 7) XHTML |Definition|Term| 6|An organization that sets standards for markup languages and provides an open, nonproprietary forum for industry and academic representatives to add to the evolution of HTML|W3C| 7|Markup code that conforms to the usage rules of the W3C.|Valid Code| 8|A set of style rules that describes a document’s display characteristics. There are two types of style sheets: internal and external.|Style Sheet| 9|A computer connected to the Internet that runs server software: The software lets the computer use the Hypertext Transfer Protocol to serve an HTML file to web browser clients.|Web server| 10|A reformulated as an application of XML based on HTML 4.01...

Words: 411 - Pages: 2

Free Essay

Html

...1. HTML stands for what? Hyper Text Markup Language 2. The end tag is written like the start tag, with a forward slash before the tag name. 3. Start and end tag are also called opening tags and closing tags. 4. "HTML tags" and "elements" are often used to describe the same thing. 5. An HTML element is everything between the start tag and the end tag, including the tags 6. The purpose of a web browser is to read HTML documents and display them as web pages. 7. HTML elements with no content are called empty elements. 8. HTML headings are defined with the <h1> to <h6> tags. 9. HTML paragraphs are defined with the <p> tag. 10. Links are specified in HTML using the <a> tag. 11. The href attribute Specifies the destination of a link. 12. The target attribute Specifies where to open the linked document. 13. HTML images are defined with the <img /> tag. 14. The <hr /> tag creates a horizontal line in an HTML page 15. Which tag defines HTML comments tag? <!-- --> 16. Which tag defines HTML line Breaks? <br /> 17. Which tag defines BOLD text? <b> 18. Which tag defines italic text? <i> 19. Which tag defines an emphasized text? <em> 20. Which tag defines small text? <small> 21. Which tag defines strong text? <strong> 22. Which tag defines subscripted text? <sub> 23. Which tag defines superscripted text? <sup> ...

Words: 606 - Pages: 3

Free Essay

Html

...HTML About the tutorial Tutorial HTML Tutorial Simply Easy Learning 2 HTML Tutorial About the tutorial HTML Tutorial HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages. HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML 4.01 version is widely used but currently we are having HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012. Audience This tutorial is designed for the aspiring Web Designers and Developers with a need to understand the HTML in enough detail along with its simple overview, and practical examples. This tutorial will give you enough ingredients to start with HTML from where you can take yourself at higher level of expertise. Prerequisites Before proceeding with this tutorial you should have a basic working knowledge with Windows or Linux operating system, additionally you must be familiar with:      Experience with any text editor like notepad, notepad++, or Editplus etc. How to create directories and files on your computer. How to navigate through different directories. How to type content in a file and save them on a computer. Understanding about images in different formats like JPEG, PNG format. Copyright & Disclaimer Notice All the content...

Words: 5524 - Pages: 23