Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Quick HTML question


ghost's Avatar
0 0

Hey right now I am just doing some HTML and I am learning about framesets so I can have 2 vertical frames. Lets say I have the following:

<frameset cols="50%,50%">
   <frame src="frame_a.htm">
   <frame src="frame_b.htm">
</frameset>

Now how would I edit each frame to make them hold information, tags, attributes. For example would I do something such as:

<frame_a>
blah blah
</frame_a>

ghost's Avatar
0 0

chronicburst wrote: <frame src="frame_a.htm">

That's what the src attribute is for.


ghost's Avatar
0 0

I tried that last night. However I consumed like 4 redbull, rarely happens, and then was like out of it. It was a long night. Maybe I forgot quotes. All right well thanks. Ill be sure to post other questions within this thread.


ghost's Avatar
0 0

Okay heres the new issue. Well this is what I have and it isnt working. I put a "COMMENT" in a comment at the parts of the frame tags…:

&lt;html&gt;
&lt;title&gt;Evan&#39;s Site&lt;/title&gt;
&lt;!-- This is an HTML comment --&gt;
&lt;hr&gt;
&lt;frameset cols=&quot;50%,50%&quot;&gt; &lt;!-- COMMENT --&gt;
&lt;frame src=&quot;frame_left.html&quot;&gt; &lt;!-- COMMENT --&gt;
&lt;frame src=&quot;frame_right.html&quot;&gt; &lt;!-- COMMENT --&gt;
&lt;/frameset&gt; &lt;!-- COMMENT --&gt;
&lt;frame src=&quot;frame_left.html&quot;&gt; &lt;!-- COMMENT --&gt;
&lt;body&gt;
&lt;h3&gt;Leaning HTML&lt;/h3&gt;
My HTML learning enviorment! Lets begin.
&lt;br&gt;
&lt;/body&gt;&lt;hr&gt;
&lt;body bgcolor=&quot;gray&quot;&gt;
&lt;!-- This displays a backgroud color --&gt;
&lt;h3&gt;Some HTML Elements&lt;/h3&gt;
Here I will list types of elements:&lt;br&gt;
For example...&lt;br&gt;
&lt;b&gt;This text is bold&lt;/b&gt;&lt;br&gt;
&lt;i&gt;This text is typed in italics&lt;/i&gt;&lt;br&gt;
&lt;u&gt;This text is underlined&lt;/u&gt;&lt;br&gt;
&lt;s&gt;This test is deprecated or striked out&lt;/s&gt;&lt;br&gt;
&lt;cite&gt;This is a citation
&lt;center&gt;This text is be centered&lt;/center&gt;
&lt;/body&gt;&lt;hr&gt;
&lt;body&gt;
&lt;h3&gt;Anchoring&lt;/h3&gt;
&lt;a href=&quot;http://www.google.com&quot;&gt;This is a link to the Google search engine&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.myspace.com&quot; target=&quot;_blank&quot;&gt;This is a link to Myspace which will open in a new tab&lt;/a&gt;&lt;br&gt;&lt;hr&gt;
&lt;/body&gt;
&lt;/frame src=&quot;frame_left.html&quot;&gt; &lt;!-- COMMENT --&gt;

&lt;/html&gt;

ghost's Avatar
0 0

chronicburst wrote: Okay heres the new issue. Well this is what I have and it isnt working.

I know how to read HTML… no need to comment the frame parts. I think you have a great misunderstanding of what HTML frames actually do, so here's the 5 second summary:

Frames split off different pages of source. The src attribute in the frame tag points to an individual page of source (HTML,PHP,etc.). Thus, to do:

&lt;frameset&gt;
   &lt;frame src=&quot;1.html&quot; /&gt;
   &lt;frame src=&quot;2.html&quot; /&gt;
&lt;/frameset&gt;

You need 3 pages of source: 1 containing the frameset above, and two files named 1.html and 2.html, both containing displayable source.

If that doesn't work for you, then you should really explain what it is that you're trying to achieve and why it's not working… as best as you can tell.


ghost's Avatar
0 0

Okay I catch your drift. Problem solved. Thanks there.