The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > General iPhone Chat
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-28-2009, 02:37 AM
cellmate75's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2008
Device + Firmware: iPhone 3g 2.2.1
Operating System: Mac OsX
Location: that one place
Posts: 734
Thanks: 164
Thanked 92 Times in 84 Posts
I need help from someone who is really good at coding.

Ok I am trying to learn wow to code and i need help with something.
OK here is what I got so far
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
	<title>My first web page</title>
</head>

<body>
	This is my first web page
</body>

</html>
When I open it in a web browser (firefox for example) I see all of this text. Is that what I am supposed to see? Or did I do something wrong? And please don't bash on me for trying.
Oh and by the way in the URL bar it says file:///Users/zacharyfox/Desktop/html/myfirsthomepage.html
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 07-28-2009, 03:15 AM
angiepangie's Avatar
Livin the iPhone Life
 
Join Date: Jun 2009
Device + Firmware: 3G 3.1.2 Pwned and Ultrasn0wed :)
Operating System: Windows Vista & 7
Location: The Golden State :)
Posts: 3,522
Thanks: 17
Thanked 186 Times in 179 Posts
Send a message via AIM to angiepangie

Haha. Oh the joys of learning HTML
spent hours a day playing around with these codes when I was 10 or 11

You should be able to see "This is my first web page" inside the browser (anything that's between the body tags)
"My first web page" should appear at the bar at the top of the browser (the things between the title tags)

Last edited by angiepangie; 07-28-2009 at 03:21 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 07-28-2009, 03:20 AM
confucious's Avatar
Livin the iPhone Life
 
Join Date: Oct 2008
Device + Firmware: 3G 3.12 Ultrasn0wed
Operating System: Windows 7
Location: Woking
Posts: 4,804
Thanks: 56
Thanked 388 Times in 365 Posts

This isn't really anything to do with the iPhone - there are plenty of html guides on the internet but I just copied your code into notepad, saved it and it works.
Make sure you have saved it with and html extension, I'm guessing you've saved it with .txt at the end - make sure you can view extensions and you will probably find it's got .html.txt
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 07-28-2009, 03:22 AM
angiepangie's Avatar
Livin the iPhone Life
 
Join Date: Jun 2009
Device + Firmware: 3G 3.1.2 Pwned and Ultrasn0wed :)
Operating System: Windows Vista & 7
Location: The Golden State :)
Posts: 3,522
Thanks: 17
Thanked 186 Times in 179 Posts
Send a message via AIM to angiepangie

@Confucious That's what I thought at first too but look at the file name, it says "myfirsthomepage.html" and not "myfirsthomepage.html.txt" which it would say if he saved it with .txt
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 07-28-2009, 03:27 AM
confucious's Avatar
Livin the iPhone Life
 
Join Date: Oct 2008
Device + Firmware: 3G 3.12 Ultrasn0wed
Operating System: Windows 7
Location: Woking
Posts: 4,804
Thanks: 56
Thanked 388 Times in 365 Posts

If you don't show file extensions that's what it would show....
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 07-28-2009, 03:28 AM
cellmate75's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2008
Device + Firmware: iPhone 3g 2.2.1
Operating System: Mac OsX
Location: that one place
Posts: 734
Thanks: 164
Thanked 92 Times in 84 Posts

Ok now my code looks like this.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>
	<title>My first web page</title>
</head>

<body>
	<h1>My first web page</h1>

	<h2>What this is</h2>
	<p>A simple page put together using HTML</p>
      <p>This is my first web page<p>
      <p>How exciting!<p>
      <p>Yes, that <em>is</em> what I said. How <strong>very</strong>
exciting.</p>
<ul>
		<li>To learn HTML</li>
		<li>To show off</li>
		<li>Because I've fallen in love with my computer and want to give her some HTML loving.</li>
	</ul>

</body>

</html>
here is a screen shot of what my screen looks like when I open it (And it is .html)
Attached Thumbnails
I need help from someone who is really good at coding.-picture-1.png  
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 07-28-2009, 03:37 AM
cellmate75's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2008
Device + Firmware: iPhone 3g 2.2.1
Operating System: Mac OsX
Location: that one place
Posts: 734
Thanks: 164
Thanked 92 Times in 84 Posts

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is that what my screen is supposed to be like?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 07-28-2009, 03:37 AM
confucious's Avatar
Livin the iPhone Life
 
