web development
web development
details user name, user DOB, user email, user contact no, user address, gender.
CODE:-
<html>
<head>
<title>Registration Page</title>
</head>
<body>
<center>
<h3>REGISTRATION FORM<h3>
<form>
<textarea></textarea><br><br>
<input type="submit" value="Sign-up">
</fieldset>
</form>
</center>
</body>
</html>
OUTPUT:-
Question no 2:- Difference between XML and HTML.
XML HTML
• XML can preserve white spaces. • White spaces are not preserved in
HTML
Ans:-
LIST:- HTML lists allow web developers to group a set of related items in lists.
Ordered List
1. Ordered list start with <ol> tag and ends with </ol>.
2. All the items in this list are enclosed in <li> and </li> tags.
3. By default items in this list will get numbers as a markers.
4. We can change markers using attributes.
Unordered List
1. Unordered list start with <ul> tag and ends with </ul>.
2. All the items in this list are enclosed in <li> and </li> tags.
3. By default items in this list will get filled circle as a bullets.
4. We can change bullets using attributes.
Description List
1. HTML also supports description list.
2. It is a list of some phrase(term) and description of the phrase.
3. It has 3 tags
<dl> — For Creating list
<dt> — For Term
<dd> — For Description
Reversed Attribute :-
We can display list in reverse order or descending order for this we have to add “reversed” attribute.
(2). Table:-
An HTML table consists of one <table> element and one or more <tr>, <th>, and <td> elements.
We can create a table to display data in tabular form, using <table> element, with the
help of <tr> , <td>, and <th> elements.
Tag Description
<col> It’s used with <colgroup> element to specify column properties for each column.
Tags Definition
<caption> … </caption> Used to write a caption.
<table align= “center”> … <table> Used aligning table to center
<table border= “”> ... </table> Used to get border to table
<table colspan or rowspan= “”> … Used for rowspan or colspan in
</table> table
<table bgcolor= “”> ... </table> Used to get bgcolor to cell in table
<table cellpadding= “”> … </table> Used to get Cell Spacing in table
<table cellspacing= “”> … </table> Used to get Cell Padding in table