Make Web Page Version 1
def makeWebPageVersion1():
file = open("I:\Documents and Settings\Cedric Stallworth\Desktop\Job CoC\Classes\Spring 2007\CS1315\HTML\WebPageVersion1.html", "wt")
file.write("""
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Bob's Web Page</title>
</head>
<body>
<h1><u> Bob's Web Page</u></h1>
Image in Same Directory as this Web Page <img src="earth.jpg"/> <br>
Image in Different Directory than this Web Page <img src="images/moon.jpg"/> <br>
Image is somewhere on the Web <img src="http://tbn0.google.com/images?q=tbn:IXYQFh_APusTSM:http://www.bnsc.gov.uk/assets/channels/education/ae/sun_main.jpg"/> <br>
Change Image Width and Height <img src="earth.jpg" width="50px" height="100px"> <br>
Display alternated text if Image does not load <img src="jupiter.jpg" alt="Picture of Jupiter Not Found">
</body>
</html>
""")
file.close()
Link to this Page