Professional Documents
Culture Documents
To Embed One External File Into Web Page It Is A Self-Closing Tag
To Embed One External File Into Web Page It Is A Self-Closing Tag
To Embed One External File Into Web Page It Is A Self-Closing Tag
<html>
<head>
</head>
<body>
</body>
</html>
sections:
1. head-for technical information about web page
2. body-for information visible to users
Head section:
It consists of five tags:
1.meta
2.Title
3.style
4.links
5.script
Meta tags:
purpose: Search Engine Optimization(SEO)
e.g :
<meta contents=keyword
Contents=description>
Des:
To search the contents in accordance with keywords
title:
<title> the contents </title>
style:
cascade style sheets
links:
syntax:
<link/>
script:
java script-client side scripting language.
Body section:
Text
Images
Video
Icon
Search box
Links
Button
Login
Calendar , etc
Text
<body> text
</body>
Paragraph:
syntax:
<p align= center, right, left >
Text
</p>
Font:
<font face= arial, times new roman size=1,2..,7>
</font>
Syntax:
<p> text
<u> underlined text </u>
<b> bold text </b>
<i> italics text </i>
break </br>
</p>
e.g 1.1
<p align=left >
Text appear in left</p>
<p align=right>
Text appear in right</p>
<p align=center >
Text appear in center </p>
Division tags
Division tag:
To separate one line of sentence from another.
It acts like a break tag(</br)
Attributes :
1. Align-centre, right, left
2. Style-red, green, blue, pink etc
Span tag:
There is no separation between lines
Attributes:
Style-to set color of the text
e.g
<div align=center style="color:red"> the division
</div>
<span style="color:green"> the span
</span>
Embass tag:
It displays the text in italics
<em>similar to i tag</em>
Strong tag:
It displays the text in bold format
Blink tag:
To appear the text in blinking format
<blink> blink</blink>
Insert Tag:
To insert the text, it appears in underlined format
<ins> ad</ins>
Delete tag:
To delete the text,it works like strike tag
<del> a</del>
e.g
<sub> 2</sub>
<sup>10</sup>
Typewriter tag:
To display the text in typewriter format
<tt>typewriter text</tt>
Pre tag:
To represents the last text of the html.
It is placed after the closing of the html tag
e.g
</html>
<font face=arial color=green>
<pre>text appear at bottom of page</pre>
</face>
Marquee tag:
It appear text in scrolling manner depends on given direction.
Attribute
Direction- up, down, left, right
<marquee direction=right>
upcoming events</marquee>
Frame sets:
To divide the webpage into rows and columns
It doesn’t contain body section
Attributes:
1. Src-name of the html to be embed
2. Name-order of the html to be appear
eg
<html>
<head>
<title>my framset</title>
</head>
<frameset cols=40%,80%>
<frame src=f1.html name=1>
<frame src=home.html name=2>
</frameset>
</html>
Images
To embed an image use tag
<img src=chennai_central_.jpg >
Img tags
Attributes
1. Alt-display the alternate text instead of images if the image is not avilable
2. Width-pixels
3. Height-pixels
Usemap
To link to another page
It consists of
area
Map name
Href
e.g
<img src=chennai_central_.jpg usemap=#na>
<map name=na >
<area shape=rectangle coords=50,50,100,100>
Area shape:
Circle-it consists of 3 values for cords
Rectangle-four values for coords
e.g
Href: to link to specified web by clicking the coords area in image specified
<href=http://www.google.com/>
Note:
Ensure the image file and html file are placed at same folder to avoid link problems