HTML Layout - Useful Tips CREATED BY =JAY-AR SIMON SEBASTIAN

Start from the beginning
                                        

Jump to a specified section within a frame

Two frames. One of the frames has a source to a specified section in a file. The specified section is made with <a> in the "link.htm" file.

Jump to a specified section with frame navigation

Two frames. The navigation frame (content.htm) to the left contains a list of links with the second frame (link.htm) as a target. The second frame shows the linked document. One of the links in the navigation frame is linked to a specified section in the target file. The HTML code in the file "content.htm" looks like this: <a href ="link.htm" target ="showframe">Link without Anchor</a><br><a href ="link.htm#C10" target ="showframe">Link with Anchor</a>.

HTML Frame Tags TagDescription <frameset> Defines a set of frames <frame /> Defines a sub window (a frame) <noframes> Defines a noframe section for browsers that do not handle frames

<iframe></iframe>

The URL points to the location of the separate page.

Iframe - Set Height and Width

The height and width attributes are used to specify the height and width of the iframe.

The attribute values are specified in pixels by default, but they can also be in percent (like "80%").

Example <iframe></iframe>

Try it yourself »

Iframe - Remove the Border

The frameborder attribute specifies whether or not to display a border around the iframe.

Set the attribute value to "0" to remove the border:

Example <iframe></iframe>

Try it yourself »

Use iframe as a Target for a Link

An iframe can be used as the target frame for a link.

The target attribute of a link must refer to the name attribute of the iframe:

Example <iframe></iframe>

<p><a>W3Schools.com</a></p>

Try it yourself »

HTML iframe Tag TagDescription <iframe> Defines an inline sub window (frame)

Color Values

HTML colors are defined using a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB).

The lowest value that can be given to one of the light sources is 0 (in HEX: 00). The highest value is 255 (in HEX: FF).

HEX values are specified as 3 pairs of two-digit numbers, starting with a # sign.

Color Values ColorColor HEXColor RGB   #000000 rgb(0,0,0)   #FF0000 rgb(255,0,0)   #00FF00 rgb(0,255,0)   #0000FF rgb(0,0,255)   #FFFF00 rgb(255,255,0)   #00FFFF rgb(0,255,255)   #FF00FF rgb(255,0,255)   #C0C0C0 rgb(192,192,192)   #FFFFFF rgb(255,255,255)

Try it yourself » 16 Million Different Colors

The combination of Red, Green, and Blue values from 0 to 255, gives more than 16 million different colors (256 x 256 x 256).

If you look at the color table below, you will see the result of varying the red light from 0 to 255, while keeping the green and blue light at zero.

To see the full list of color mixes when RED varies from 0 to 255, click on one of the HEX or RGB values below.

Red LightColor HEXColor RGB   #000000  rgb(0,0,0)    #080000  rgb(8,0,0)    #100000  rgb(16,0,0)    #180000  rgb(24,0,0)    #200000  rgb(32,0,0)    #280000  rgb(40,0,0)    #300000  rgb(48,0,0)    #380000  rgb(56,0,0)    #400000  rgb(64,0,0)    #480000  rgb(72,0,0)    #500000  rgb(80,0,0)    #580000  rgb(88,0,0)    #600000  rgb(96,0,0)    #680000  rgb(104,0,0)    #700000  rgb(112,0,0)    #780000  rgb(120,0,0)    #800000  rgb(128,0,0)    #880000  rgb(136,0,0)    #900000  rgb(144,0,0)    #980000  rgb(152,0,0)    #A00000  rgb(160,0,0)    #A80000  rgb(168,0,0)    #B00000  rgb(176,0,0)    #B80000  rgb(184,0,0)    #C00000  rgb(192,0,0)    #C80000  rgb(200,0,0)    #D00000  rgb(208,0,0)    #D80000  rgb(216,0,0)    #E00000  rgb(224,0,0)    #E80000  rgb(232,0,0)    #F00000  rgb(240,0,0)    #F80000  rgb(248,0,0)    #FF0000  rgb(255,0,0) 

You've reached the end of published parts.

⏰ Last updated: Dec 13, 2014 ⏰

Add this story to your Library to get notified about new parts!

HTML Layout - Useful Tips  CREATED BY =JAY-AR SIMON SEBASTIANWhere stories live. Discover now