Wednesday 6 February 2019

HTML&CSS

Self-Closing Elements:
<br>, <embed>, <hr>, <img>, <input>, <link>, <meta>, <param>, <source>, <wbr>
CSS selectors: type, class, and ID
  1. Type Selectors: target all division elements <div>
CSS:
div{...}
HTML:
<div>...</div>
<div>...</div>
2. Class Selector: select a particular group of elements rather than all elements of one type
CSS:
.awesome{...}
HTML:
<div class="awesome">...</div>
<p class="awesome">...</p>
3. ID Selector: target only one unique element at a time
CSS:
#name{...}
HTML:
<div id="name">...</div>
<div> and <span> exist for styling only.
<div>is used to identify large grouping of content
<span>used to identify smaller groupings of text within a block-level element.

No comments:

Post a Comment