Tuesday, May 6, 2014

HTML Lessons part 13

In this lesson I will teach you how to make the <iframe> tag.  Iframe stands for inline frame.  An iframe is like a webpage inside another webpage.  I will demonstrate one.  In this image I have put an iframe of GameStar Mechanic.

I will show you how to make an <iframe>.

<body>
<iframe src="https://www.google.com/" width="200" height="200" scrolling="yes" seamless>
</body>

The src is where you put the URL of a website.  You have to put the HTTP also.  Width is for the width and height is for the height.  There is no length.
scrolling can be yes no or auto or you could just leave it out.  You can also add seamless at the end of the tag so it blends into the page better.  There are more attributes of the iframe tag that you can see if you click this link.  Click Me!

That is all for today.  Make sure you look at Code Academy for beginning and how to code the document properly.
















No comments:

Post a Comment