Web Engineering - HTML
Web Engineering - HTML
HTML:
Title: in this tag the title of the website is written related to the content in the website it is important for
search engine optimization.
<a href=""></a>
Img: to show image on the webpage
<img src="">
Ul: unorder list of items
<ul>
ali nali kali
</ul>
Ol : order list of items
<ol>
<li>ali</li>
<li>ome</li>
</ol>
Div: is a container inside which we can create many others containers
<div>
<div></div>
</div>
Span: is use to wrap up the text or inline element to apply style, attributes.
Colspan: no of columns to be span colspan2 two cell span similarly for rowspan written in td tag table
data tag. <td colspan=”2”>
<span class="high">highlighted</span>
P: tag is use to write the para.
Syntax of table:
<table>
<tr>//table row
<th> table heading </th>
</tr>
<tr>
<td> table data</td>
<td> table data two td means two cells in one row </td>
</tr>
</table>
<input>, <label>
Input Have no closing tag. While label have closing tag. Use in forms.
<label for="username">username</label>
Field in above input tag there is type text which mean in this field only text is need.
Required in html: the give field must be fill before submitting the form.
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br><br>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" cols="50"
required></textarea><br><br>