HTML tutorial

dinesh89

Well-known member
  • Dec 13, 2010
    2,406
    228
    63
    33
    At Home
    මේක මම අලුතින් යන WEB DESIGN පන්තියෙන් උස්සපු එකක් හොදේ.. WEB DESIGN කරන කට්ටියට වැදගත් වෙයි කියල හිතලයි දාන්න හිතුනේ..:yes::yes::yes:

    :D:D:D:D:D:D:D:D:D
    <DT> - Definition Term </DT>
    <DL> - Definition List </DL>
    <DD> - Definition Description </DD>
    Example:
    <dl>
    <dt>Definition Term</dt>
    <dd> Definition of the term </dd>
    <dt> Definition Term</dt>
    <dd> Definition of the term </dd>
    </dl>

    Music will begin playing when your page is loaded and will only play one time. A control panel will be displayed to enable your visitors to stop the music.

    <Embed>
    <embed src="yourfile.mid" width="100%" height="60" align="center">

    <embed src="yourfile.mid" autostart="true" hidden="false" loop="false">

    <noembed><bgsound src="yourfile.mid" loop="1"></noembed>



    <Font>

    <font face="Times New Roman">Example</font> Example

    <font face="Times New Roman" size="4">Example</font> Example

    <font face="Times New Roman" size="+3" color="#ff0000">Example</font>
    Example




    <h5>Heading 5 Example</h5>
    <h6>Heading 6 Example</h6>
    <Head> heading of HTML document
    <Head>Contains elements describing the document</head> Nothing will show
    <Hr> horizontal rule <hr />



    ________________________________________
    <hr> horizontal rule <hr width="50%" size="3" />
    ________________________________________
    Contents of your web page
    <hr width="50%" size="3" noshade />
    ________________________________________
    <hr width="75%" color="#ff0000" size="4" />
    ________________________________________

    <hr width="25%" color="#6699ff" size="6" />
    ________________________________________

    <html> hypertext markup language
    <html>
    <head>
    <meta>
    <title>Title of your web page</title>
    </head>
    <body>HTML web page contents
    </body>
    </html>

    <i> - Italic
    <i>Example</i> Example

    <img> - image
    <img src="Earth.gif" width="41" height="41" border="0" alt="text describing the image" />

    <Input>
    <input>input field
    <form method=post action="/cgi-bin/example.cgi">
    <center>
    Select an option:
    <select>
    <option >option 1</option>
    <option selected>option 2</option>
    <option>option 3</option>
    <option>option 4</option>
    <option>option 5</option>
    <option>option 6</option>
    </select><br>
    <input type="Submit" value="Submit"></center>
    </form>Select an option:

    <input>input field

    <form method=post action="/cgi-bin/example.cgi">
    Select an option:<br>
    <input type="radio" name="option"> Option 1
    <input type="radio" name="option" checked> Option 2
    <input type="radio" name="option"> Option 3
    <br>
    <br>
    Select an option:<br>
    <input type="checkbox" name="selection"> Selection 1
    <input type="checkbox" name="selection" checked> Selection 2
    <input type="checkbox" name="selection"> Selection 3
    <input type="Submit" value="Submit">
    </form>

    Select an option:
    Option 1
    Option 2
    Option 3

    Select an option:
    Selection 1
    Selection 2
    Selection 3
    <li> list item
    <menu>
    <li type="disc">List item 1</li>
    <li type="circle">List item 2</li>
    <li type="square">List item 3</li>
    </MENU>


    <ol type="i">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol> Example 1:
    • List item 1
    o List item 2
     List item 3
    i. List item 1
    ii. List item 2
    iii. List item 3
    iv. List item 4
    <Link> - Link

    <link rel="stylesheet" type="text/css" href="style.css" />
    <a href=”hh.html”> click file </a>



    </head>
    <marquee> scrolling text <marquee bgcolor="#cccccc" loop="-1" scrollamount="2" width="100%">Example Marquee</marquee>
    • <menu> menu <menu>
    <li type="disc">List item 1</li>
    <li type="circle">List item 2</li>
    <li type="square">List item 3</li>
    </menu> List item 1
    o List item 2
     List item 3
    <meta> meta <meta name="Description" content="Description of your site">
    <meta name="keywords" content="keywords describing your site"> Nothing will show
    <meta> meta <meta HTTP-EQUIV="Refresh" CONTENT="4;URL=http://www.yourdomain.com/"> Nothing will show
    <meta> meta <meta http-equiv="Pragma" content="no-cache"> Nothing will show
    <meta> meta <meta name="rating" content="General"> Nothing will show
    <meta> meta <meta name="robots" content="all"> Nothing will show
    <meta> meta <meta name="robots" content="noindex,follow"> Nothing will show



    <ol> ordered list Numbered

    <ol>
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Numbered Special Start

    <ol start="5">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Lowercase Letters
    <ol type="a">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Capital Letters
    <ol type="A">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Capital Letters Special Start
    <ol type="A" start="3">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Lowercase Roman Numerals
    <ol type="i">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Capital Roman Numerals
    <ol type="I">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol>

    Capital Roman Numerals Special Start
    <ol type="I" start="7">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
    </ol> Numbered
    1. List item 1
    2. List item 2
    3. List item 3
    4. List item 4
    Numbered Special Start
    5. List item 1
    6. List item 2
    7. List item 3
    8. List item 4
    Lowercase Letters
    a. List item 1
    b. List item 2
    c. List item 3
    d. List item 4
    Capital Letters
    A. List item 1
    B. List item 2
    C. List item 3
    D. List item 4

    Capital Letters Special Start
    C. List item 1
    D. List item 2
    E. List item 3
    F. List item 4
    Lowercase Roman Numerals
    i. List item 1
    ii. List item 2
    iii. List item 3
    iv. List item 4
    Capital Roman Numerals
    I. List item 1
    II. List item 2
    III. List item 3
    IV. List item 4
    Capital Roman Numerals Special Start
    VII. List item 1
    VIII. List item 2
    IX. List item 3
    X. List item 4

    <p> paragraph This is an example displaying the use of the paragraph tag. <p> This will create a line break and a space between lines.



    <br>
    <p align="left">
    This is an example<br>
    displaying the use<br>
    of the paragraph tag.<br>

    <br>
    <p align="right">
    This is an example<br>
    displaying the use<br>
    of the paragraph tag.<br>

    <br>
    <p align="center">
    This is an example<br>
    displaying the use<br>
    of the paragraph tag. This is an example displaying the use of the paragraph tag.



    This is an example
    displaying the use
    of the paragraph tag.

    This is an example
    displaying the use
    of the paragraph tag.


    This is an example
    displaying the use
    of the paragraph tag.
    <small> small (text) <small>Example</small> Example
    <strike> deleted text <strike>Example</strike> Example
    <strong> strong emphasis <strong>Example</strong> Example




    <table>
    <table border="4" cellpadding="2" cellspacing="2" width="100%">
    <tr>
    <td>Column 1</td>
    <td>Column 2</td>
    </tr>
    </table>







    <table border="2" bordercolor="#336699" cellpadding="2" cellspacing="2" width="100%">
    <tr>
    <td>Column 1</td>
    <td>Column 2</td>
    </tr>
    </table>


    <table cellpadding="2" cellspacing="2" width="100%">
    <tr>
    <td bgcolor="#cccccc">Column 1</td>
    <td bgcolor="#cccccc">Column 2</td>
    </tr>
    <tr>
    <td>Row 2</td>
    <td>Row 2</td>
    </tr>
    </table>

    <td> table data <table border="2" cellpadding="2" cellspacing="2" width="100%">
    <tr>
    <td>Column 1</td>
    <td>Column 2</td>
    </tr>
    </table>


    <th> table header <div align="center">
    <table>
    <tr>
    <th>Column 1</th>
    <th>Column 2</th>
    <th>Column 3</th>
    </tr>
    <tr>
    <td>Row 2</td>
    <td>Row 2</td>
    <td>Row 2</td>
    </tr>
    <tr>
    <td>Row 3</td>
    <td>Row 3</td>
    <td>Row 3</td>
    </tr>
    <tr>
    <td>Row 4</td>
    <td>Row 4</td>
    <td>Row 4</td>
    </tr>
    </table>
    </div>


    <Title>Title of your HTML page</title>
    <tr> table row
    <table border="2" cellpadding="2" cellspacing="2" width="100%">
    <tr>
    <td>Column 1</td>
    <td>Column 2</td>
    </tr>
    </table> Column 1 Column 2

    <tt> teletype </tt>
    <u> underline </u>

    <ul> unordered list
    <br>
    <ul>
    <li>List item 1</li>
    <li>List item 2</li>
    </ul>
    <br>
    Example 2:<br>
    <ul type="disc">
    <li>List item 1</li>
    <li>List item 2</li>
    <ul type="circle">
    <li>List item 3</li>
    <li>List item 4</li>
    </ul>
    </ul> Example 1:
    • List item 1
    • List item 2

    Example 2:
    • List item 1
    • List item 2
    o List item 3
    o List item 4