Helpful and useful HTML for your website
If you are looking for some great HTML you have come to the right place, below is an example of iframe code for you to use in your website. All browsers support iframes and I highly doubt that it will go away anytime soon. Because of the extensive implementation of iframes in websites it has become a good standard for developing websites and also brining in content from other pages. However, make sure you do your iframe the right way.
<iframe src="http://www.stsephencarr.net/html.php"
name="this can be anything"
width="100%" <!-- This is set ok. But again, adjust for a set pixel width and height. it will look better at the end.. -->
height="100%" <!-- try just guessing the height and then adjust from there. Better than using up an entire page.. Also 100% on the height doesn't always work out to well -->
scrolling="auto" <!-- Best to always set this to NO, it makes your frame look nicer, just find the height and enter the pixels -->
align="top"
frameborder="0"> <!-- Ok make sure you always set your iframe frame border to zero because else your frame looks really amature-->
<a href="http://www.stephencarr.net/html.php">This is just a link to this website you don't need this part of the code</a></iframe>
Now there are some lines breaks in the code above but go ahead and copy and past the code below. It is more stream line.
<iframe src="www.stephencarr.net/html.php" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>
So the above code is what you want to duplicate for your own purposes. Again, use a set pixel width and height for your iframe and be sure to set your frame border to 0 because it looks really lame when you know something is iframed in. Also, set the background of your page to the background of your iframed content. Your goal is to make your iframe not look like an iframe. You want the user to believe that they info they are seeing is directly from your website and not just ganked from somewhere else.
Another great tool is using CSS
CSS can easily be implemented inside of your website or html or php web pages. You can always write all of your CSS in another document and save it as a .css however, its just as easy to use a DIV tag and then just spell out your few effects right there. Besides, DIV tags are how people usually call their CSS styles anyways. So if your going to only use your CSS for like a single block of text or a singple picture or photo then go ahead and use a div tag. To get this amazingly nifty little effect above of highlighting your text just copy and past the below, change the colors to whatever you want.
This is the code part:
<p align="left" style="background-color:#F00; color:#FFF;">THIS WOULD BE THE TEXT THAT YOU ARE TYRING TO CHANGE</p>
This is what the above code will produce:
THIS WOULD BE THE TEXT THAT YOU ARE TYRING TO CHANGE
Very nice eh? Well feel free to copy the code and modify it or use it any way you please.
META REFRESH TAGS
The meta refresh tag is very useful for refreshing your web site or a webpage for many reasons. Not only can you refresh a website page you can also use it to send your user to another website or web page. A great example of this is if you have your user fill out a contact form and then after they fill it out, typically you may send your user to a thank you page or you may even send the user back to your home page after displaying a thank you page. An example of this code is below. Feel free to modify the code below:
<meta http-equiv="refresh" content="2;url=http://www.stephencarr.net">
The number 2 right after the word content is the number of seconds that the current page will WAIT until it sends the user to the new page, which in this case is www.stephencarr.net.
If your would rather just refresh your page but keep the user on the current page then just remove everything after the URL part of the meta refresh tag.
