-
07-28-2009, 01:37 AM #1My iPhone is a Part of Me
- Join Date
- Dec 2008
- Location
- that one place
- Posts
- 756
- Thanks
- 169
- Thanked 102 Times in 92 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 farWhen 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.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>
Oh and by the way in the URL bar it says file:///Users/zacharyfox/Desktop/html/myfirsthomepage.html
-
07-28-2009, 02:15 AM #2Custom Title
- Join Date
- Jun 2009
- Location
- The Golden State :)
- Posts
- 3,831
- Thanks
- 22
- Thanked 221 Times in 210 Posts
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 02:21 AM.
-
07-28-2009, 02:20 AM #3Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,134
- Thanks
- 114
- Thanked 776 Times in 712 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.txtHe who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
07-28-2009, 02:22 AM #4Custom Title
- Join Date
- Jun 2009
- Location
- The Golden State :)
- Posts
- 3,831
- Thanks
- 22
- Thanked 221 Times in 210 Posts
@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
I always feel sorry for the guy in the iPhone commercials. He always gets a call right in the middle of trying to do something
-
07-28-2009, 02:27 AM #5Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,134
- Thanks
- 114
- Thanked 776 Times in 712 Posts
If you don't show file extensions that's what it would show....
He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
07-28-2009, 02:28 AM #6My iPhone is a Part of Me
- Join Date
- Dec 2008
- Location
- that one place
- Posts
- 756
- Thanks
- 169
- Thanked 102 Times in 92 Posts
Ok now my code looks like this.
here is a screen shot of what my screen looks like when I open it (And it is .html)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>
-
07-28-2009, 02:37 AM #7My iPhone is a Part of Me
- Join Date
- Dec 2008
- Location
- that one place
- Posts
- 756
- Thanks
- 169
- Thanked 102 Times in 92 Posts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is that what my screen is supposed to be like?
-
07-28-2009, 02:37 AM #8Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,134
- Thanks
- 114
- Thanked 776 Times in 712 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.He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
07-28-2009, 02:38 AM #9Custom Title
- Join Date
- Jun 2009
- Location
- The Golden State :)
- Posts
- 3,831
- Thanks
- 22
- Thanked 221 Times in 210 Posts
I always feel sorry for the guy in the iPhone commercials. He always gets a call right in the middle of trying to do something
-
07-28-2009, 02:47 AM #10My iPhone is a Part of Me
- Join Date
- Dec 2008
- Location
- that one place
- Posts
- 756
- Thanks
- 169
- Thanked 102 Times in 92 Posts
Well here is the .html file itself
Tell me if I did anything wrong.
-
07-28-2009, 02:48 AM #11My iPhone is a Part of Me
- Join Date
- Dec 2008
- Location
- that one place
- Posts
- 756
- Thanks
- 169
- Thanked 102 Times in 92 Posts
-
07-28-2009, 02:53 AM #12Custom Title
- Join Date
- Jun 2009
- Location
- The Golden State :)
- Posts
- 3,831
- Thanks
- 22
- Thanked 221 Times in 210 Posts
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
I always feel sorry for the guy in the iPhone commercials. He always gets a call right in the middle of trying to do something
-
07-28-2009, 02:53 AM #13Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,134
- Thanks
- 114
- Thanked 776 Times in 712 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.He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
07-28-2009, 02:57 AM #14Custom Title
- Join Date
- Jun 2009
- Location
- The Golden State :)
- Posts
- 3,831
- Thanks
- 22
- Thanked 221 Times in 210 Posts
^^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"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"</p> <p class="p1">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></p> <p class="p2"><br></p> <p class="p3"><span class="s1"><</span>html<span class="s1">></span></p> <p class="p2"><br></p> <p class="p4"><span class="s1"><b><</b></span><b>head</b><span class="s1"><b>></b></span></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>title</b></span><b>>My first web page</</b><span class="s3"><b>title</b></span><b>></b></p> <p class="p4"><span class="s1"><b></</b></span><b>head</b><span class="s1"><b>></b></span></p> <p class="p2"><br></p> <p class="p3"><span class="s1"><</span>body<span class="s1">></span></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>h</b></span><b>1>My first web page</</b><span class="s3"><b>h</b></span><b>1></b></p> <p class="p2"><br></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>h</b></span><b>2>What this is</</b><span class="s3"><b>h</b></span><b>2></b></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>p</b></span><b>>A simple page put together using HTML</</b><span class="s3"><b>p</b></span><b>></b></p> <p class="p6"><span class="s4"><b><span class="Apple-converted-space">* * * </span></b></span><p>This is my first web page<p></p> <p class="p6"><span class="Apple-converted-space">* * * </span><p>How exciting!<p></p> <p class="p6"><span class="Apple-converted-space">* * * </span><<span class="s3">p</span>>Yes, that <span class="s4"><b><</b></span><span class="s5"><b>em</b></span><span class="s4"><b>>is</</b></span><span class="s5"><b>em</b></span><span class="s4"><b>></b></span> what I said. How <span class="s4"><b><</b></span><span class="s5"><b>strong</b></span><span class="s4"><b>>very</</b></span><span class="s5"><b>strong</b></span><span class="s4"><b>></b></span></p> <p class="p6">exciting.</<span class="s3">p</span>></p> <p class="p4"><b><ul</b><span class="s1"><b>></b></span></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>li</b></span><b>>To learn HTML</</b><span class="s3"><b>li</b></span><b>></b></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>li</b></span><b>>To show off</</b><span class="s3"><b>li</b></span><b>></b></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><b><</b><span class="s3"><b>li</b></span><b>>Because I've fallen in love with my computer and want to give her some HTML loving.</</b><span class="s3"><b>li</b></span><b>></b></p> <p class="p5"><span class="s2"><span class="Apple-tab-span"> </span></span><b></</b><span class="s3"><b>ul</b></span><b>></b></p> <p class="p2"><br></p> <p class="p3"><span class="s1"></</span>body<span class="s1">></span></p> <p class="p2"><br></p> <p class="p3"><span class="s1"></</span>html<span class="s1">></span></p> </body> </html>I always feel sorry for the guy in the iPhone commercials. He always gets a call right in the middle of trying to do something
-
07-28-2009, 06:21 AM #15
-
07-28-2009, 07:10 AM #16Livin the iPhone Life
- Join Date
- Aug 2008
- Location
- New York
- Posts
- 1,014
- Thanks
- 3
- Thanked 77 Times in 62 Posts
NimbleKit - Smart kit for fast iPhone apps development
Actually there is a whole Xcode plug in that involves HTML coding to develop apps so HTML is legit questions.
HTML web apps for the iPhone is still a huge market for the phone if not better since there is no restrictions for development and what you can do.
Let the kid learn, if people don't want to help just stay quiet and post in another forum.
-
The Following User Says Thank You to boxxa For This Useful Post:
cellmate75 (07-28-2009)



LinkBack URL
About LinkBacks
Reply With Quote



