This is a CSS primer for ID and Class Slectors
Watch this on JSFIDDLE
Monday, March 18, 2013
Friday, March 15, 2013
Thursday, March 14, 2013
Example of Class selector in HTML5
This example will show you how Class selector is used
Watch this on jsfiddle
Example of ID selector in HTML
In this example I will show you how ID selector is used
Try this on jsfiddle
Example of HTML Document with styling
Basic HTML Document with STYLING in it
Watch this example on Jsfiddle
Below given list are the BLOCK elements
BLOCK Elements – Which take up a block of area on HTML, forcing next element to come on next line
- Paragraph - <p>
- A definition term in a definition list. - <dt>
- The definition of a term, in a definition list. - <dd>
- An ordered (enumerated) list. - <ol>
- An unordered (bulleted) list. - <ul>
- A list item in ordered (ol) or unordered (ul) lists - <li>
- Address - <address>
- Blockquote - <blockquote>
- center - < center>
- del Marks a deleted section of content. This element can also be used as inline. - <del>
- div A block-level logical division. - < div>
- ins Marks a section of inserted content. This element can also be used as inline. - <ins>
- noscript Replacement content for scripts. Unlike script this can only be used as a block-level element. - < hr>
- pre Pre-formatted text. - <pre>
- script Places a script in the document. Also usable in the head and in inline contexts. Note: SCRIPT is not itself either a block or inline element; by itself it should not display at all, but it can contain instructions to dynamically generate either both block or inline content. - <script>
Please check the below given example on jsfiddle
View it on JSFIDDLEHTML TAG BASIC TEXT
This below given example contain paragraph tag and header tag
- Paragraph – <div>
- Headers – <h1> to <h6>
This below given example also contain CSS example. How to color the text, how to set the margin, set different fonts etc..
View it on JSFIDDLE
In the next post I will list all the BLOCK elements and INLINE elements
Subscribe to:
Posts (Atom)