Professional Documents
Culture Documents
WP Lab Activity1
WP Lab Activity1
Introduction:
1. HTML has lax syntax which is much easier to write, whereas XHTML requires a
level of discipline which most of us naturally resist.
2. HTML documents are widely supported by various browsers whereas some older
browsers have problems with some part of XHTML.
3. HTML has a few syntactic rules, whereas XHTML has strict syntactic rules that
impose a consistent structure on all XHTML documents.
4. XHTML has good quality and consistency in electrical wiring, while HTML has few
syntactic rules and they don’t enforce the rules.
5. XHTML is case-sensitive, HTML is not. All tags and attributes must be lowercase in
XHTML.
HTML documents can be converted into XHTML documents using software tools like tidy.
Tools for creating XHTML documents are XHTML editors and WISIWYG[WHAT-YOU-
SEE-IS-WHAT-YOU-GET].
DISADVANTAGES:-
At present, there are hardly any browsers that offer benefits when receiving and
processing XHTML documents. The most frequently used browser (Microsoft
Internet Explorer) does not even support XHTML.
XHTML SYNTAX:-
The following general syntax rules will help you use XHTML:
1. All tags begin with< and end with >. The tag name is given immediately following
the leading <.Any attribute is given following the tag-name in the form:
<tag attribute1=”value” attribute2=”value”…>
2. Tag and attribute names are given in lower case. They are of the form:
attribute_name=”value” where the value is case sensitive.
3. Unrecognized tags and attributes are ignored by browsers.
4. Most elements include opening and closing tags.
5. Elements must be well-informed.
6. Attributes can be required or optional and can be given in any order.
7. Extra white spaces and line breaks are allowed between the tag name and attributes
and around the +sign inside an attribute.
8. The block element may contain only block-level HTML element.
CORE ATTRIBUTES:-
The following are the core attributes of XHTML:
Accessibility to screen readers and other browsers for the visually impaired
Becoming the language of choice for browsers on cell phones and mobile devices
Compatible with programs written in XML (eXtensible Markup Language)
More “Future-Friendly” with the emerging advancements in internet technology
Web-based forms with enhanced interactivity and features
XHTML Tags:
body {
height: 100%;
margin-bottom: 30px;
}
#fixedheader {
position:relative;
top:0px;
left:0px;
width:100%;
height:30px;
color:red;
background:wheat;
padding:10px;
text-align:center;
font-size:34pt;
}
#fixedfooter {
position:absolute;
width:100%;
left:0px;
right:0px;
bottom:0px;
height:30px;
color:red;
background:wheat;
padding:10px;
text-align:center;
font-size:15pt;
}
#middle
{width: 150px;
height:150px;
background:yellow;
position:relative;
float:left;
}
#upleft {
width:200px;
position:relative;
height: 200px;
background:blue; float:right;
}
#upleft1 {
width:270px;
position:absolute;
height: 10px;
float:center;
}
#upright {
width:450px;
position:relative;
height:270px;
background:orange;
float:left;
}
.sp_gr {font-size: 25pt; font-family: Verdana; color: green}
body
h1{font-size:30pt;color:violet;background-color:pink;}
h2{font-size:20pt;color:red;}
h3{font-size:15pt;color:green;}
.engg{color:#135790;font-style:italic;font-family:'Times New Roman';}
.desc{color:orange;font-size:25pt; font-style:bold;}
img{float:left}
.spred{font-size:45pt; font-family:arial;color:red;}
</style>
</head>
<body>
<h1>Department of CSE</h1>
<br/><h2>Mission</h2>
<h3><b>Mission:</b>
The main aim of the department is to impart basic as well as latest <br>
and advanced knowledege of Computer Science to the students so as to <br>
prepare them to face with ease any tougher assignments
<br>they might face in future, be it in higher studies or in jobs.</h3>
<p>
<img src="csed.jpg" width="500" height="100"/></p>
<p class="desc"><b>Overview </b><br>
The department was started in 1991 with an intake of 30 students, <br>which has increased
to 90 students presently with 10% additional Lateral entry admission in II year.
<br> The college has a Computer Center that is one of the best in twin cities.<br>
The centre has fully air-conditioned floor area of 6000sq .ft.
<br> and most modern hardware and software facilities.
<br>It consists of 5 IBM Servers, 110 Lenovo i3 and i5 machines arranged in three
laboratories along with the basic facilities.</p>
<h4 class="engg">Our Engineers more demand in india and abroad </h4>
<p class="engg"> best Engineering Education in Hyderabad</p>
<h1> I conclude that <span class="spred">CSE department </span>Best for Engineer.</h1>
</body>
</html>
File name as dcet.html
<html>
<body>
<h1>About DCET</h1>
<p>Welcome
Deccan College of Engineering & Technology has been pioneering in excellent education
since 1984. DCET is one of the leading minority education provider in the entire
country.</p>
</body>
</html>
<html>
<head>
<style type="text/css">
body
h1{font-size:30pt;color:violet;background-color:pink;}
h2{font-size:20pt;color:red;}
h3{font-size:15pt;color:green;}
.desc{color:orange;font-size:25pt; font-style:bold;}
img{float:left}
.spred{font-size:45pt; font-family:arial;color:red;}
</style>
</head>
<body>
<h1>Department of ECE</h1>
<br/><h2>Mission</h2>
<h3>
<br>The department has well qualified and highly experienced faculty members helping
<br>the students learn & gain knowledge. The state-of- the art equipment in the laboratories
further helps students in understanding the practical aspects of the course.</h3>
<p>
<h3><b>Laboratories: </b><br>
</body>
</html>
Output of ecedept.html
File name as itdept.html
<html>
<head>
<style type="text/css">
body
h1{font-size:30pt;color:violet;background-color:pink;}
h2{font-size:20pt;color:red;}
h3{font-size:15pt;color:green;}
.desc{color:orange;font-size:25pt; font-style:bold;}
img{float:left}
.spred{font-size:45pt; font-family:arial;color:red;}
</style>
</head>
<body>
<h1>Department of IT</h1>
<br/><h2>Mission</h2>
<h3><b>Mission:</b>
The main aim of the department is to impart basic as well as latest <br>
<p>
The department was started in 2000 with an intake of 60 students, <br>which has additional
Lateral entry admission in II year.
<br> The college has a Computer Center that is one of the best in twin cities.<br>
<br>It consists of 5 IBM Servers, 110 Lenovo i3 and i5 machines arranged in three
laboratories along with the basic facilities.</p>
Output of itdept.html
<html>
<frame src="index.html">
</frameset>
</html>
Output of frames.html
File name as index.html
<html>
<body>
<ul>
</ul>
</body>
</html>
Output of index.html
File name as csed.jpg