Embed presentation
































































![article { display: block; width: 955px; margin: 0 auto; position: relative; height: 650px;}div[data-colony] { width: 955px; height: 50px; display: block; background: #BF0A30; position: absolute; top: 0; left: 0; z-index: 1; text-indent: -9999em;}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-65-2048.jpg&f=jpg&w=240)


![Attribute Selectors• a[title] { /* rules */ } a[href] { /* rules */ }• p[id] { /* rules */ } p[class] { /* rules */ }• img[alt] { /* rules */ } img[src] { /* rules */ }• blockquote[cite] { /* rules */ }](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-68-2048.jpg&f=jpg&w=240)
![Previous Solutiona[href="http://delaware.gov/"] em { background: white; top: 50px; left: 0;}a[href="http://www.georgia.gov/"] em { top: 100px; left: 0;}...](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-69-2048.jpg&f=jpg&w=240)
![New Solutiondiv[data-colony="2"] { top: 50px; left: 0; background: #fff;}div[data-colony="3"] { top: 100px; left: 0;}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-70-2048.jpg&f=jpg&w=240)







![div[data-colony="2"], div[data-colony="4"],div[data-colony="6"], div[data-colony="8"],div[data-colony="10"], div[data-colony="12"] { background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(255,255,255)), color-stop(0.69, rgb(227,227,227)) ); background-image: -moz-linear-gradient( center bottom, rgb(255,255,255) 0%, rgb(227,227,227) 69% );}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-78-2048.jpg&f=jpg&w=240)
![div[data-colony="1"], div[data-colony="3"],div[data-colony="5"], div[data-colony="7"],div[data-colony="9"], div[data-colony="11"],div[data-colony="13"] { border-bottom: 1px solid rgba(255,00,102,.5); background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(191,10,48)), color-stop(0.69, rgb(174,19,45)) ); background-image: -moz-linear-gradient( center bottom, rgb(191,10,48) 0%, rgb(174,19,45) 69% );}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-79-2048.jpg&f=jpg&w=240)











![Previous Solutiona[href="http://www.alabama.gov/"] i { background-image: url(stars.gif); display: block; position: absolute; top: 13px; left: 13px; z-index: 50; width: 24px; height: 23px;}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-91-2048.jpg&f=jpg&w=240)























![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]"); } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-115-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-116-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-117-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { return '<a href="' +$(this) + '" />'; } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-118-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { return '<a href="' +$(this).parent("div").children("a:first") + '" />'; } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-119-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { return '<a href="' +$(this).parent("div").children("a:first").attr("href") + '" />'; } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-120-2048.jpg&f=jpg&w=240)


























The document discusses HTML5 and CSS3 techniques including semantic markup, document structure, CSS selectors, positioning, gradients, and data attributes. It provides examples of using HTML5 elements like <header>, <nav>, <section>, <article>, and <aside> to structure a page semantically. It also demonstrates CSS techniques like resets, floats, positioning, gradients, and encoding data in HTML5 data attributes to style and enhance pages.
































































![article { display: block; width: 955px; margin: 0 auto; position: relative; height: 650px;}div[data-colony] { width: 955px; height: 50px; display: block; background: #BF0A30; position: absolute; top: 0; left: 0; z-index: 1; text-indent: -9999em;}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-65-2048.jpg&f=jpg&w=240)


![Attribute Selectors• a[title] { /* rules */ } a[href] { /* rules */ }• p[id] { /* rules */ } p[class] { /* rules */ }• img[alt] { /* rules */ } img[src] { /* rules */ }• blockquote[cite] { /* rules */ }](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-68-2048.jpg&f=jpg&w=240)
![Previous Solutiona[href="http://delaware.gov/"] em { background: white; top: 50px; left: 0;}a[href="http://www.georgia.gov/"] em { top: 100px; left: 0;}...](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-69-2048.jpg&f=jpg&w=240)
![New Solutiondiv[data-colony="2"] { top: 50px; left: 0; background: #fff;}div[data-colony="3"] { top: 100px; left: 0;}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-70-2048.jpg&f=jpg&w=240)







![div[data-colony="2"], div[data-colony="4"],div[data-colony="6"], div[data-colony="8"],div[data-colony="10"], div[data-colony="12"] { background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(255,255,255)), color-stop(0.69, rgb(227,227,227)) ); background-image: -moz-linear-gradient( center bottom, rgb(255,255,255) 0%, rgb(227,227,227) 69% );}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-78-2048.jpg&f=jpg&w=240)
![div[data-colony="1"], div[data-colony="3"],div[data-colony="5"], div[data-colony="7"],div[data-colony="9"], div[data-colony="11"],div[data-colony="13"] { border-bottom: 1px solid rgba(255,00,102,.5); background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(191,10,48)), color-stop(0.69, rgb(174,19,45)) ); background-image: -moz-linear-gradient( center bottom, rgb(191,10,48) 0%, rgb(174,19,45) 69% );}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-79-2048.jpg&f=jpg&w=240)











![Previous Solutiona[href="http://www.alabama.gov/"] i { background-image: url(stars.gif); display: block; position: absolute; top: 13px; left: 13px; z-index: 50; width: 24px; height: 23px;}](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-91-2048.jpg&f=jpg&w=240)























![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]"); } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-115-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-116-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-117-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { return '<a href="' +$(this) + '" />'; } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-118-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { return '<a href="' +$(this).parent("div").children("a:first") + '" />'; } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-119-2048.jpg&f=jpg&w=240)
![Enter jQuery<script type="text/javascript"> $(document).ready(function(){ $("div[data-colony]").wrap(function() { return '<a href="' +$(this).parent("div").children("a:first").attr("href") + '" />'; } ); });</script>](/image.pl?url=https%3a%2f%2fimage.slidesharecdn.com%2fcss3flagv3-100702112928-phpapp01%2f75%2fHTML5-CSS3-Flag-120-2048.jpg&f=jpg&w=240)
























