Skip to main content

Posts

Showing posts from February, 2015

Lists in HTML - Definition List

Definition lists is used to define the term and with  its description. It starts with the <DL> and endswith the </DL> tag The data term is defined inside the <DT> and </DT> tag. The data description is defined inside the tag <DD>and  </DD>. It has no attributes. Tags of Definition List <DL></DL> <DT></DT> <DD></DD> Example  <html> <head> <title> definition list </title> </head> <body> <dl> <dt>Word</dt> <dd> word is a word processor</dd> <dt>excel</dt> <dd> Excel is a spread sheet</dd> </dl> </body> </html> This will produce the following output Menu List It is used for creating menu list. It is created with the help of   <menu></menu> and <li></li> . Example <html> <head> <title> menu list </title

How to Add Image in HTML Website

In this tutorial, we are going to show you how to add an image in HTML website. <img> tag is used to display image in the document. It has no ending tag. It is an empty tag.The attribute of <img> tag is as follows. Attributes of <img> tag Attributes Value Description Src Path. The path of the image. Width Value in pixels or %. Sets the width of the image. Height Value in pixels or %. Sets the height of the image. Alt Text. To display the alternate text. Hspace Value in pixels. To set the horizontal spacing in pixels or percentage. Vspace Value in pixels. To set the vertical spacing in pixels or percentage. Align Left Right Top Middle Bottom Absbottom   (absolute bottom). To set the alignment of the image. Border Value in pixels or percentage. Specifies the width of the images border.