Professional Documents
Culture Documents
LANGUAGE (HTML)
By:
Vikram Yadav
Divanshu
Ashima Nag
Ankit Kumar
Notepad (Windows)
WordPad (Windows)
Simpletext (Macintosh)
Structure of an HTML
Document
<meta>
<script>
<head> Section:
<title> tag
c Files
c Files
HTML Basics
HTML
body
Hyperlink Tags
<a href="http://www.telerik.com/"
title="Telerik">Link to Telerik Web
Image
site</a>Tags
<img src="logo.gif" alt="logo" />
Text
formatting tags
<html>
<head>
<title>Simple Tags Demo</title>
</head>
<body>
<a href="http://www.telerik.com/" title=
"Telerik site">This is a link.</a>
<br />
<img src="logo.gif" alt="logo" />
<br />
<strong>Bold</strong> and <em>italic</em>
text.
</body>
</html>
Headings and
Paragraphs
Paragraph Tags
<p>This is my first paragraph</p>
<p>This is my second paragraph</p>
RealPlayer by RealNetworks
Provides live and on-demand streamed audio and
video content on the web. It is widely used and is
optimized for slow connections. RealPlayer can
provide various audio qualities up to CD quality
using ISDN and faster connections. Minimum
support for reasonable quality is 28.8 Kbps.
The <!DOCTYPE>
Declaration
Example:
<!DOCTYPE html PUBLIC
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd">
<input type="checkbox"
checked="checked" />
Using Scripts
Live Demo
<head> Section:
<style>
style-example.html
<head>
<style type="text/css">
p { font-size: 12pt; line-height: 12pt; }
p:first-letter { font-size: 200%; }
span { text-transform: uppercase; }
</style>
</head>
<body>
<p>Styles demo.<br />
<span>Test uppercase</span>.
</p>
</body>
</html>
Text Formatting
italicized
<u></u>
underlined
<sup></sup>
Samplesuperscript
<sub></sub>
Samplesubscript
<strong></strong>
strong
<em></em>
emphasized
Preformatted text
<pre></pre>
Text Formatting
Example
text-
Text
Formatting
Live Demo
including
erlinks
hyperlinks.html
<a href="form.html">Fill Our Form</a> <br />
<a href="../parent.html">Parent</a> <br />
<a href="stuff/cat.html">Catalog</a> <br />
<a href="http://www.devbg.org"
target="_blank">BASD</a> <br />
<a href="mailto:bugs@example.com?subject=Bug
Report">Please report bugs here (by e-mail
only)</a>
<br />
<a href="apply-now.html"><img src="apply-nowbutton.jpg /></a> <br />
<a href="../english/index.html">Switch to English
version</a> <br />
Hyperlinks Example
hyperlinks.html
<a href="form.html">Fill Our Form</a> <br />
<a href="../parent.html">Parent</a> <br />
<a href="stuff/cat.html">Catalog</a> <br />
<a href="http://www.devbg.org"
target="_blank">BASD</a> <br />
<a href="mailto:bugs@example.com?subject=Bug
Report">Please report bugs here (by e-mail
only)</a>
<br />
<a href="apply-now.html"><img src="apply-nowbutton.jpg /></a> <br />
<a href="../english/index.html">Switch to English
version</a> <br />
Hyperlinks
Live Demo
id="section1">Introduction</h2>
Section 1 follows here ...
id="section2">Some background</h2>
Section 2 follows here ...
id="section2.1">Project History</h3>
Section 2.1 follows here ...
id="section1">Introduction</h2>
Section 1 follows here ...
id="section2">Some background</h2>
Section 2 follows here ...
id="section2.1">Project History</h3>
Section 2.1 follows here ...
Miscellaneous Tags
<hr />: Draws a horizontal rule
(line):
<hr
size="5" width="70%" />
<center></center>: Deprecated!
<center>Hello World!</center>
<font></font>: Deprecated!
<font size="3" color="blue">Font3</font>
<font size="+4" color="blue">Font+4</font>
2. Orange
3. Grapefruit
a.
b.
A. Apple
B. Orange c.
C. Grapefruit
ii. Orange
iii. Grapefruit
Apple
Orange I. Apple
GrapefruitII. Orange
III. Grapefruit
Apple
Orange
Pear
o Apple
Apple
Orange
Orange
Pear
Pear
s Example
<ol type="1">
<li>Apple</li>
<li>Orange</li>
<li>Grapefruit</li>
</ol>
<ul type="disc">
<li>Apple</li>
<li>Orange</li>
<li>Grapefruit</li>
</ul>
<dl>
<dt>HTML</dt>
<dd>A markup lang</dd>
</dl>
lists.html
HTML Special
Characters
Live Demo
HTML Special
Characters
Symbol Name
HTML
Entity
Copyright Sign
Registered Trademark
Sign
Trademark Sign
©
™
Less Than
<
Greater Than
>
Ampersand
&
Non-breaking Space
Em Dash
—
Quotation Mark
"
Euro
€
British Pound
£
Japanese Yen
¥
®
Symbol
<
>
&
"
Special Characters
Example
<p>[>> Welcome
<<]</p>
special<p>►I have following cards:
chars.html
A♣, K♦ and 9♥.</p>
<p>►I prefer hard rock ♫
music ♫</p>
<p>© 2006 by Svetlin Nakov & his
team</p>
<p>Telerik Academy</p>
<div> Tag
<div> creates logical divisions
within a page
Block style element
Used with CSS
Example:
div-and<div
style="font-size:24px; color:red">DIV
span.html
example</div>
<span> Tag
Inline style element
Useful for modifying a specific
portion of text
span.html
<p>This one is <span style="color:red; fontweight:bold">only a test</span>.</p>
<p>This one is another <span style="fontsize:32px; font-weight:bold">TEST</span>.</p>
Questions ?
Thank
You