Show Menu

Web Programming Cheat Sheet by sanoj

Web Programming

Introduction

Internet
WWW
Client Server Model
HTTPRequest, Response
HTTP Requestformat­,me­tho­de..etc
HTTP Response

HTML

ElementsTags,A­ttr­ibutes
StylingExtern­al,­Int­ern­al,­Inline
Links<a>­,<i­mg>.....etc
Tablesrel Tags,A­ttr­ibutes
ListsUnorde­red­,Or­der­ed,­Def­inition
FormsMethod­,Ac­tio­n,Form Elements
FramesDiff Arrang­eme­nts­,Nested Frames
Basic Tags<p>­<h1­><b­>......etc
EventsonClic­k,o­nFo­cus­,on­Loa­d,o­nCh­ang­e..etc

Qns:Create Resume
Course Regist­ration form
...etc

XHTML

Introd­uctionsyntax­,html vs xhtml, xmlns Attrib­ute....etc
XHTML Different Doctypes1.0 Strict, 1.0 Transi­tional, 1.0 Frameset, XHTML 1.1

PHP

BasicsVariab­les­,St­rin­gs,­Con­dit­ional statem­ent­s,L­oops, Operators, Arrays, Dataty­pes­,Fu­nct­ion­s..etc
Form HandlingValida­tio­n,c­oll­ecting values­:-$­_GE­T,$­_PO­ST,­$_R­EQUEST
Server Side Includesinclude() ,require()
File Handlingopen,c­los­e,r­ead­,wr­ite­,upload
 restri­ctions on upload­,Saving uploaded file
SessionsStorin­g,D­est­roying
Adv ConceptsAjax,C­ook­ies­,da­tabase connec­tiv­ity,PHP XML DOM

Qns:-v­ali­dates the email address first then allows visitors to login to site if they are found in database.

Perl

BasicUser input/­out­put­,Hash array
VariablesMy,Sta­te,­Loc­al,­Global
Imp of$,@,%....etc
Functionsdefini­tio­n,call, return, built in fns..etc
Fileopen,close with various modes.
OtherPattern match, back refere­nce­,re­pla­ce.etc
systembackti­cks­,sy­ste­m,e­xec...etc

Qn:Rea­d/write from/to file.

 

HTML5

BasicNew Tags,Input types,­Att­ributes
Drag and Dropdraggable attrib­ute­,da­taT­ransfer Object­:-s­etD­ata­(),­get­Dat­a()­,cl­ear­Data()
 dragst­art­,dr­age­nd,­dro­p,d­rag­dat­ast­ore­ite­mlist
Canvas<ca­nva­s>,­get­Con­text()
 context:- moveTo­(),­lin­eTo­(),­str­oke­(),­fil­lRe­ct(­).....etc
Web Storagediff with cookie­s,l­oca­lSt­ora­ge,­ses­sio­nSt­orage
Applic­ation CacheManifest File-3 sectio­ns:­-CACHE MANIFE­ST,­NETWORK ,FALLBACK
Web WorkersUse, Create &t­erm­inate Web Worker

CSS

Style SheetExtern­al,­Int­ern­al,­Inline- Cascading oreder
SelectorsClass,­Id,­Att­rib­ute­,Pseudo selectors and pseudo classe­s,G­rouping and nesting of
Fontrel Properties and Values­,Sh­ort­hands
Textrel Properties and Values­,Sh­ort­hands
Box ModelMargin­,Bo­rde­r,P­adding and properties of each
TableBorder­,Border Collap­se..etc
CSS3->Text Effects,2D &3D Transf­orm­s,T­ran­sit­ion­s,A­nim­ations

Qns; Using CSS3 create :Resume
Animated dock object­,Analog Clock, 3D Cubes, Stylish Menus, CSS Accord­ian­,Image Galler­y...etc

SQL Injection

SQLBasic concepts.
SQL InjectionWhat is sql injn, First Order sql Inject­ion­,Second Order sql Injection
 prevention

Qns:-D­emo­nstrate second order and Blind Injection

Python

Basiclist: slicing, tuple, dictio­nary, set: operat­ions, array: generator
 if...elif, while, for...in ...etc
Modules and PackagesImport­,Reload
File handlingopen,close with various modes,use of pickle
ClassInheri­tan­ce,­Ope­rator overlo­adi­ng,­ins­tance and class variable.. ...etc
Otherfunctions, read from xml,lambda expres­sio­ns..etc
 

XML

XML Vs HTMLDiffer­ences
XML DTDExtern­al,­Int­ernal
XML with CSS<?xml stlesh­eet...>
CDATA,­PCDATA
<!k­eyw­ord..>ELEMEN­T,A­TTL­IST­,EN­TIT­Y,N­OTATION
Entitiesrefere­nce­s..&­l­t;< &gt; > ....etc
XML namespacesName conflicts

Qns:DTD declar­ation of XML

Javascript

How to?Intern­al,­Ext­ernal
JS Vs JAVA-
BasicVariab­les­,St­rin­gs,­Con­dit­ional statem­ent­s,L­oops, Operators, Arrays, Dataty­pes­,Fu­nct­ion­s..etc
User Intera­ctivityAlert,­Pro­mt,­Con­fir­m..etc
Error HandlingTry...T­hr­ow....C­atch
ObjectsCreate­,ac­ces­s(using for..in), rel Propertis and methods
EventsEvent handlers, Timing events...etc
ValidationForm, Email....etc
Cookies, Ajax
Access and Manipulate HTML DOM Object­s,CSS

Qn:fac­torial of number, GCD, Binary equivalent etc

JQuery

Basic Conceptssyntax­,ready functi­on,­Sel­ect­ors­,Event Functi­ons­,Ef­fec­ts,­Fil­ters, Callback functi­on:­-with or without args
 Overriding the $-function ,Special Effect­s,HTML & CSS manipu­lation
Adv ConceptsAjax, Cookie­s,P­lug­ins...etc
PluginsWrite own plugin, $.exte­nd(­),N­ame­spa­cing.
 JQuery UI Widgets
Ajaxlearn funs:-­aja­x,g­et,­post, load,a­jax­Com­ple­te....etc

Qns:create various types of JQuery UI Widgets

 

Share This Cheat Sheet!

Favourited by 26 Members:

PaulBlp liyunzhen clazito mrlaziz internaciulo Theosis alexikia Dranzz rohini hoornet mstrbutlertron and 16 more ...

Comments

Codiddle Codiddle, 12:05 14 Feb 14

This cheat sheet is garbage and some of it is wrong. An attribute is not related to an element, nor is it even close to the same thing. There is a distinct different between the two, especially when translating to XML. This sheet makes me angry, it's useless and it's wrong. The use of the word "tag" is very vague, and in some instances should be replaced with the word: semantics. Semantics simply means names, and is the case with HTML5. The person who created this didn't have a very good understanding of HTML at any level.

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.