How To Draw A Frame

Drawing a frame in HTML is a simple, yet precise task that will add an extra flair to your web page. It doesn’t take a technical guru to do this either, with a few clicks and some creativity, you’ll master the art of drawing a frame in no time.
If you’re looking to add a professional edge to your web page, detail-oriented HTML coding is the way to go. Start off by dipping your toe into the designing waters with frames. Drawing them may be somewhat intimidating at first, but with a little experimentation and encouragement, you’ll be a master in no time.
To begin, you’ll need to have an HTML document open on your computer. Then grab your mouse, and let’s get creative. The first step is to locate the frame tag. Look for ‘’ and be sure to place it between two tags. Once you’ve done that, your page is ready for you to draw the frame.
Next, the web page needs an address- which will tell the browser where to load the page. Add the frame ‘src’ attribute, and put in the address of your chosen page. You don’t need to include quotes, but this step is essential for a successful frame. After you add the address, move on to formatting edging.
Add the ‘frameborder’ attribute, and choose ‘yes’ or ‘no’. Selecting ‘yes’ will give you a border, and ‘no’ will get rid of it. This will be the outer edge of your frame, so choose wisely. Now you’re ready to style with ‘scrolling’. This attribute will help you decide if your viewers will have to scroll up and down to see the whole page. Want to lock it in? Just add ‘yes’ or ‘no’ and it’s in the bag.
Finally, add the width and height. To make sure it’s an even fit, use percentages, because if you select pixels, this can lead to some pretty wonky boxes. While you’re adding the size, add in background colour of your frame, so your page doesn’t blend in with your website’s overall design. Et voila, you should have a frame worthy of a professional designer!
Adding additional frames is like riding a bike- once you get the hang of it, you’ll understand the basics and be on your way to creating a visually pleasing piece of artwork. The same steps apply; just repeat, and tweak away until you’ve always got at least two frames.
For complex effects, include a tiled background image. This could be a pattern or a plain image, and you’re able to use tones to create a specific atmosphere. Choose a pattern like stripes, and a smooth gradient to frame everything. Then, add a custom frame tag in the background to give your frame an additional layer of depth.
Want to really step up your frame game? Then, add interactivity in your frame. This can be done by using both ‘onload’ and ‘onunload’ attributes. This means, when your page loads, you can use a script to do something special. Make the page load within the frame? Add text? The possibilities are endless!
To apply extra moments of delight, throw in some jQuery too. Incorporating jQuery plugins will give your viewers some neat tricks, like transition effects and easing animations. Here’s an example of a transition effect with jQuery:

Finally, to make sure your frames look clean and professional, use a style. This will help you centre frames on your page, and you’ll also find a range of perks such as padding, margins and borders. And with CSS, styling can be done in an instant, making your frames look good to go.
In the end, don’t forget to apply ‘float’ and ‘clear’. Use ‘float’ to move your frames around without displacement. Use ‘clear’ to decide when the page can’t move any more either side. Then, add a header and footer below to bring the page together.
If you keep the above steps in mind, you’ll be a frame pro in no time. It may take some practice, but a little bit of awe-inspired coding is all you need to start making your web pages stand out from the crowd. So get out there and start drawing creative frames!

Robert Ortiz is an artist who has been writing about art and design for over ten years. His writing focuses on the creative process of art, from the conceptual to the material, and highlights its importance in our daily lives. He has a degree in Fine Arts from the University of Texas at San Antonio and has also attended other prestigious art schools like Savannah College of Art and Design. He has a passion for exploring the boundaries between fine art, design, commercial work, and technology. His work extends to social media campaigns, website development, magazine articles, video tutorials and more.

Leave a Comment