Professional Documents
Culture Documents
SK - PUJITHA, Asst - Prof, Dept of CSE, VLITS
SK - PUJITHA, Asst - Prof, Dept of CSE, VLITS
HTML is the standard markup language for creating Web
pages.
HTML stands for Hyper Text Markup Language.
HTML describes the structure of Web pages using
markup.
HTML elements are the building blocks of HTML pages.
web page.
STRUCTURE OF HTML
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
Let us see HTML program that displays simple text message on the output screen i.e
window.
<HTML>
<HEAD>
<TITLE> HEADER SECTION
first program
</HTML>
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
BASIC TEXT MARK UP
An HTML element usually consists of a start tag and end tag, with the content
inserted in between .
Example1.html
Welcome <br> to<br> html
OUTPUT:
Example2.html
Vignan’s Lara Institute of Technology and Science
<hr>Department of Computer Science & Engineering
OUTPUT:
Example1.html
(A + B)<sup>2 </sup>
OUTPUT:
Example1.html
H<sub> 2</sub> O
OUTPUT:
Example1.html
Welcome
To
HTML
OUTPUT:
Welcome to HTML
Reason: The browser removes any extra lines or extra spaces from the program while
displaying the output on the window.
Example1.html
Welcome to html.<p>HTML stands for Hyper Text Markup Language. It
is an interpreted language. It was developed by tim berners-lee. It was
first introduced in the year 1991. It is maintained by World Wide Web
Consortium(W3C).</p>The latest version of HTML is HTML5
introduced in the year 2014.
OUTPUT:
The possible values for align attribute are left, right and center.
Example1.html
<p align=“right”>Welcome to html</p>.
OUTPUT:
Example1.html
<p align=“center”>Welcome to html</p>.
OUTPUT:
Example1.html
<h1>welcome to html</h1>
<h2>welcome to html</h2>
<h3>welcome to html</h3>
<h4>welcome to html</h4>
<h5>welcome to html</h5>
<h6>welcome to html</h6>
OUTPUT:
BASIC TEXT MARK UP
Example1.html
<strike>Department of Computer Science & Engineering </strike>
OUTPUT:
Example1.html
<font color=red> welcome to html </font>
OUTPUT:
Example1.html
<font color=red size=7> welcome to html </font>
OUTPUT:
Behavior=scroll, alternate
Example1.html
OUTPUT:
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
BASIC TEXT MARK UP
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
desert
The above code works well for Internet Explorer and Google chrome,
but doesn’t work well for Mozilla Firefox.
<A> :
It is called anchor tag.
It defines a hyperlink, which is used to link from one page
to another page.
<A> :
The important attributes of <a> tag are:
Unordered List:
</UL>
</BODY>
</HTML>
LISTS
<HTML>
<HEAD>
<TITLE> Unordered List </TITLE> Unordered List
oTV9
</HEAD>
oETV2
<BODY> oABN
<UL type=“circle” > oHMTV
</HTML>
ORDERED LIST
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
Ordered List
<BODY>
<OL type=“1” start=“4” > 4. TV9
5. ETV2
6. ABN
<LI> TV9 </LI> 7. HMTV
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
Ordered List
<OL type=“i” >
i. TV9
<LI> TV9 </LI> ii. ETV2
iii. ABN
iv. HMTV
<LI> ETV2 </LI>
<LI> ABN </LI>
<LI> HMTV </LI>
</OL>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
<OL type=“i” start=“4” > Ordered List
iv. TV9
<LI> TV9 </LI> v. ETV2
vi. ABN
<LI> ETV2 </LI> vii. HMTV
<LI> ABN </LI>
<LI> HMTV </LI>
</OL>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
<OL type=“I” > Ordered List
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
Ordered List
<OL type=“I” start=“4” >
IV. TV9
<LI> TV9 </LI> V. ETV2
VI. ABN
<LI> ETV2 </LI> VII. HMTV
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
<OL type=“a” > Ordered List
a. TV9
<LI> TV9 </LI> b. ETV2
c. ABN
<LI> ETV2 </LI> d. HMTV
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
<OL type=“a” start=“4” >
Ordered List
<LI> TV9 </LI>
d. TV9
e. ETV2
<LI> ETV2 </LI> f. ABN
<LI> ABN </LI> g. HMTV
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
Ordered List
<OL type=“A” >
A. TV9
<LI> TV9 </LI> B. ETV2
C. ABN
<LI> ETV2 </LI> D. HMTV
</HTML>
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY> Ordered List
<OL type=“A” start=“4” >
D. TV9
E. ETV2
<LI> TV9 </LI> F. ABN
G. HMTV
<LI> ETV2 </LI>
<LI> ABN </LI>
<LI> HMTV </LI>
</OL>
</BODY>
</HTML>
DEFINITION LIST
<DL>
<DT> HTML </DT>
<DD>Hyper Text Markup Language</DD>
2 15FE1A0502 85
<tr>
<td>
TABLES
1 15FE1A0501 75
2 15FE1A0502 85
1 15FE1A0501 75
2 15FE1A0502 85
2 15FE1A0502 85
TABLES
(iv) bgcolor:
If you want to change the background color for entire table, use the bgcolor attribute in the
<table> tag.
To specify a color for bgcolor attribute, you can use
(i) RGB color codes
(ii) Color names.
You can find color names and color codes from the below link:
https://www.w3schools.com/colors/colors_names.asp
By default, the table background color is same as the background color of the page.
TABLES
REALITY:
A table is a collection of
data in rows and columns S.NO ROLL NO ATTENDANCE
in the form of cells.
1 15FE1A0501 75
2 15FE1A0502 85
Cell spacing:
It is used to specify the space between the borders of cells.
It controls the space between table cells. Although there is no official
default, browsers usually use a default of 2.
Example: Cell spacing=50
TABLES
<tr>
<td> 2 </td>
<td> 15FE1A0502 </td>
<td> 85 </td>
</tr>
</table>
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
SK.PUJITHA ,Asst . Prof ,Dept of CSE,VLITS
SUMMARY