Join Date: Oct 2008
Device + Firmware: 3G 3.12 Ultrasn0wed
Operating System: Windows 7
Location: Woking
Posts: 4,804
Thanks: 56
Thanked 388 Times in 365 Posts

When I copy and paste your text into notepad and save as an html file it displays correctly.

But this is way OT and if you want more help I suggest you find an html forum.
Attached Thumbnails
I need help from someone who is really good at coding.-capture.jpg  
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9  
Old 07-28-2009, 03:38 AM
angiepangie's Avatar
Livin the iPhone Life
 
Join Date: Jun 2009
Device + Firmware: 3G 3.1.2 Pwned and Ultrasn0wed :)
Operating System: Windows Vista & 7
Location: The Golden State :)
Posts: 3,522
Thanks: 17
Thanked 186 Times in 179 Posts
Send a message via AIM to angiepangie

Yeah, you probably did save it with the wrong extension. All the codes shouldn't be on the page and your code looks fine.

Quote:
Originally Posted by confucious View Post
If you don't show file extensions that's what it would show....
Even in a browser? Hmm...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 07-28-2009, 03:47 AM
cellmate75's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2008
Device + Firmware: iPhone 3g 2.2.1
Operating System: Mac OsX
Location: that one place
Posts: 734
Thanks: 164
Thanked 92 Times in 84 Posts

Well here is the .html file itself
Tell me if I did anything wrong.
Attached Files
File Type: zip myfirsthomepage.html.zip (1.5 KB, 3 views)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 07-28-2009, 03:48 AM
cellmate75's Avatar
My iPhone is a Part of Me
 
Join Date: Dec 2008
Device + Firmware: iPhone 3g 2.2.1
Operating System: Mac OsX
Location: that one place
Posts: 734
Thanks: 164
Thanked 92 Times in 84 Posts

Quote:
Originally Posted by confucious View Post
When I copy and paste your text into notepad and save as an html file it displays correctly.

But this is way OT and if you want more help I suggest you find an html forum.
Is it maybe cause I'm on a mac?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12  
Old 07-28-2009, 03:53 AM
angiepangie's Avatar
Livin the iPhone Life
 
Join Date: Jun 2009
Device + Firmware: 3G 3.1.2 Pwned and Ultrasn0wed :)
Operating System: Windows Vista & 7
Location: The Golden State :)
Posts: 3,522
Thanks: 17
Thanked 186 Times in 179 Posts
Send a message via AIM to angiepangie

LMAO. Don't you love it when people don't get the "go somewhere else" ?

@cellmate75 this is an iPhone forum, HTML has very little to do with the iPhone, take your question somewhere else please
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13  
Old 07-28-2009, 03:53 AM
confucious's Avatar
Livin the iPhone Life
 
Join Date: Oct 2008
Device + Firmware: 3G 3.12 Ultrasn0wed
Operating System: Windows 7
Location: Woking
Posts: 4,804
Thanks: 56
Thanked 388 Times in 365 Posts

What on earth have you written that in!

Have you seen all the junk in there? If you are going to code yourself use notepad or something that doesn't add all it's own code that screws your code up.

Open your file in notepad (or whatever the Mac equivalent is) and you will see what I mean.

Now go and find an HTML forum.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14  
Old 07-28-2009, 03:57 AM
angiepangie's Avatar
Livin the iPhone Life
 
Join Date: Jun 2009
Device + Firmware: 3G 3.1.2 Pwned and Ultrasn0wed :)
Operating System: Windows Vista & 7
Location: The Golden State :)
Posts: 3,522
Thanks: 17
Thanked 186 Times in 179 Posts
Send a message via AIM to angiepangie

^^LMAO.

