by Artsiom Aliakseyenka
<div name="value">tag content</div>
types
tabindex - может применяться не совсеми tag в HTMl4
<div id="container"> <div class="child"> <span class="descedant"></span> </div></div><div class="sibling"></div>DOM tree
Non-breaking space: Less than: < - <More than > - >Ampersand: &Copyright: ©
<!DOCTYPE html><html> <head> <title>Title of the document</title> </head> <body>The content of the document......</body></html>html example
<!DOCTYPE root-element [PUBLIC|SYSTEM] "FPI" ["URI"][internal declarations]>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">
<!DOCTYPE html>
<html manifest="cache.appcache"><html>
<link rel="relationship" media="max-width: 960px" type="mime" href="url">
<meta name="author" content="Artsiom">
<meta name="viewport" content="width=device-width">http-equiv - определяет кодировку и параметры кэширования: на сколько кэшировать сontent - определяет значение
defines client-side script
by inline statement
<script type="text/javascript">alert();<script>
by specifying external source
<script src="url"></script>
<script src="url" defer type="type" charset="charset" async><script>
async Specifies that the script is executed asynchronously
charset charset Specifies the character encoding used in an external script file
defer Specifies that the script is executed when the page has finished parsing
src URL Specifies the URL of an external script file
type MIME-type Specifies the MIME type of the script
defer: executed after the rest of elements are loaded. Equal to moving script to the end of the document.
<noscript><meta http-equiv="refresh" content="5; http://test.com/noscripts"></meta></noscript>
<div></div><span></span><header></header><nav></nav><section></section><p></p>example
<h1>-</h6><hgroup></hgroup>headings
<b></b><strong></strong><em></em><pre></pre>emphasized
<img><object></object><video></video><audio></audio>
<object type="application/x-shockwave-flash" data="images/mouse.swf" width="400" height="300"> <param name="quality" value="high"> <param name="wmode" value="opaque"></object>images
<ul> <li></li></ul>
<ol> <li></li></ol>
<table></table>
<form></form>
<a></a><br><blockquote></blockquote><small></small><center></center>Note: Use the <br> tag to enter line breaks, not to separate paragraphs.
<input><button></button><select></select><textarea></textarea>
<input> type attribute:
type - search
type - email
1, A, a, I, i ,disc, square, circle
<a href="url" target="value" title="value">
<a href="mailto:test@test.com?subject:Test">test@test.com</a>test@test.com
<a href="tel:+375-296-562-814">+375-296-562-814</a>+375-296-562-814
<form action="url" method="methodType"></form>
<iframe src="url"></iframe>example
<div>, <span>, <small>, <center>
<table><form><img><header><article>
<!--[if lt IE 9]>--><script src="dist/html5shiv.js"></script><![endif]-->
style sheet language, which is used for describing the presentation of a document, written in a markup language
Tell about css alternative and its popularity/* сss block */.error { font-size: 12px; /* semi-colon separates declarations*/ color: red; /* last declaration not require semi-colon*/}
/* сss group */.error, .success { font-size: 12px; /* semi-colon separates declarations*/}
<div style="color:red;"><div>
<style>body { font-size: 14px;}</style>
<link href="styles.css" rel="stylesheet">
p { }
.success { }
#login-form
* { }
#login-form input{ }
ul > li
.address + city { }
span[class="address"] { }
color: #000;/*#000000; #fefefe;*/color: rgb(0,0,0);color: rgba(0,0,0,0.3);background-color: #ffaaaa; background-image: url(../images/bg_image.png);
background: [background-attachment || background-color || background-image|| background-position || background-repeat] | inheritbackgrouds background this is good, repeat, texture, but css3 gradient is better
tell about prod and dev version concating of images to one single sprite
, помещенный в этот контейнер текст выводится со всеми пробелами, как он был отформатирован пользователем. Т
font-family: arial, verdana, sans-serif;
font: [font-style||font-variant||font-weight] font-size [/line-height] font-family | inherit;Font example
@keyframes myfirst { from {background: red;} to {background: yellow; }}animation: myfirst 5s;
] || || ||
transform: transform-functions
p:before {}
a:active {}
<style>.parent{ color: red; border: 1px solid #000;}</style><div class="parent"> <span>red text here</span></div>
overflow: auto | hidden | scroll | visible | inheritblock size overflow row overflow
background: -moz-linear-gradient(...);background: -webkit-linear-gradient(...);background: -o-linear-gradient(...);background: linear-gradient(top, #e2e2e2 0%,#dbdbdb 50%,#d1d1d1 51%,#fefefe 100%);Gradients
not all properties are cross browser
can i useTesting IE version: IETester
Online resources creating screenshots of website for different platforms
<p>,<div>,<header>,<nav>,<ul>,<li>
<a>,<span>,<code>,<b>,<em>,<i>
CSS property display - defines how element is displayed in document
if vertical margin of two elements are touching
The first thing we need to remember is that a floating element is shifted either to the left or to the right. It is not possible to make an element float in the centre
<div class="parent"> <div class="left"></div> <div class="right"></div></div>
*{ margin: 0; padding: 0; }p { margin: 5px 0 10px 0;}
h2 #address .data img:hover
start at 0, add 1000 for inline styles, 100 for Id, 10 for class(attributes) and 1 for elements
color: red !important;
body .navigation ul li a { }.navigation-link { }
body ul li * {}
ul > li > a { }ul + div { }
div#feedback {}#feedback {}
margin:0;
line-height: .8em;
color: #ebc; /* #eebbcc; */
<table> <tr> <td></td> <td></td> </tr></table>
display: flex;
width of the page use unit of measurement that does not depend on factors such as font size, browser windows sizes
<div class="wrapper"> <div class="sidebar"></div> <div class="main"></div></div><style> .wrapper{ width: 960px; margin: 0 auto;}</style>