HTML Tour
HTML Tour
com">link</a> to other
<a>
internet location, or file.
ADDRESS tags are used to identify the author's contact information for a
<address>
section or a document.
<b> BOLD tag is specifying <b>bold section</b> within the text document.
<basefont> BASEFONT tags defines changes of all text appearance on the web page.
BDO tag is specifying the direction of text display by overwriting the default
<bdo>
value from Left to Right. <bdo dir="rtl">Right to Left</bdo>
<html>
<head>
<bgsound src="JingleBells.wav" loop="3">
<bgsound> </head>
<body>
</body>
</html>
Demo • Example
<big> BIG tag makes the <big>text larger</big> then the rest of the text.
BLOCKQUOTE tags
<blockquote
<blockquote>separate a section</blockquote>
>
of text from the surrounding text.
<html>
<head>
</head>
<body> <body>
Body tags identify the content of a web page.
</body>
</html>
Line Break tag is specifying<br>
<br>
a new line
<table>
<caption>CAPTION tag adds a caption to a table.</caption>
<tr>
<caption> <td>
</td>
</tr>
</table>
COL tags are used to define column properties for table columns.
<table>
<colgroup span="2">
<col width="60" align="left"></col>
<col width="80" align="center"></col>
<col>
</colgroup>
<tr>
<td>1st Column</td>
<td>2nd Column</td>
</tr>
</table>
<table>
<colgroup span="2">
<col width="60" align="left"></col>
<col width="80" align="center"></col>
<colgroup>
</colgroup>
<tr>
<td>1st Column</td>
<td>2nd Column</td>
</tr>
</table>
<dl>
<dt>NASA</dt>
<dd>
<dd>National Aeronautics and Space Administration</dd>
<dt>MBA</dt>
<dd>Master of Business Administration</dd>
</dl>
<dl>
<dt>CSU</dt>
<dl>
<dd>California State University</dd>
<dt>UN</dt>
<dd>United Nations</dd>
</dl>
<div>
<div> <h1>Home Pets</h1>
<p>Cats</p>
<p>Dogs</p>
</div>
<dl>
<dt>HTML</dt>
<dt>
<dd>HyperText Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets</dd>
</dl>
Demo • Example
eMail:
Name:
Send
<html>
<head>
<title>Frame Tags in Action</title>
</head>
<noframes>
<body>
<h1>Sorry, your browser doesn't support this feature!</h1>
<frame>
</body>
</noframes>
<frameset cols="35%, 65%">
<frame src ="/htmlcodes/left-frame.html" />
<frame src ="/htmlcodes/right-frame.html" />
</frameset>
</html>
Demo • Example
<html>
<frameset cols="45%, *">
<frame src ="/htmlcodes/left-frame.html" />
<frameset>
<frame src ="/htmlcodes/right-frame.html" />
</frameset>
</html>
Demo • Example
<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
Head tags define general information about the document, page title, meta-
tags, scripts and links to follow, and other commands to browsers.
<html>
<head>
<title>HTML Tags - Head Tag</title>
<head> <meta name="keywords" content="html tags, head tag" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="javaexample.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
<hr>
HTML tags contain HTML elements, and give a command to browsers to read the
document as an HTML document.
<html>
<html> <head>
</head>
<body>
</body>
</html>
iFrame tag creates an inline frame that contains another web page in it.
<iframe>
<form action="contact.html" method="post">
Your Email:
<input type="text" name="visitor-email" maxlength="80"
value="" /><br />
Your Name:
<input type="text" name="visitor-name" maxlength="80"
value="" /><br />
<input type="radio" name="Level" value="Web Designer" />Web
Designer<br />
<input type="radio" name="Level" value="Web
Developer" checked="checked" />Web Developer<br />
<input type="checkbox" name="Computer"
value="Windows" />Windows<br />
<input type="checkbox" name="Computer"
value="Mac" />Mac<br />
<input type="submit" value="Send" />
</form>
eMail:
Name:
Web Designer
Web Developer
Windows
Mac
Send
USA
UK
<legend>Questionnaire</legend>
<p>Where do you live?</p>
<form action="">
<input type="radio" name="country" id="usa" />
<label for="usa">USA</label><br />
<input type="radio" name="country" id="canada" />
<label for="canada">Canada</label>
<legend> </form>
Questionnaire
USA
Canada
<ol>
<li>HTML</li>
<li>PHP</li>
<li>JavaScript</li>
</ol>
<ul>
<li>HTML</li>
<li>PHP</li>
<li>JavaScript</li>
<li> </ul>
1. HTML
2. PHP
3. JavaScript
HTML
PHP
JavaScript
<link> LINK tag defines a link to an external document, such as External Style Sheets.
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<menu>
<li>Google</li>
<li>Yahoo</li>
<li>MSN</li>
<menu>
</menu>
Google
Yahoo
MSN
META tags are declaring information for the search engine robots and crawlers.
<html>
<head>
<meta name="description" content="Page description goes here.">
<meta>
<meta name="keywords" content="meta tags, html tags, meta">
</head>
<body>
</body>
</html>
NOFRAME tag is specifying an alternate web page layout for browsers that don't
support frames.
<html>
<head>
<title>Frame Tags in Action</title>
</head>
<noframes>
<body>
<noframe> <h1>Sorry, your browser doesn't support this feature!</h1>
</body>
</noframes>
<frameset cols="35%, 65%">
<frame src ="/htmlcodes/left-frame.html" />
<frame src ="/htmlcodes/right-frame.html" />
</frameset>
</html>
Demo • Example
<noscript> NOSCRIPT tag is specifying a "NOSCRIPT" version page layout for browsers that
don't support "SCRIPT" version. NOSCRIP tags are used in conjunction with the
JavaScript or VBScript elements.
<script type="text/javascript" language="javascript">
document.write("We are here to learn HTML");
</script>
<noscript>
Sorry, your browser doesn't support JavaScript, VBScript.
</noscript>
<select>
<optgroup label="Fruits">
<option value ="banana">Banana</option>
<option value ="pineapple">Pineapple</option>
<optgroup </optgroup>
> <optgroup label="Vegetables">
<option value ="tomato">Tomato</option>
<option value ="potato">Potato</option>
</optgroup>
</select>
OPTION tag creates a drop-down menu. OPTION tag works only in conjunction
with a SELECT tag.
<select>
<option value ="beginner" selected="selected">Beginner</option>
<option> <option value ="intermediate">Intermediate</option>
<option value ="advanced">Advanced</option>
</select>
Beginner
<ol>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ol>
<ol>
1. Red
2. Green
3. Blue
PRE tag is specifing a preformatted text. This tag does,t let the browsers to
eliminate "white spaces" in the text.
<pre>
City London Cool
City Paris Awesome
City New York Great
</pre>
<pre>
EXAMPLE
<S> tag produces a strike throughout a text. <S> tag is depreciated and is not
supported in XHTML 1.0 Strict DTD, therefore it's recommended to use DEL tag
<s> instead.
SCRIPT tags define scripts within a web page and let the web browsers know
that it's not an HTML section. You can place a <SCRIPT> tag anywhere within
HTML, but the best practice is to place it between the <HEAD></HEAD> tags.
<html>
<head>
<script src="javascript.js" type="text/javascript"></script>
<script>
</head>
<body>
<script type="text/javascript">
document.write("This is a script tag placement tutorial.")
</script>
</body>
</html>
<select>
<option value ="planes" selected="selected">Planes</option>
<option value ="trains">Trains</option>
<option value ="automobiles">Automobiles</option>
</select>
Planes
<div>
<span>
<p>Cats and Dogs <span style="color:blue;">are our
friends.</span></p>
</div>
STRIKE tag creates a strike through words or text. Strike tag is depreciated and
is not supported in XHTML 1.0 Strict DTD, therefore it's recommended to use
<strike> DEL tag instead.
<strike>striking through</strike>
<strong> <div>
<p>Weightlifters are <strong>strong people.</strong></p>
</div>
STYLE tag specifies a link and location to a style sheet, and gives a command to
browsers regarding to a layout for a web page. Please find; First bold line is an
External Style, and the next bold lines are for the Internal Style web page
presentation.
<html>
<head>
<title>HTML Tags - Head Tag</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<style>
<style type="text/css">
h1{text-align: center; font-style: italic}
p{color:#ff0000}
</style>
</head>
<body>
</body>
</html>
<table>
<tr>
<td>
<td>First Data Cell</td>
<td>Second Data Cell</td>
</tr>
</table>
<table>
<tr>
<th colspan="2">My Shopping List</th>
<th> </tr>
<tr>
<td>Apples</td>
<td>Pears</td>
</tr>
</table>
<table>
<tr>
<tr>
<td>Data Cell 1</td>
<td>Data Cell 2</td>
</tr>
</table>
<table>
<thead>
<tr>
<td colspan="2">>Header - Complete List of Basic HTML Tags</td>
</tr>
</thead>
<tbody>
<tr>
<td>Tags</td>
<td>Attributes</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">>Footer - Created by Fillster.com</td>
</tr>
</tfoot>
</table>
<table>
<thead>
<tr>
<td colspan="2">>Header - HTML Tags List</td>
</tr>
</thead>
<tbody>
<tr>
<tfoot>
<td>HTML Tags</td>
<td>HTML Attributes</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">>Footer - Copyright © Fillster.com</td>
</tr>
</tfoot>
</table>
<table>
<thead>
<tr>
<td colspan="2">>Header text place here.</td>
</tr>
</thead>
<tbody>
<tr>
<td>Element - 1</td>
<td>Element - 2</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">>Footer notes put here.</td>
</tr>
</tfoot>
</table>
<html>
<head>
<title> <title>Brief description of the web page.</title>
</head>
<body>
</body>
</html>
<ul>
<li>Code</li>
<li>Script</li>
<li>Tag</li>
</ul>
<ul>
Code
Script
Tag