Embed presentation
Downloaded 127 times




















































![Special Characters – Example53<p>[>> Welcome <<]</p><p>►I have following cards:A♣, K♦ and 9♥.</p><p>►I prefer hard rock ♫music ♫</p><p>© 2006 by Svetlin Nakov & histeam</p><p>Telerik Academy™</p>special-chars.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-53-2048.jpg&f=jpg&w=240)
![Special Chars – Example (2)54<p>[>> Welcome <<]</p><p>►I have following cards:A♣, K♦ and 9♥.</p><p>►I prefer hard rock ♫music ♫</p><p>© 2006 by Svetlin Nakov & histeam</p><p>Telerik Academy™</p>special-chars.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-54-2048.jpg&f=jpg&w=240)
















![ rowspan Defines howmany rows thecell occupies colspan Defines howmany columnsthe cell occupiesColumn and Row Span Table cells have two important attributes:71cell[1,1] cell[1,2]cell[2,1]colspan="1"colspan="1"colspan="2"cell[1,1]cell[1,2]cell[2,1]rowspan="2" rowspan="1"rowspan="1"](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-71-2048.jpg&f=jpg&w=240)
![Column and Row Span – Example72<table cellspacing="0"><tr class="1"><td>Cell[1,1]</td><td colspan="2">Cell[2,1]</td></tr><tr class=“2"><td>Cell[1,2]</td><td rowspan="2">Cell[2,2]</td><td>Cell[3,2]</td></tr><tr class=“3"><td>Cell[1,3]</td><td>Cell[2,3]</td></tr></table>table-colspan-rowspan.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-72-2048.jpg&f=jpg&w=240)
![<table cellspacing="0"><tr class="1"><td>Cell[1,1]</td><td colspan="2">Cell[2,1]</td></tr><tr class=“2"><td>Cell[1,2]</td><td rowspan="2">Cell[2,2]</td><td>Cell[3,2]</td></tr><tr class=“3"><td>Cell[1,3]</td><td>Cell[2,3]</td></tr></table>Column and Row Span –Example (2)73table-colspan-rowspan.htmlCell[2,3]Cell[1,3]Cell[3,2]Cell[2,2]Cell[1,2]Cell[2,1]Cell[1,1]](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-73-2048.jpg&f=jpg&w=240)

































![Selectors (5) > selector – matches direct child nodes:This will match all elements with class error, directchildren of <p> tag [ ] – matches tag attributes by regular expression:This will match all <img> tags with alt attributecontaining the word logo .class1.class2 (no space) - matches elementswith both (all) classes applied at the same time107p > .error {font-size: 8px}img[alt~=logo] {border: none}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-107-2048.jpg&f=jpg&w=240)







