Saturday, March 10, 2018

Table attribute - HTML

Table attribute - HTML


Attribute list needs to create a table are given below :

1. width
2. height
3. border
4. rowspan
5. collspan

we saw the border effect in previous  Part.

 Example :

 <!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Table</title>
</head>
<body>
    <table border="1" width="300" height="250">
        <tr>
            <td>Row 1 Col 1</td>
            <td>Row 1 Col 2</td>
            <td>Row 1 Col 3</td>
        </tr>
        <tr>
            <td>Row 2 col 1</td>
            <td>Row 2 col 2</td>
            <td>Row 2 col 3</td>
        </tr>
        <tr>
            <td>Row 3 col 1</td>
            <td>Row 3 col 2</td>
            <td>Row 3 col 3</td>
        </tr>
    </table>
</body>
</html> 


Output: 
Table attribute - HTML, width, height, border

<caption> tag used for making a heading of a table and <caption>  write next to the <table> (opening tag) tag like:

<table>
       <caption>Heading</caption>
        <tr>
            <td>Row 1 Col 1</td>
        </tr>
</table>

If we use the <caption>  tag in the code is given above, then the output is :



Tag:  Table attribute - HTML, width, height, border,attribute ,caption , HTML.


Friday, March 9, 2018

Table Create In html

Table Create In html


Tags are given below those are use to create table in html.

Tag
Description

<table>

Use to Defines a table

<th>

Use to Defines a header cell in a table

<tr>

Use to Defines a row in a table

<td>

Use to Defines a cell in a table

<caption>

Use to Defines a table caption

<thead>

Use to Groups the header content in a table

<tbody>

Use to Groups the body content in a table

<tfoot>

Use to Groups the footer content in a table

Example:


<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Table</title>
</head>
<body>
    <table>
        <tr>
            <td>Row 1 Col 1</td>
            <td>Row 1 Col 2</td>
            <td>Row 1 Col 3</td>
        </tr>
        <tr>
            <td>Row 2 col 1</td>
            <td>Row 2 col 2</td>
            <td>Row 2 col 3</td>
        </tr>
        <tr>
            <td>Row 3 col 1</td>
            <td>Row 3 col 2</td>
            <td>Row 3 col 3</td>
        </tr>
    </table>
</body>
</html>


Output:
output table in html
but it's little bit difficult to understood because there is no border between row and column  but we use border attribute,we see a change .Use border attribute in table tag .Like example given below

<table border="1">             
Output:


table border in html
































Note: for create  a table first define <table> tag the use <tr> tag to make row in the table.Then use <td>  in <tr> tag to divide row in the column.







Tag: Table Create In html,<table>  tag, <tr>  tag, <td> tag.












Thursday, March 8, 2018

Text Formatting in HTML



 Text Formatting in HTML

Today we learn some tag those are use to formatting text.Formatting elements were designed to display special types of text:


    1.<b> - Bold text

        example:                                                                  output:
text bold in htmltext bold in html
            




         


 
    2.<strong> - Important text

       example:                                                                output:
        
<strong> - Important text<strong> - Important text

     


<b> & <strong> are like same.


    3.<i> - Italic text

     example:                                                                  output:
     
Italic textItalic text


 


    4.<em> - Emphasized text

em> - Emphasized text

    5.<mark> - Marked text


Marked text/highlight text
    6.<small> - Small text


small tag
    7.<del> - Deleted text

<del> or deleted text present in html

    8.<ins> - Inserted text

<ins> or inserted text in html

    9.<sub> - Subscript text

<sub> tag or present subscript text in html

    10.<sup> - Superscript text

<sub> tag or present superscript text in html


Tag:   Text Formatting in HTML

Wednesday, March 7, 2018

Audio and Video Tag in html Part-2

Audio and Video Tag with attribute

Audio And Video Tag attribute list given below:

1.autoplay
2.src
3.controls
4.loop
5.muted
6.poster(only for video tag)

In Part-1, we learn the use of controls and src attribute.Today do try others

 <audio controls autoplay>
        <source src="audio.mp3"></source>
    </audio> 

if we use autoplay in audio tag,the audio file automatic play after page loading .

 <audio controls autoplay loop>
        <source src="audio.mp3"></source>
    </audio> 

if we use loop attribute in audio tag,the audio file automatic repeat again when it finish.

 <audio controls autoplay loop muted>
        <source src="audio.mp3"></source>
    </audio> 
 
 muted is use for no sound. 

autoplay, loop, and muted are same as in video tag.

only poster is different. it's use to make a cover or poster of a video like we see in youtube videos.


<video controls poster="html5.gif">
        <source src="movie.mp4" type="video/mp4">
</video>

Tag: audio and video tags with attribute, html

Thursday, March 1, 2018

youtube channel of this blog

YouTube Channel  

YouTube channel link below :

Future you will see video tutorial on this channel
Channel Name : Online School


Tag: Online School,YouTube Channel,

Freelancing Website

Top online Earning or Freelancing Website 1. https://creativemarket.com/                 Graphics and Photography Related Site ...