Adding an Image-Html

March 12, 2009 at 9:11 am | In Ultimate Concepts-Html | Leave a Comment
Tags: ,

Tag Name- <Image>

Description- It is basically used to add up an image into your web page. It supports many image file extensions like-JPEG(Joint Photographic Experts Group); PNG(Portable Network Graphic); GIF(General Image Format) etc. While the attributes which come along with this tag are as follows:-

  • Src- i.e path of the image file on your computer.(value=”c:\\documents and settings\my documents\h.gif”)
  • Width- i.e the width of the image.(value=”any integer value”)
  • Height- i.e the height of the image.(value=”any integer value”)
  • Border- i.e if you want the boder around your image.(value=”any integer value”)
  • Alt- i.e the alternate text which you want to be displayed in case an error occured while image loading.(value=”abc”)
  • Align- i.e to align any text which you have placed along with the image.(value=”top/bottom/middle/left/right”)
  • Vspace- i.e to insert space at top & bottom of the image.(value=”any integer value”)
  • Hspace- i.r to insert space at left and right of the image.(value=”any integer value”)

Ultimate Example

<html><head><title>IMAGE TAG</title></head><body><image src=”c://the path of the image in ur pc.file format(like gif etc.)” height=”70″ width=”200″ border=”3″ alt=”this is ultimate change”></body></html>

Frames-Html

March 10, 2009 at 6:54 am | In Ultimate Concepts-Html | Leave a Comment
Tags: , ,

You might have seen most of the sites completely enriched with the frames. So today i’m going to discuss the same that how can you enrich your site with the frames. So here i go:-

Tag Name-<frameset>

Descripton-It basically allow us to add up frames into a html enriched web page. The attributes for it are-

  • Rows- i.e if you want to split the webpage into the rows.(mention the percentage in which you want to split the webpage into the rows value=”50%,50″ or “20%,80%” etc.)
  • Cols- i.e if you want to split the webpage into the columns.(mention the percentage in which you want to split the webpage into the columns value=”50%,50″ or “30%,70%” etc.)
  • Frame Border- i.e to set the size of the frame border.(value=”5″)
  • Bordercolor- i.e to set a particular colour for the border.(value=”Red”)
  • Scrollbar- i.e to decide the facility of scrollbar.(value=”Yes/No/Auto which is default”)

Tag Name-<Frame>

Description- Now after specifying the frameset tag you have to use the frame tag which basically allow you to tell the browser that which webpage to placed in which frame. It’s attributes are-

  • Name- i.e to set a particular name for the frame.(value=”abc”)
  • Src- i.e to specify the source file which you want to load in a particular frame.(value=”main.html”)

Ultimate Example

  1. <html><head><title>Frameset Example</title></head><frameset rows=”20%,80%”><frame name=”above” src=”above.html”><frame name=”below” src=”below.html”></frameset></html>
  2. <html><head><title>Frameset Example</title></head><frameset cols=”20%,80%”><frame name=”left” src=”left.html”><frame name=”right” src=”right.html”></frameset></html>
  3. <html><head><title>Frameset Example</title></head><frameset cols=”50%,50%” rows=”50%,50%”><frame name=”left” src=”left.html”><frame name=”right” src=”right.html”><frame name=”above” src=”above.html”><frame name=”below” src=”below.html”></frameset></html>

Outputs

rows

cols

 

full

« Previous PageNext Page »

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.