1 Intro To HTML
1 Intro To HTML
The Basics
HTML
CERN is an European
Organization for Nuclear
Research at Geneva
Beginning of HTML
• HTML is an evolving standard (as new
technology/tools are added)
HTML 1 (Sir Tim Berners-Lee, 1989): very basic,
limited integration of multimedia
in 1993, Mosaic added many new features (e.g., integrated
images)
• <html>
• <head> Heading Section
• <title></title>
• </head>
• <body></body>
• </html> Body Section
HTML Tags
• Tag – an HTML code that tells the browser
HOW to display something
• Opening Tag <h3>
• Closing Tag </h3>
• Example : <b>This will be bold</b>
• Tags will not appear in browsers
• All open tags must have corresponding
closing tag.
Attributes
Attributes provide additional display
information about a tag
Attributes appear within the opening tag
brackets
Attribute values must be contained in quotes
You can have more than one attribute in a
tag
<html></html>
Creates an HTML document
<head></head>
Sets off the title and other
information that isn't displayed on
the Web page itself
<body></body>
Sets off the visible portion of the
document
Header Tags
<title></title>
Puts the name of the document in
the title bar
<body bgcolor=?>
Sets the background color, using name or
hex value
<body text=?>
Sets the text color, using name or hex value
<body background=url>
Specifies an image file to be used as
background
<body vlink=?>
Sets the color of followed links, using name
or hex value
<body alink=?>
Sets the color of links on click
Text Formatting Tags 1
<hl></hl>
Creates the largest header
<h6></h6>
Creates the smallest header
<b></b>
Creates bold text
<i></i>
Creates italic text
Text Formatting Tags 2
<strong></strong>
Emphasizes a word (with italic or bold)
<font size=“?”></font>
Sets size of font
<font color=“?”></font>
Sets font color, using name or hex value
<font face=“?”></font>
Set font style like Comic Sans MS
Paragraph Formatting Tags
<p></p>
Creates a new paragraph
<p align=?>
Aligns a paragraph to the left, right, or
center
<br>
Inserts a line break
<blockquote></blockquote>
Indents text from both sides
HTML Formatting
Ordered Lists –this is a numbered
list, starts with <ol> and ends with
</ol>, each new item in list requires
the <li> tag
<table>
Href
attribute Text
used to hyperlink
address the that
document to appears in
link to browser
Creating Relative Links
Where this link will
Anchor take you (page
Tag within website name
<a href=“nameofpage.html">Text to be
displayed</a>
Closing
href Anchor
attribute Tag Text
used to hyperlink
address the that
document appears in
to link to browser
Link Tag
Html Links :
<a href="http://www.gmail.com">Gmail</a>
</body>
</html>