![CSS Specificity CSS specificity is used to determine theprecedence of CSS style declarations with thesame origin. Selectors are what matters Simple calculation: #id = 100, .class = 10,:pseudo = 10, [attr] = 10, tag = 1, * = 0 Same number of points? Order matters. See also: http://www.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/ http://css.maxdesign.com.au/selectutorial/advanced_conflict.htm115](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-115-2048.jpg&f=jpg&w=240)










![Text-related CSS Properties color – specifies the color of the text font-size – size of font: xx-small, x-small,small, medium, large, x-large, xx-large,smaller, larger or numeric value font-family – comma separated font names Example: verdana, sans-serif, etc. The browser loads the first one that is available There should always be at least one generic font font-weight can be normal, bold, bolder,lighter or a number in range [100 … 900]126](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-126-2048.jpg&f=jpg&w=240)































![CSS DevelopmentTools (4) IE DeveloperToolbar – add-on to IE used toexamine CSS and HTML (press [F12])158](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-158-2048.jpg&f=jpg&w=240)


















![JavaScript Syntax The JavaScript syntax is similar to C# and Java Operators (+, *, =, !=, &&, ++, …) Variables (typeless) Conditional statements (if, else) Loops (for, while) Arrays (my_array[]) and associative arrays(my_array['abc']) Functions (can return value) Function variables (like the C# delegates)177](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-177-2048.jpg&f=jpg&w=240)
![DataTypes JavaScript data types: Numbers (integer, floating-point) Boolean (true / false) String type – string of characters Arrays Associative arrays (hash tables)178var myName = "You can use both single or doublequotes for strings";var my_array = [1, 5.3, "aaa"];var my_hash = {a:2, b:3, c:"text"};](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-178-2048.jpg&f=jpg&w=240)
![Everything is Object Every variable can be considered as object For example strings and arrays have memberfunctions:179var test = "some string";alert(test[7]); // shows letter 'r'alert(test.charAt(5)); // shows letter 's'alert("test".charAt(1)); //shows letter 'e'alert("test".substring(1,3)); //shows 'es'var arr = [1,3,4];alert (arr.length); // shows 3arr.push(7); // appends 7 to end of arrayalert (arr[3]); // shows 7objects.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-179-2048.jpg&f=jpg&w=240)

![Arrays Operations and Properties Declaring new empty array: Declaring an array holding few elements: Appending an element / getting the last element: Reading the number of elements (array length): Finding element's index in the array:181var arr = new Array();var arr = [1, 2, 3, 4, 5];arr.push(3);var element = arr.pop();arr.length;arr.indexOf(1);](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-181-2048.jpg&f=jpg&w=240)
![Standard Popup Boxes Alert box with text and [OK] button Just a message shown in a dialog box: Confirmation box Contains text, [OK] button and [Cancel] button: Prompt box Contains text, input field with default value:182alert("Some text here");confirm("Are you sure?");prompt ("enter amount", 10);](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-182-2048.jpg&f=jpg&w=240)








![Function Argumentsand ReturnValue Functions are not required to return a value When calling function it is not obligatory tospecify all of its arguments The function has access to all the argumentspassed via arguments array191function sum() {var sum = 0;for (var i = 0; i < arguments.length; i ++)sum += parseInt(arguments[i]);return sum;}alert(sum(1, 2, 4)); functions-demo.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-191-2048.jpg&f=jpg&w=240)







![Accessing Elements throughthe DOMTree – Example Warning: may not return what you expecteddue to Browser differences199var el = document.getElementById('div_tag');alert (el.childNodes[0].value);alert (el.childNodes[1].getElementsByTagName('span').id);…<div id="div_tag"><input type="text" value="test text" /><div><span id="test">test span</span></div></div> accessing-elements-demo.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-199-2048.jpg&f=jpg&w=240)



![The HTML DOM Event Model (3) Holds information about the state of [Alt], [Ctrl]and [Shift] keys Some browsers do not send this object, butplace it in the document.event Some of the names of the event’s objectproperties are browser-specific203](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-203-2048.jpg&f=jpg&w=240)









![Document and Location document object Provides some built-in arrays of specific objectson the currently loaded Web page document.location Used to access the currently open URL orredirect the browser213document.links[0].href = "yahoo.com";document.write("This is some <b>bold text</b>");document.location = "http://www.yahoo.com/";](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-213-2048.jpg&f=jpg&w=240)













The document provides a comprehensive introduction to HTML, explaining its structure, basic tags, and how web pages function using client-server architecture. It covers the essential components of HTML documents, including the <head> and <body> sections, as well as specific tags for formatting text, adding images, and creating hyperlinks. Additionally, it discusses the importance of properly formatted HTML and the differences between HTML and XHTML.




















































![Special Characters – Example53<p>[>> Welcome <<]</p><p>►I have following cards:A♣, K♦ and 9♥.</p><p>►I prefer hard rock ♫music ♫</p><p>© 2006 by Svetlin Nakov & histeam</p><p>Telerik Academy™</p>special-chars.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-53-2048.jpg&f=jpg&w=240)
![Special Chars – Example (2)54<p>[>> Welcome <<]</p><p>►I have following cards:A♣, K♦ and 9♥.</p><p>►I prefer hard rock ♫music ♫</p><p>© 2006 by Svetlin Nakov & histeam</p><p>Telerik Academy™</p>special-chars.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-54-2048.jpg&f=jpg&w=240)
















![ rowspan Defines howmany rows thecell occupies colspan Defines howmany columnsthe cell occupiesColumn and Row Span Table cells have two important attributes:71cell[1,1] cell[1,2]cell[2,1]colspan="1"colspan="1"colspan="2"cell[1,1]cell[1,2]cell[2,1]rowspan="2" rowspan="1"rowspan="1"](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-71-2048.jpg&f=jpg&w=240)
![Column and Row Span – Example72<table cellspacing="0"><tr class="1"><td>Cell[1,1]</td><td colspan="2">Cell[2,1]</td></tr><tr class=“2"><td>Cell[1,2]</td><td rowspan="2">Cell[2,2]</td><td>Cell[3,2]</td></tr><tr class=“3"><td>Cell[1,3]</td><td>Cell[2,3]</td></tr></table>table-colspan-rowspan.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-72-2048.jpg&f=jpg&w=240)
![<table cellspacing="0"><tr class="1"><td>Cell[1,1]</td><td colspan="2">Cell[2,1]</td></tr><tr class=“2"><td>Cell[1,2]</td><td rowspan="2">Cell[2,2]</td><td>Cell[3,2]</td></tr><tr class=“3"><td>Cell[1,3]</td><td>Cell[2,3]</td></tr></table>Column and Row Span –Example (2)73table-colspan-rowspan.htmlCell[2,3]Cell[1,3]Cell[3,2]Cell[2,2]Cell[1,2]Cell[2,1]Cell[1,1]](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-73-2048.jpg&f=jpg&w=240)

































![Selectors (5) > selector – matches direct child nodes:This will match all elements with class error, directchildren of <p> tag [ ] – matches tag attributes by regular expression:This will match all <img> tags with alt attributecontaining the word logo .class1.class2 (no space) - matches elementswith both (all) classes applied at the same time107p > .error {font-size: 8px}img[alt~=logo] {border: none}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-107-2048.jpg&f=jpg&w=240)







![CSS Specificity CSS specificity is used to determine theprecedence of CSS style declarations with thesame origin. Selectors are what matters Simple calculation: #id = 100, .class = 10,:pseudo = 10, [attr] = 10, tag = 1, * = 0 Same number of points? Order matters. See also: http://www.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/ http://css.maxdesign.com.au/selectutorial/advanced_conflict.htm115](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-115-2048.jpg&f=jpg&w=240)










![Text-related CSS Properties color – specifies the color of the text font-size – size of font: xx-small, x-small,small, medium, large, x-large, xx-large,smaller, larger or numeric value font-family – comma separated font names Example: verdana, sans-serif, etc. The browser loads the first one that is available There should always be at least one generic font font-weight can be normal, bold, bolder,lighter or a number in range [100 … 900]126](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-126-2048.jpg&f=jpg&w=240)































![CSS DevelopmentTools (4) IE DeveloperToolbar – add-on to IE used toexamine CSS and HTML (press [F12])158](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-158-2048.jpg&f=jpg&w=240)


















![JavaScript Syntax The JavaScript syntax is similar to C# and Java Operators (+, *, =, !=, &&, ++, …) Variables (typeless) Conditional statements (if, else) Loops (for, while) Arrays (my_array[]) and associative arrays(my_array['abc']) Functions (can return value) Function variables (like the C# delegates)177](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-177-2048.jpg&f=jpg&w=240)
![DataTypes JavaScript data types: Numbers (integer, floating-point) Boolean (true / false) String type – string of characters Arrays Associative arrays (hash tables)178var myName = "You can use both single or doublequotes for strings";var my_array = [1, 5.3, "aaa"];var my_hash = {a:2, b:3, c:"text"};](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-178-2048.jpg&f=jpg&w=240)
![Everything is Object Every variable can be considered as object For example strings and arrays have memberfunctions:179var test = "some string";alert(test[7]); // shows letter 'r'alert(test.charAt(5)); // shows letter 's'alert("test".charAt(1)); //shows letter 'e'alert("test".substring(1,3)); //shows 'es'var arr = [1,3,4];alert (arr.length); // shows 3arr.push(7); // appends 7 to end of arrayalert (arr[3]); // shows 7objects.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-179-2048.jpg&f=jpg&w=240)

![Arrays Operations and Properties Declaring new empty array: Declaring an array holding few elements: Appending an element / getting the last element: Reading the number of elements (array length): Finding element's index in the array:181var arr = new Array();var arr = [1, 2, 3, 4, 5];arr.push(3);var element = arr.pop();arr.length;arr.indexOf(1);](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-181-2048.jpg&f=jpg&w=240)
![Standard Popup Boxes Alert box with text and [OK] button Just a message shown in a dialog box: Confirmation box Contains text, [OK] button and [Cancel] button: Prompt box Contains text, input field with default value:182alert("Some text here");confirm("Are you sure?");prompt ("enter amount", 10);](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-182-2048.jpg&f=jpg&w=240)








![Function Argumentsand ReturnValue Functions are not required to return a value When calling function it is not obligatory tospecify all of its arguments The function has access to all the argumentspassed via arguments array191function sum() {var sum = 0;for (var i = 0; i < arguments.length; i ++)sum += parseInt(arguments[i]);return sum;}alert(sum(1, 2, 4)); functions-demo.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-191-2048.jpg&f=jpg&w=240)







![Accessing Elements throughthe DOMTree – Example Warning: may not return what you expecteddue to Browser differences199var el = document.getElementById('div_tag');alert (el.childNodes[0].value);alert (el.childNodes[1].getElementsByTagName('span').id);…<div id="div_tag"><input type="text" value="test text" /><div><span id="test">test span</span></div></div> accessing-elements-demo.html](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-199-2048.jpg&f=jpg&w=240)



![The HTML DOM Event Model (3) Holds information about the state of [Alt], [Ctrl]and [Shift] keys Some browsers do not send this object, butplace it in the document.event Some of the names of the event’s objectproperties are browser-specific203](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-203-2048.jpg&f=jpg&w=240)









![Document and Location document object Provides some built-in arrays of specific objectson the currently loaded Web page document.location Used to access the currently open URL orredirect the browser213document.links[0].href = "yahoo.com";document.write("This is some <b>bold text</b>");document.location = "http://www.yahoo.com/";](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmlcssjavascriptbasicslearn-161106190245%2f75%2fHtml-css-java-script-basics-All-about-you-need-213-2048.jpg&f=jpg&w=240)











