Emba, HTML Presentation
Emba, HTML Presentation
(HTML)
HTML
HTML is the standard language that the Web uses for creating and recognizing documents.
HTML is a markup language that is used to create an HTML document. The instructions specify how a Web page should be displayed in a browser. Using HTML tags and elements, we can 1. control the appearance of the page and the content. 2. publish online documents and retrieve online information using the links inserted in the HTML document. 3. Create on-line forms. These forms can be used to collect information about the user, conduct transactions, and so on.
4. Insert objects audio-clips, video clips, ActiveX components, java applets in the HTML document.
HTML Tags
The HTML commands are called TAGS. The TAGS are used to control the content and appearance of the HTML document. The opening tag is a <> pair of brackets. This indicates the beginning of the HTML command. The closing tag is represented as </> to indicate the end of the HTML command. The HTML tag is used to mark the beginning and end of an HTML document. <HTML> </HTML> The tags are not case sensitive.
Example
<BOD Y>
<BODY>
Browsers treat the first space encountered inside an element as the end of an elements name and the beginning of its attributes.
EXAMPLE
<PRE>
UNIVERSITY OF DHAKA </PRE>
Elements should nest. Any element that starts within another element must also end within that element. EXAMPLE INCORRECT
<B><I>Not correct</B></I>
CORRECT
<B><I>Correct</I></B>
The <BODY>Element
The body of a document is defined by <BODY> and </BODY> tag. Only one <BODY>element can appear per document. Common attributes for the<BODY>element : TEXT for text color BGCOLOR for background color
<html> <body>
<h1 align="center">This is the center align example </h1> <h2 align=left> This is the left align example </h2> <p align=right> This is the right align example </p> </body> </html> Note: Align Not Use Single You Must Use (H1 / H2 / H3 / H4 / H5 / H6 Or P)
<html> <body> <font size=20 color=RED face=Arial> Department of Management Information Systems (MIS). </font> </body> </html> Or <html> <body> <font size=20 color=#0000ff face=Arial> Department of Management Information Systems (MIS). </font> </body> </html>
</html>
[note: image file and html file must be contain one folder] [ Picture must save gif / bmp / jpg format]
</html>
Note : Image / Picture format must be gif / jpg / bmp Image file and HTML file must be keep same folder.
</html>
For continue picture Start=mouseover loop=5
216 Cross Platform Colors This 216 cross platform web safe color palette was originally created to ensure that all computers would display all colors correctly when running a 256 color palette.
000000 003300
006600 009900 00CC00 00FF00 330000 333300
000033 003333
006633 009933 00CC33 00FF33 330033 333333
000066 003366
006666 009966 00CC66 00FF66 330066 333366
000099 003399
006699 009999 00CC99 00FF99 330099 333399
0000CC 0033CC
0066CC 0099CC 00CCCC 00FFCC 3300CC 3333CC
0000FF 0033FF
0066FF 0099FF 00CCFF 00FFFF 3300FF 3333FF
336600
339900 33CC00
336633
339933 33CC33
336666
339966 33CC66
336699
339999 33CC99
3366CC
3399CC 33CCCC
3366FF
3399FF 33CCFF
33FF00
660000 663300 666600 669900 66CC00 66FF00 990000 993300
33FF33
660033 663333 666633 669933 66CC33 66FF33 990033 993333
33FF66
660066 663366 666666 669966 66CC66 66FF66 990066 993366
33FF99
660099 663399 666699 669999 66CC99 66FF99 990099 993399
33FFCC
6600CC 6633CC 6666CC 6699CC 66CCCC 66FFCC 9900CC 9933CC
33FFFF
6600FF 6633FF 6666FF 6699FF 66CCFF 66FFFF 9900FF 9933FF
99FF00
CC0000 CC3300 CC6600 CC9900
99FF33
CC0033 CC3333 CC6633 CC9933
99FF66
CC0066 CC3366 CC6666 CC9966
99FF99
CC0099 CC3399 CC6699 CC9999
99FFCC
CC00CC CC33CC CC66CC CC99CC
99FFFF
CC00FF CC33FF CC66FF CC99FF
CCCC00
CCFF00 FF0000 FF3300 FF6600 FF9900 FFCC00 FFFF00
CCCC33
CCFF33 FF0033 FF3333 FF6633 FF9933 FFCC33 FFFF33
CCCC66
CCFF66 FF0066 FF3366 FF6666 FF9966 FFCC66 FFFF66
CCCC99
CCFF99 FF0099 FF3399 FF6699 FF9999 FFCC99 FFFF99
CCCCCC
CCFFCC FF00CC FF33CC FF66CC FF99CC FFCCCC FFFFCC
CCCCFF
CCFFFF FF00FF FF33FF FF66FF FF99FF FFCCFF FFFFFF
<html> <body> <pre> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. </pre> <pre>Note that your browser simply ignores your formatting!</pre> </body> </html>
</body>
</html>
CLICK HERE FOR EFFECT
TABLE
TABLE NO 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> </body> </html>
<html> <body>
Vertical headers
</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>
Without cellpadding
<html> <body> <h4>Without cellpadding:</h4> <table border="1"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> </body> </html>
With cellpadding
<html> <body> <h4>With cellpadding:</h4> <table border="1" cellpadding="10"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> </body> </html>
CELL SPAN
Cell that spans two columns
<html> <body>
<h4>Cell that spans two columns:</h4> <table border="1"> <tr> <th>Name</th> <th colspan="2">Telephone</th> </tr> <tr> <td>Bill Gates</td> <td>555 77 854</td> <td>555 77 855</td> </tr> </table>
</body> </html>
LIST
ORDER LIST <html> <body> <h4>An Ordered List:</h4> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> </body> </html>
UNORDERLIST TAGS
<html> <body> <h4>An Unordered List:</h4> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> </body> </html>
<html> <body> <h4>Letters list:</h4> <ol type="A"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol> <h4>Lowercase letters list:</h4> <ol type="a"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol> </body> </html>
DIFFERNENT LIST
DIFFERNENT LIST <html> <body> <h4>Roman numbers list:</h4> <ol type="I"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol>
<h4>Lowercase Roman numbers list:</h4> <ol type="i"> <li>Apples</li> <li>Bananas</li> <li>Lemons</li> <li>Oranges</li> </ol> </body> </html>
NESTED LIST <html> <body> <h4>A nested List:</h4> <ul> <li>Coffee</li> <li>Tea <ul> <li>Black tea</li> <li>Green tea <ul> <li>China</li> <li>Africa</li> </ul> </li> </ul> </li> <li>Milk</li> </ul> </body> </html>
<html> <body> <form> First name: <input type="text" > <br> Last name: <input type="text" > </form> </body> </html>
</body> </html>
Volvo
RADIO BUTTON
html> <body> <form> Male: <input type="radio" checked="checked" name="Sex" value="male">
<br>
Female: <input type="radio" name="Sex" value="female"> </form> </body> </html>
CHECK BOX
<html> <body> <form> I have a bike: <input type="checkbox" name="Bike"> <br> I have a car: <input type="checkbox" name="Car"> </form>
</body> </html>
NORMAL BUTTON <html> <body> <form> <input type="button" value="Hello world!"> </form> </body> </html>
HTML BASIC
HTML Basic Document <html> <head> <title>Document name goes here</title> </head> <body> Visible text goes here </body> </html> Heading Elements <h1>Largest Heading</h1> <h2> . . . </h2> <h3> . . . </h3> <h4> . . . </h4> <h5> . . . </h5> <h6>Smallest Heading</h6>
Text Elements
<p>This is a paragraph</p> <br> (line break) <hr> (horizontal rule) <pre>This text is preformatted</pre> Logical Styles <em>This text is emphasized</em> <strong>This text is strong</strong> <code>This is some computer code</code> Physical Styles <b>This text is bold</b> <i>This text is italic</i> <u>This text is Underline</u>
Links, Anchors, and Image Elements <a href="http://www.w3schools.com/">This is a Link</a> <a href="http://www.w3schools.com/"><img src="URL" alt="Alternate Text"></a> <a href="mailto:[email protected]">Send e-mail</a> A named anchor: <a name="tips">Useful Tips Section</a> <a href="#tips">Jump to the Useful Tips Section</a> Unordered list <ul> <li>First item</li> <li>Next item</li> </ul>
Ordered list <ol> <li>First item</li> <li>Next item</li> </ol> Definition list <dl> <dt>First term</dt> <dd>Definition</dd> <dt>Next term</dt> <dd>Definition</dd> </dl>
Tables
<table border="1">
<tr> <th>someheader</th> <th>someheader</th> </tr> <tr> <td>sometext</td> <td>sometext</td> </tr> </table>
Forms <form action="http://www.somewhere.com/somepage.asp" method="post/get"> <input type="text" name="lastname" value="Nixon" size="30" maxlength="50"> <input type="password"> <input type="checkbox" checked="checked"> <input type="radio" checked="checked"> <input type="submit"> <input type="reset"> <input type="hidden"> <select> <option>Apples <option selected>Bananas <option>Cherries </select> <textarea name="Comment" rows="60" cols="20"></textarea> </form>
Entities < is the same as < > is the same as > © is the same as Other Elements <!-- This is a comment --> <blockquote> Text quoted from some source. </blockquote> <address> Address 1<br> Address 2<br> City<br> </address>