HTML element: Difference between revisions

Content deleted Content added
Reverting edit(s) by 185.127.127.77 (talk) to rev. 1274526764 by Curb Safe Charmer: Vandalism (RW 16.1)
Added content
Tags: Reverted Mobile edit Mobile web edit
Line 10:
 
An HTML document is composed of a [[tree structure|tree]] of simple HTML [[Node (computer science)|nodes]], such as text nodes, and HTML elements, which add [[semantics]] and formatting to parts of a document (e.g., make text bold, organize it into paragraphs, lists and tables, or embed [[hyperlink]]s and images). Each element can have [[HTML attribute]]s specified. Elements can also have content, including other elements and text.
 
Use in notepad
HTML TABLE TAG BORDER
 
<html>
 
<head>
 
<titles Creating Table </title>
 
<style type="text/css">
 
body (background-color:pink)
 
table, th, td {border:1px solid blue)
 
th(color black)
 
</style>
 
</head>
 
<body>
 
<table>
 
<caption style-color:red>EMPLOYEE</caption>
 
<tr>
 
<th>E.No.</th><th> Name of Employee</th> <th>Salary</th>
 
</tr>
 
<tr>
 
<td> 1</td><td>Ashima</td><td> 70000</td>
 
</tr>
 
<tr>
 
<td> 2</td><td>Prerna</td><td> 80000</td>
 
</tr>
 
<tr>
 
<td> 3</td><td>Kusum</td><td>68000</td>
 
</tr>
 
</table>
 
</body>
 
</html>
 
SYNTAX: border:value
Where value = Value for border with Value for style Value for color:)
 
==Concepts==