written 8.3 years ago by | • modified 8.3 years ago |
Explain following HTML tags
i)
<form>
ii)
<table>
iii)
<iframe>
iv)
<doctype>
Mumbai University > Information Technology > Sem 4 > Web Programming
Marks: 10M
Year: Dec 2014
written 8.3 years ago by | • modified 8.3 years ago |
<form>
<table>
<iframe>
<doctype>
Mumbai University > Information Technology > Sem 4 > Web Programming
Marks: 10M
Year: Dec 2014
written 8.3 years ago by |
a) <form>
<form>
tag is used to create HTML form for user inputFor example:
<form>
Name: <input type="text" name="studentname" required><br>
<input type="submit" value="Submit">
The above code creates a form with text box and button.
b) <table>
This tag consists of sub elements to define the structure of table.
<tr>
tag is used to define new row
<th>
tag is used to define table header
<td>
tag is used to define table data
<table>
tag has various attributes to represent a table in a better way like align, - For example
<table>
<tr>
<th>Subjects of IT Sem IV</th>
<td>Applied Mathematics</td>
<td>Web Programming</td>
<td>Automata Theory</td>
<td>Computer Organization and Architecture</td>
<td>Information Theory and Coding</td>
<td>Computer Networks</td>
</tr>
</table>
c) <iframe>
On the other hand, the "align" attribute was deprecated in HTML 4.01. Therefore, their use is no longer recommended.
Example:
<iframe src="https://kt280.com " frameborder="1" width="100%" height="200">
If you see this message, it means that your browser doesn't support frames or they are disabled. You can access the information shown in this frame here:
<a href=" https://kt280.com ">Engineering Solutions</a>
</iframe>
d) <doctype>
<doctype>
tag specifies the document type.There are 3 types of HTML DTDs and those along with their uses are:
HTML 1.0 Strict: This is used when we need a clean markup code.
HTML 1.0 Traditional: This is used when we want to use HTML features in existing documents
HTML 1.0 Frameset: This is used when we want frames in HTML document.
For example:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Traditional//EN”
“html://www.w3.org/TR/xhtml/DTD/xhtml.1dtd”>