This is what your code really looks like :
Code:
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="949.46">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 10.0px Courier New; color: #008181}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 10.0px Courier New; min-height: 11.0px}
    p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 10.0px Courier New; color: #81007f}
    p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 10.0px Courier New; color: #81007f; background-color: #eeffcc}
    p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 10.0px Courier New; background-color: #eeffcc}
    p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 16.0px; font: 10.0px Courier New}
    span.s1 {color: #000000}
    span.s2 {background-color: transparent}
    span.s3 {color: #81007f}
    span.s4 {background-color: #eeffcc}
    span.s5 {color: #81007f; background-color: #eeffcc}
    span.Apple-tab-span {white-space:pre}
  </style>
</head>
<body>
<p class="p1">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"</p>
<p class="p1">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;</p>
<p class="p2"><br></p>
<p class="p3"><span class="s1">&lt;</span>html<span class="s1">&gt;</span></p>
<p class="p2"><br></p>
<p class="p4"><span class="s1"><b>&lt;</b></span><b>head</b><span class="s1"><b>&gt;</b></span></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>title</b></span><b>&gt;My first web page&lt;/</b><span class="s3"><b>title</b></span><b>&gt;</b></p>
<p class="p4"><span class="s1"><b>&lt;/</b></span><b>head</b><span class="s1"><b>&gt;</b></span></p>
<p class="p2"><br></p>
<p class="p3"><span class="s1">&lt;</span>body<span class="s1">&gt;</span></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>h</b></span><b>1&gt;My first web page&lt;/</b><span class="s3"><b>h</b></span><b>1&gt;</b></p>
<p class="p2"><br></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>h</b></span><b>2&gt;What this is&lt;/</b><span class="s3"><b>h</b></span><b>2&gt;</b></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>p</b></span><b>&gt;A simple page put together using HTML&lt;/</b><span class="s3"><b>p</b></span><b>&gt;</b></p>
<p class="p6"><span class="s4"><b><span class="Apple-converted-space">* * * </span></b></span>&lt;p&gt;This is my first web page&lt;p&gt;</p>
<p class="p6"><span class="Apple-converted-space">* * * </span>&lt;p&gt;How exciting!&lt;p&gt;</p>
<p class="p6"><span class="Apple-converted-space">* * * </span>&lt;<span class="s3">p</span>&gt;Yes, that <span class="s4"><b>&lt;</b></span><span class="s5"><b>em</b></span><span class="s4"><b>&gt;is&lt;/</b></span><span class="s5"><b>em</b></span><span class="s4"><b>&gt;</b></span> what I said. How <span class="s4"><b>&lt;</b></span><span class="s5"><b>strong</b></span><span class="s4"><b>&gt;very&lt;/</b></span><span class="s5"><b>strong</b></span><span class="s4"><b>&gt;</b></span></p>
<p class="p6">exciting.&lt;/<span class="s3">p</span>&gt;</p>
<p class="p4"><b>&lt;ul</b><span class="s1"><b>&gt;</b></span></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>li</b></span><b>&gt;To learn HTML&lt;/</b><span class="s3"><b>li</b></span><b>&gt;</b></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>li</b></span><b>&gt;To show off&lt;/</b><span class="s3"><b>li</b></span><b>&gt;</b></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span><b>&lt;</b><span class="s3"><b>li</b></span><b>&gt;Because I've fallen in love with my computer and want to give her some HTML loving.&lt;/</b><span class="s3"><b>li</b></span><b>&gt;</b></p>
<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span><b>&lt;/</b><span class="s3"><b>ul</b></span><b>&gt;</b></p>
<p class="p2"><br></p>
<p class="p3"><span class="s1">&lt;/</span>body<span class="s1">&gt;</span></p>
<p class="p2"><br></p>
<p class="p3"><span class="s1">&lt;/</span>html<span class="s1">&gt;</span></p>
</body>
</html>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 07-28-2009, 07:21 AM
What's Jailbreak?
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by confucious View Post
This isn't really anything to do with the iPhone - there are plenty of html guides on the internet but I just copied your code into notepad, saved it and it works.
Make sure you have saved it with and html extension, I'm guessing you've saved it with .txt at the end - make sure you can view extensions and you will probably find it's got .html.txtClick the image to open in full size.Click the image to open in full size.
exacly, but if you want I can help you In msn or something Im good at html
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > General iPhone Chat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 05:23 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top