Attributes of HTML

The title Attribute

The heading name of the page is title and coded in <title> </title>

Example
<html>
 <head>
  <title>Home page</title>
 </head>
 <body>


 </body>
</html>

The href Attribute
 
To link the two pages use the href attribute in <a href=></a>

Example
<html>
 <head>
  <title>Home page</title>
 </head>
 <body>
<a href="jewellery.online.html">Home</a>

 </body>
</html>

Size Attribute
Images in HTML are defined with the <img> tag.
The filename of the source src, and the size of the image are defihe with width and height

Example

<html>
 <head>
  <title>Home page</title>
 </head>
 <body>

 <img src="image.jpg" width="200" height="200">

 </body>
</html>

No comments:

Post a Comment