Embed presentation
Download as PDF, PPTX












![CSSPatternMeaning*Universal selector: matches any element.EType selector: matches any E element (i.e., an element of type E; e.g. H1 or P).EFDescendant selector: matches any F element that is a descendant of an E element.E>FChild selector: matches any F element that is a child of an element E.E+FAdjacent siblings selector: Matches any F element immediately preceded by an element E.E[foo]Attribute selector: matches any E element with the "foo" attribute set (whatever the value).E[foo="warning"]Attribute selector: matches any E element whose "foo" attribute value is exactly equal to "warning".E[foo~="warning"]Attribute selector: matches any E element whose "foo" attribute value is a list of space-separatedvalues, one of which is exactly equal to "warning".E[lang|="en"]Attribute selector: matches any E element whose "lang" attribute has a hyphen-separated list ofvalues beginning (from the left) with "en“ (e.g. en-US).DIV.warningHTML only. The same as DIV[class~="warning"].E#myidID selector: matches any E element ID equal to "myid".E:lang(c)Pseudo-class selector: matches element of type E if it is in (human) language c (the documentlanguage specifies how language is determined).E:first-childPseudo-class selector: matches element E when E is the first child of its parent.E:link, E:visitedPseudo-class selector: matches element E if E is the source anchor of a hyperlink of which thetarget is not yet visited (:link) or already visited (:visited).E:active, E:hover, E:focusDynamic Pseudo-class selector: matches E during certain user actions.E:first-line, E:first-letterPseudo-element selector: matches the first formatted line or letter of element E.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmljavascriptcss-131220030924-phpapp02%2f75%2fHtml-javascript-css-13-2048.jpg&f=jpg&w=240)










This document provides an overview of HTML, CSS, and JavaScript for web development. It discusses the basics of each technology, how they work together, and includes the following key points:- HTML is the markup language that defines the structure and content of a web page. CSS is used to style and lay out elements on the page. JavaScript adds interactive functionality.- Events, functions, and variables are important JavaScript concepts. Events trigger actions, functions contain reusable code, and variables store and retrieve data. - CSS selectors allow styling elements by type, class, ID, and other attributes. The box model, positioning, and other properties control layout. - Common debugging tools like Firebug help












![CSSPatternMeaning*Universal selector: matches any element.EType selector: matches any E element (i.e., an element of type E; e.g. H1 or P).EFDescendant selector: matches any F element that is a descendant of an E element.E>FChild selector: matches any F element that is a child of an element E.E+FAdjacent siblings selector: Matches any F element immediately preceded by an element E.E[foo]Attribute selector: matches any E element with the "foo" attribute set (whatever the value).E[foo="warning"]Attribute selector: matches any E element whose "foo" attribute value is exactly equal to "warning".E[foo~="warning"]Attribute selector: matches any E element whose "foo" attribute value is a list of space-separatedvalues, one of which is exactly equal to "warning".E[lang|="en"]Attribute selector: matches any E element whose "lang" attribute has a hyphen-separated list ofvalues beginning (from the left) with "en“ (e.g. en-US).DIV.warningHTML only. The same as DIV[class~="warning"].E#myidID selector: matches any E element ID equal to "myid".E:lang(c)Pseudo-class selector: matches element of type E if it is in (human) language c (the documentlanguage specifies how language is determined).E:first-childPseudo-class selector: matches element E when E is the first child of its parent.E:link, E:visitedPseudo-class selector: matches element E if E is the source anchor of a hyperlink of which thetarget is not yet visited (:link) or already visited (:visited).E:active, E:hover, E:focusDynamic Pseudo-class selector: matches E during certain user actions.E:first-line, E:first-letterPseudo-element selector: matches the first formatted line or letter of element E.](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fhtmljavascriptcss-131220030924-phpapp02%2f75%2fHtml-javascript-css-13-2048.jpg&f=jpg&w=240)








