Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Thursday at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Jun 23, 2026
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Jun 21, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
HTML tutorial part 2
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="dinesh89" data-source="post: 12256913" data-attributes="member: 323066"><p><span style="font-size: 18px">කාටහරි වැදගත් වෙයි කියලා හිතලා දැන්මේ.. බලලා නිකම් යන්න එපා පොඩි බම්ප් එකක් දෙන්න හොදේ...</span></p><p><span style="font-size: 18px"></span></p><p><img src="/styles/default/xenforo/smilies/default/confused.gif" class="smilie" loading="lazy" alt=":confused:" title="Confused :confused:" data-shortname=":confused:" /><img src="/styles/default/xenforo/smilies/default/confused.gif" class="smilie" loading="lazy" alt=":confused:" title="Confused :confused:" data-shortname=":confused:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /><img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /><img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></p><p><span style="font-size: 12px">Example</span></p><p><span style="font-size: 12px">HTML Home</span></p><p><span style="font-size: 12px"><html><head><title> My First Heading</title></head></span></p><p><span style="font-size: 12px"><p>My first paragraph.</p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html> </span></p><p><span style="font-size: 12px">My First Heading – Title Name</span></p><p><span style="font-size: 12px">My first paragraph.</span></p><p><span style="font-size: 12px">Example – HTML Basic - 4 </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Headings</span></p><p><span style="font-size: 12px">HTML headings are defined with the <h1> to <h6> tags.</span></p><p><span style="font-size: 12px"><h1>This is a heading</h1></span></p><p><span style="font-size: 12px"><h2>This is a heading</h2></span></p><p><span style="font-size: 12px"><h3>This is a heading</h3> </span></p><p><span style="font-size: 12px">This is heading 1</span></p><p><span style="font-size: 12px">This is heading 2</span></p><p><span style="font-size: 12px">This is heading 3</span></p><p><span style="font-size: 12px">This is heading 4</span></p><p><span style="font-size: 12px">This is heading 5</span></p><p><span style="font-size: 12px">This is heading 6</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Paragraphs</span></p><p><span style="font-size: 12px">HTML paragraphs are defined with the <p> tag.</span></p><p><span style="font-size: 12px"><p>This is a paragraph.</p></span></p><p><span style="font-size: 12px"><p>This is another paragraph.</p> </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This is a paragraph.</span></p><p><span style="font-size: 12px">This is a paragraph.</span></p><p><span style="font-size: 12px">This is a paragraph.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Links</span></p><p><span style="font-size: 12px">HTML links are defined with the <a> tag.</span></p><p><span style="font-size: 12px"><a href="http://www.w3schools.com">This is a link</a> </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This is a link</span></p><p><span style="font-size: 12px">HTML Images</span></p><p><span style="font-size: 12px">HTML images are defined with the <img> tag.</span></p><p><span style="font-size: 12px"><img src="w3schools.jpg" width="104" height="142" /> </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Elements</span></p><p><span style="font-size: 12px">An HTML element is everything from the start tag to the end tag:</span></p><p><span style="font-size: 12px">Start tag * Element content End tag *</span></p><p><span style="font-size: 12px"><p> This is a paragraph </p></span></p><p><span style="font-size: 12px"><a href="default.htm" > This is a link </a></span></p><p><span style="font-size: 12px"><br /> </span></p><p><span style="font-size: 12px">* The start tag is often called the opening tag. The end tag is often called the closing tag.</span></p><p><span style="font-size: 12px">HTML Document Example</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"><p>This is my first paragraph.</p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></html> </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Text Formatting</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"><p><b>This text is bold</b></p></span></p><p><span style="font-size: 12px"><p><strong>This text is strong</strong></p></span></p><p><span style="font-size: 12px"><p><big>This text is big</big></p></span></p><p><span style="font-size: 12px"><p><i>This text is italic</i></p></span></p><p><span style="font-size: 12px"><p><em>This text is emphasized</em></p></span></p><p><span style="font-size: 12px"><p><code>This is computer output</code></p></span></p><p><span style="font-size: 12px"><p>This is<sub> subscript</sub> and <sup>superscript</sup></p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px">This text is bold</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This text is big</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This text is italic</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This is computer output</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This is subscript and superscript</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">The HTML <font> Tag </span></p><p><span style="font-size: 12px"><p></span></p><p><span style="font-size: 12px"><font size="5" face="arial" color="red"></span></p><p><span style="font-size: 12px">This paragraph is in Arial, size 5, and in red text color.</span></p><p><span style="font-size: 12px"></font></span></p><p><span style="font-size: 12px"></p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p></span></p><p><span style="font-size: 12px"><font size="3" face="verdana" color="blue"></span></p><p><span style="font-size: 12px">This paragraph is in Verdana, size 3, and in blue text color.</span></p><p><span style="font-size: 12px"></font></span></p><p><span style="font-size: 12px"></p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This paragraph is in Arial, size 5, and in red text color. </span></p><p><span style="font-size: 12px">This paragraph is in Verdana, size 3, and in blue text color. </span></p><p><span style="font-size: 12px">The font element is deprecated in HTML 4. Use CSS instead!</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Styles - CSS</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body style="background-color<img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" />owderBlue;"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h1>Look! Styles and colors</h1></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p style="font-family:verdana;color:red;"></span></p><p><span style="font-size: 12px">This text is in Verdana and red</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p style="font-family:times;color:green;"></span></p><p><span style="font-size: 12px">This text is in Times and green</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p style="font-size:30px;">This text is 30 pixels high</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Look! Styles and colors</span></p><p><span style="font-size: 12px">This text is in Verdana and red</span></p><p><span style="font-size: 12px">This text is in Times and green</span></p><p><span style="font-size: 12px">This text is 30 pixels high</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Style Example - Background Color</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><body style="background-color:yellow;"></span></p><p><span style="font-size: 12px"><h2 style="background-color:red;">This is a heading</h2></span></p><p><span style="font-size: 12px"><p style="background-color:green;">This is a paragraph.</p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></html></span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Style Example - Font, Color and Size</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"><h1 style="font-family:verdana;">A heading</h1></span></p><p><span style="font-size: 12px"><p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">A heading</span></p><p><span style="font-size: 12px">A paragraph.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HL Style Example - Text Alignmen </span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"><h1 style="text-align:center;">Center-aligned heading</h1></span></p><p><span style="font-size: 12px"><p>This is a paragraph.</p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px">Center-aligned heading</span></p><p><span style="font-size: 12px">This is a paragraph.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Images - The <img> Tag and the Src Attribute </span></p><p><span style="font-size: 12px"><img src="url" alt="some_text"/></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Images - The Alt Attribute</span></p><p><span style="font-size: 12px"><img src="boat.gif" alt="Big Boat" /></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Images - Set Height and Width of an Image</span></p><p><span style="font-size: 12px"><img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" /></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Alignment Image</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p>An image </span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="Smiley face" align="bottom" width="32" height="32" /></span></p><p><span style="font-size: 12px">with align="bottom".</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p>An image</span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="Smiley face" align="middle" width="32" height="32" /> </span></p><p><span style="font-size: 12px">with align="middle".</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p>An image </span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="Smiley face" align="top" width="32" height="32" /></span></p><p><span style="font-size: 12px">with align="top".</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p><b>Tip:</b> align="bottom" is default!</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p><img src="smiley.gif" alt="Smiley face" width="32" height="32" /></span></p><p><span style="font-size: 12px">An image before the text.</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p>An image after the text. </span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="Smiley face" width="32" height="32" /></p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px">An image with align="bottom".</span></p><p><span style="font-size: 12px">An image with align="middle".</span></p><p><span style="font-size: 12px">An image with align="top".</span></p><p><span style="font-size: 12px">Tip: align="bottom" is default!</span></p><p> <span style="font-size: 12px">An image before the text.</span></p><p><span style="font-size: 12px">An image after the text. </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Let the image float</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p></span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="Smiley face" align="left" width="32" height="32" /></span></p><p><span style="font-size: 12px"> </span></p><p> <span style="font-size: 12px">A paragraph with an image. The align attribute of the image is set to "left". The</span></p><p><span style="font-size: 12px">image will float to the left of this text.</span></p><p><span style="font-size: 12px"></p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p></span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="Smiley face" align="right" width="32" height="32" /></span></p><p><span style="font-size: 12px">A paragraph with an image. The align attribute of the image is set to "right". The image will float to the right of this text.</span></p><p><span style="font-size: 12px"></p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> A paragraph with an image. The align attribute of the image is set to "left". The image will float to the left of this text. </span></p><p><span style="font-size: 12px">A paragraph with an image. The align attribute of the image is set to "right". The image will float to the right of this text. </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Make a hyperlink of an image</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p>Create a link of an image:</span></p><p><span style="font-size: 12px"><a href="default.asp"></span></p><p><span style="font-size: 12px"><img src="smiley.gif" alt="HTML tutorial" width="32" height="32" /></span></p><p><span style="font-size: 12px"></a></p></span></p><p><span style="font-size: 12px"><p>No border around the image, but still a link:</span></p><p><span style="font-size: 12px"><a href="default.asp"></span></p><p><span style="font-size: 12px"><img border="0" src="smiley.gif" alt="HTML tutorial" width="32" height="32" /></span></p><p><span style="font-size: 12px"></a></p></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Create an image map</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p>Click on the sun or on one of the planets to watch it closer:</p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><map name="planetmap"></span></p><p><span style="font-size: 12px"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm" /></span></p><p><span style="font-size: 12px"> <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm" /></span></p><p><span style="font-size: 12px"> <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm" /></span></p><p><span style="font-size: 12px"></map></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Click on the sun or on one of the planets to watch it closer:</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> </span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Tables</span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"><td>row 1, cell 1</td></span></p><p><span style="font-size: 12px"><td>row 1, cell 2</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"><td>row 2, cell 1</td></span></p><p><span style="font-size: 12px"><td>row 2, cell 2</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px">Row 1, Cell 1 Row 1, Cell 1</span></p><p><span style="font-size: 12px">Row 1, Cell 1 Row 1, Cell 1</span></p><p><span style="font-size: 12px">Table Border - Example - 01</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>With a normal border:</h4> </span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>First</td></span></p><p><span style="font-size: 12px"> <td>Row</td></span></p><p><span style="font-size: 12px"></tr> <tr> <td>Second</td></span></p><p><span style="font-size: 12px"> <td>Row</td></span></p><p><span style="font-size: 12px"></tr> </table></span></p><p><span style="font-size: 12px"><h4>With a thick border:</h4> </span></p><p><span style="font-size: 12px"><table border="8"></span></p><p><span style="font-size: 12px"><tr> <td>First</td></span></p><p><span style="font-size: 12px"> <td>Row</td></span></p><p><span style="font-size: 12px"></tr> <tr> <td>Second</td></span></p><p><span style="font-size: 12px"> <td>Row</td> </tr></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">With a normal border:</span></p><p><span style="font-size: 12px">First Row</span></p><p><span style="font-size: 12px">Second Row</span></p><p><span style="font-size: 12px">With a thick border:</span></p><p><span style="font-size: 12px">First Row</span></p><p><span style="font-size: 12px">Second Row</span></p><p><span style="font-size: 12px">With a very thick border:</span></p><p><span style="font-size: 12px">First Row</span></p><p><span style="font-size: 12px">Second Row</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Tables - Example1 - 02</span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><p></span></p><p><span style="font-size: 12px">Each table starts with a table tag. </span></p><p><span style="font-size: 12px">Each table row starts with a tr tag.</span></p><p><span style="font-size: 12px">Each table data starts with a td tag.</span></p><p><span style="font-size: 12px"></p></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>One column:</h4></span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>100</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>One row and three columns:</h4></span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>100</td></span></p><p><span style="font-size: 12px"> <td>200</td></span></p><p><span style="font-size: 12px"> <td>300</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px">Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. </span></p><p><span style="font-size: 12px">One column:</span></p><p><span style="font-size: 12px">100</span></p><p><span style="font-size: 12px">One row and three columns:</span></p><p><span style="font-size: 12px">100 200 300</span></p><p><span style="font-size: 12px">Two rows and three columns:</span></p><p><span style="font-size: 12px">100 200 300</span></p><p><span style="font-size: 12px">400 500 600</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">HTML Table Headers</span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"><th>Header 1</th></span></p><p><span style="font-size: 12px"><th>Header 2</th></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"><td>row 1, cell 1</td></span></p><p><span style="font-size: 12px"><td>row 1, cell 2</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"><td>row 2, cell 1</td></span></p><p><span style="font-size: 12px"><td>row 2, cell 2</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Header 1 Header 2</span></p><p><span style="font-size: 12px">Row 1, Cell 1 Row 1, Cell 1</span></p><p><span style="font-size: 12px">Row 1, Cell 1 Row 1, Cell 1</span></p><p><span style="font-size: 12px">Apples 44%</span></p><p><span style="font-size: 12px">Bananas 23%</span></p><p><span style="font-size: 12px">Oranges 13%</span></p><p><span style="font-size: 12px">Other 10%</span></p><p><span style="font-size: 12px"></span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Tables without border</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>This table has no borders:</h4></span></p><p><span style="font-size: 12px"><table></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>100</td></span></p><p><span style="font-size: 12px"> <td>200</td></span></p><p><span style="font-size: 12px"> <td>300</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>400</td></span></p><p><span style="font-size: 12px"> <td>500</td></span></p><p><span style="font-size: 12px"> <td>600</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>And this table has no borders:</h4></span></p><p><span style="font-size: 12px"><table border="0"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>100</td></span></p><p><span style="font-size: 12px"> <td>200</td></span></p><p><span style="font-size: 12px"> <td>300</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>400</td></span></p><p><span style="font-size: 12px"> <td>500</td></span></p><p><span style="font-size: 12px"> <td>600</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px">This table has no borders:</span></p><p><span style="font-size: 12px">100 200 300</span></p><p><span style="font-size: 12px">400 500 600</span></p><p><span style="font-size: 12px">And this table has no borders:</span></p><p><span style="font-size: 12px">100 200 300</span></p><p><span style="font-size: 12px">400 500 600</span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Table headers</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>Table headers:</h4></span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <th>Name</th></span></p><p><span style="font-size: 12px"> <th>Telephone</th></span></p><p><span style="font-size: 12px"> <th>Telephone</th></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <td>Bill Gates</td></span></p><p><span style="font-size: 12px"> <td>555 77 854</td></span></p><p><span style="font-size: 12px"> <td>555 77 855</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><h4>Vertical headers:</h4></span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <th>First Name:</th></span></p><p><span style="font-size: 12px"> <td>Bill Gates</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <th>Telephone:</th></span></p><p><span style="font-size: 12px"> <td>555 77 854</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"><tr></span></p><p><span style="font-size: 12px"> <th>Telephone:</th></span></p><p><span style="font-size: 12px"> <td>555 77 855</td></span></p><p><span style="font-size: 12px"></tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Table headers:</span></p><p><span style="font-size: 12px">Name Telephone Telephone</span></p><p><span style="font-size: 12px">Bill Gates 555 77 854 555 77 855</span></p><p><span style="font-size: 12px">Vertical headers:</span></p><p><span style="font-size: 12px">First Name: Bill Gates</span></p><p><span style="font-size: 12px">Telephone: 555 77 854</span></p><p><span style="font-size: 12px">Telephone: 555 77 855</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Table with a Caption </span></p><p><span style="font-size: 12px"><html></span></p><p><span style="font-size: 12px"><body></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><table border="1"></span></p><p><span style="font-size: 12px"> <caption>Monthly savings</caption></span></p><p><span style="font-size: 12px"> <tr></span></p><p><span style="font-size: 12px"> <th>Month</th></span></p><p><span style="font-size: 12px"> <th>Savings</th></span></p><p><span style="font-size: 12px"> </tr></span></p><p><span style="font-size: 12px"> <tr></span></p><p><span style="font-size: 12px"> <td>January</td></span></p><p><span style="font-size: 12px"> <td>$100</td></span></p><p><span style="font-size: 12px"> </tr></span></p><p><span style="font-size: 12px"> <tr></span></p><p><span style="font-size: 12px"> <td>February</td></span></p><p><span style="font-size: 12px"> <td>$50</td></span></p><p><span style="font-size: 12px"> </tr></span></p><p><span style="font-size: 12px"></table></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"></body></span></p><p><span style="font-size: 12px"></html></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Month Savings </span></p><p><span style="font-size: 12px">Month Savings </span></p><p><span style="font-size: 12px">January $100 </span></p><p><span style="font-size: 12px">February $50</span></p><p><span style="font-size: 12px"></span></p></blockquote><p></p>
[QUOTE="dinesh89, post: 12256913, member: 323066"] [SIZE="5"]කාටහරි වැදගත් වෙයි කියලා හිතලා දැන්මේ.. බලලා නිකම් යන්න එපා පොඩි බම්ප් එකක් දෙන්න හොදේ... [/SIZE] :confused::confused::yes::yes::):):D:D [SIZE="3"]Example HTML Home <html><head><title> My First Heading</title></head> <p>My first paragraph.</p> </body> </html> My First Heading – Title Name My first paragraph. Example – HTML Basic - 4 Headings HTML headings are defined with the <h1> to <h6> tags. <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6 Paragraphs HTML paragraphs are defined with the <p> tag. <p>This is a paragraph.</p> <p>This is another paragraph.</p> This is a paragraph. This is a paragraph. This is a paragraph. HTML Links HTML links are defined with the <a> tag. <a href="http://www.w3schools.com">This is a link</a> This is a link HTML Images HTML images are defined with the <img> tag. <img src="w3schools.jpg" width="104" height="142" /> HTML Elements An HTML element is everything from the start tag to the end tag: Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm" > This is a link </a> <br /> * The start tag is often called the opening tag. The end tag is often called the closing tag. HTML Document Example <html> <body> <p>This is my first paragraph.</p> </body> </html> HTML Text Formatting <html> <body> <p><b>This text is bold</b></p> <p><strong>This text is strong</strong></p> <p><big>This text is big</big></p> <p><i>This text is italic</i></p> <p><em>This text is emphasized</em></p> <p><code>This is computer output</code></p> <p>This is<sub> subscript</sub> and <sup>superscript</sup></p> </body> </html> This text is bold This text is big This text is italic This is computer output This is subscript and superscript The HTML <font> Tag <p> <font size="5" face="arial" color="red"> This paragraph is in Arial, size 5, and in red text color. </font> </p> <p> <font size="3" face="verdana" color="blue"> This paragraph is in Verdana, size 3, and in blue text color. </font> </p> This paragraph is in Arial, size 5, and in red text color. This paragraph is in Verdana, size 3, and in blue text color. The font element is deprecated in HTML 4. Use CSS instead! HTML Styles - CSS <html> <body style="background-color:PowderBlue;"> <h1>Look! Styles and colors</h1> <p style="font-family:verdana;color:red;"> This text is in Verdana and red</p> <p style="font-family:times;color:green;"> This text is in Times and green</p> <p style="font-size:30px;">This text is 30 pixels high</p> </body> </html> Look! Styles and colors This text is in Verdana and red This text is in Times and green This text is 30 pixels high HTML Style Example - Background Color <html> <body style="background-color:yellow;"> <h2 style="background-color:red;">This is a heading</h2> <p style="background-color:green;">This is a paragraph.</p> </body> </html> HTML Style Example - Font, Color and Size <html> <body> <h1 style="font-family:verdana;">A heading</h1> <p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p> </body> </html> A heading A paragraph. HL Style Example - Text Alignmen <html> <body> <h1 style="text-align:center;">Center-aligned heading</h1> <p>This is a paragraph.</p> </body> </html> Center-aligned heading This is a paragraph. HTML Images - The <img> Tag and the Src Attribute <img src="url" alt="some_text"/> HTML Images - The Alt Attribute <img src="boat.gif" alt="Big Boat" /> HTML Images - Set Height and Width of an Image <img src="pulpit.jpg" alt="Pulpit rock" width="304" height="228" /> Alignment Image <html> <body> <p>An image <img src="smiley.gif" alt="Smiley face" align="bottom" width="32" height="32" /> with align="bottom".</p> <p>An image <img src="smiley.gif" alt="Smiley face" align="middle" width="32" height="32" /> with align="middle".</p> <p>An image <img src="smiley.gif" alt="Smiley face" align="top" width="32" height="32" /> with align="top".</p> <p><b>Tip:</b> align="bottom" is default!</p> <p><img src="smiley.gif" alt="Smiley face" width="32" height="32" /> An image before the text.</p> <p>An image after the text. <img src="smiley.gif" alt="Smiley face" width="32" height="32" /></p> </body> </html> An image with align="bottom". An image with align="middle". An image with align="top". Tip: align="bottom" is default! An image before the text. An image after the text. Let the image float <html> <body> <p> <img src="smiley.gif" alt="Smiley face" align="left" width="32" height="32" /> A paragraph with an image. The align attribute of the image is set to "left". The image will float to the left of this text. </p> <p> <img src="smiley.gif" alt="Smiley face" align="right" width="32" height="32" /> A paragraph with an image. The align attribute of the image is set to "right". The image will float to the right of this text. </p> </body> </html> A paragraph with an image. The align attribute of the image is set to "left". The image will float to the left of this text. A paragraph with an image. The align attribute of the image is set to "right". The image will float to the right of this text. Make a hyperlink of an image <html> <body> <p>Create a link of an image: <a href="default.asp"> <img src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> <p>No border around the image, but still a link: <a href="default.asp"> <img border="0" src="smiley.gif" alt="HTML tutorial" width="32" height="32" /> </a></p> </body> </html> Create an image map <html> <body> <p>Click on the sun or on one of the planets to watch it closer:</p> <img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm" /> <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm" /> <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm" /> </map> </body> </html> Click on the sun or on one of the planets to watch it closer: HTML Tables <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> Row 1, Cell 1 Row 1, Cell 1 Row 1, Cell 1 Row 1, Cell 1 Table Border - Example - 01 <html> <body> <h4>With a normal border:</h4> <table border="1"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> <h4>With a thick border:</h4> <table border="8"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> With a normal border: First Row Second Row With a thick border: First Row Second Row With a very thick border: First Row Second Row Tables - Example1 - 02 <html> <body> <p> Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. </p> <h4>One column:</h4> <table border="1"> <tr> <td>100</td> </tr> </table> <h4>One row and three columns:</h4> <table border="1"> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> </table> Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. One column: 100 One row and three columns: 100 200 300 Two rows and three columns: 100 200 300 400 500 600 HTML Table Headers <table border="1"> <tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> Header 1 Header 2 Row 1, Cell 1 Row 1, Cell 1 Row 1, Cell 1 Row 1, Cell 1 Apples 44% Bananas 23% Oranges 13% Other 10% Tables without border <html> <body> <h4>This table has no borders:</h4> <table> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> <tr> <td>400</td> <td>500</td> <td>600</td> </tr> </table> <h4>And this table has no borders:</h4> <table border="0"> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> <tr> <td>400</td> <td>500</td> <td>600</td> </tr> </table> </body> </html> This table has no borders: 100 200 300 400 500 600 And this table has no borders: 100 200 300 400 500 600 Table headers <html> <body> <h4>Table headers:</h4> <table border="1"> <tr> <th>Name</th> <th>Telephone</th> <th>Telephone</th> </tr> <tr> <td>Bill Gates</td> <td>555 77 854</td> <td>555 77 855</td> </tr> </table> <h4>Vertical headers:</h4> <table border="1"> <tr> <th>First Name:</th> <td>Bill Gates</td> </tr> <tr> <th>Telephone:</th> <td>555 77 854</td> </tr> <tr> <th>Telephone:</th> <td>555 77 855</td> </tr> </table> </body> </html> Table headers: Name Telephone Telephone Bill Gates 555 77 854 555 77 855 Vertical headers: First Name: Bill Gates Telephone: 555 77 854 Telephone: 555 77 855 Table with a Caption <html> <body> <table border="1"> <caption>Monthly savings</caption> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$50</td> </tr> </table> </body> </html> Month Savings Month Savings January $100 February $50 [/SIZE] [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom