Author Topic: mrscruffsushi.hostei.com [Up and running, but more pages??]  (Read 5262 times)

whatever you want the homepage to be, name as index.html and put it inside of the public_html folder
No, simply putting a index.html in the public_html directory won't automatically make it the server's index file.
However, if OP does want the file to be index.html instead of index.php (even though they both work either way), you'll have to change a line in the .htaccess file located in the root directory of the server from
Code: [Select]
DirectoryIndex index.php to
Code: [Select]
DirectoryIndex index.html

whatever you want the homepage to be, name as index.html and put it inside of the public_html folder
I'm confused. Tyler is saying that it should be index.php, and you are saying that it should be index.html.
What should I name it?
Never mind, I wasn't alerted of Tyler posting while I was typing.
Here is what I have. Some of it may be incorrect because I forgot some stuff that I learned last night.

<!doctype html>
<html>
   <head>
      <title>Johnny Blockhead's Website</title>
   </head>
   
   <body bgcolor="#F8F8F8">
      <h2>Welcome, this webpage is about Johnny Blockhead!</h2>
      <img src="http://forum.blockland.us/avatarUpload/avatar_33517.png">
      <p>Welcome, this webpage is about Johnny Blockhead! I am also known as Mr. Scruff Sushi. I am creating this webpage to expand and test my knowledge about html.</p>
      <p>Here are some things that you may catch me doing:</p>
      <ul>
      <li>Play Blockland and browse it's forums. The Blockland website can be found <a href="http://blockland.us">here</a> and the forums can be found <a href="http://forum.blockland.us>here.</a></li>
      <li>I also play Steam by the name of Johnny Blockhead. I often play things such as Garry's Mod and Portal 2.</li>
   </body>
</html>

edit: new code

<!doctype html>
<html>
   <head>
      <title>Johnny Blockhead's Website</title>
   </head>
   
   <body bgcolor="#F8F8F8">
      <h2>Welcome, this webpage is about Johnny Blockhead!</h2>
      <img src="http://forum.blockland.us/avatarUpload/avatar_33517.png">
      <p>Welcome, this webpage is about Johnny Blockhead! I am also known as Mr. Scruff Sushi. I am creating this webpage to expand and test my knowledge about html.</p>
      <p>Here are some things that you may catch me doing:</p>
      <ul>
         <li>Play Blockland and browse it's forums. The Blockland website can be found <a href="http://blockland.us">here</a> and the forums can be found <a href="http://forum.blockland.us">here.</a></li>
         <li>I also play Steam by the name of Johnny Blockhead. I often play things such as Garry's Mod and Portal 2.</li>
         <li>Have you ever wondered how boring it is to write lists? Yeah.</li>
      </ul>
      
      <h2>Contact Me</h2>
      <p>There are different ways to contact me. First of all, and probably slowest of all, is my email. It's mrscruffsushi@gmail.com. One of the fastest ways to contact me would to add me on steam; I use the username Johnny Blockhead. You can also personal-message me on the blockland forums, which is a medium-fast way to contact me. I use the username Johnny Blockhead there, also.</p>
   </body>
</html>
« Last Edit: December 31, 2013, 06:00:43 PM by Johnny Blockhead »


Everything seems to work when I put it into Firebug, everything except the background color part.
I do believe it should be <body bgcolor="#F8F8F8"> instead of <body style="background-color:#F8F8F8">

Everything seems to work when I put it into Firebug, everything except the background color part.
I do believe it should be <body bgcolor="#F8F8F8"> instead of <body style="background-color:#F8F8F8">
Blankwebsite.com is cool for that
edit: looks awesome! http://i.imgur.com/eZFTwhc.png
Double Edit: also this allows you to test your html code.
http://www.jmarshall.com/easy/html/testbed.html
« Last Edit: December 31, 2013, 06:01:42 PM by Johnny Blockhead »

I do believe it should be <body bgcolor="#F8F8F8"> instead of <body style="background-color:#F8F8F8">
Both are correct.


I now have this file, that contains my html code.
On 000webhost, this pops up.

Should I replace default.php with my index.php file?
Edit: I'm having problems using FireFTP to connect to the FTP thinggy
« Last Edit: January 01, 2014, 05:52:48 AM by Johnny Blockhead »


I now have this file, that contains my html code.
On 000webhost, this pops up.

Should I replace default.php with my index.php file?
Edit: I'm having problems using FireFTP to connect to the FTP thinggy
This is the default.php file that 000webhost gives you every time you create a new account/site. Just go into your FTP manager and delete default.php.

Plus why are you using the .php suffix when you can use .html? Not like it matters. Any file with index as the name will be the default page it'll come up with in that directory.

Also, for better practice, begin to use <div> tags which will be useful for you when you begin to use some CSS.


codeScreenshot
Code: [Select]
<!doctype html>
<html>
   <head>
      <title>Johnny Blockhead's Website</title>
   </head>
   
   <body bgcolor="#F8F8F8">
      <h2>Welcome, this webpage is about Johnny Blockhead!</h2>
      <img src="http://forum.blockland.us/avatarUpload/avatar_33517.png">
      <p>Welcome, this webpage is about Johnny Blockhead! I am also known as Mr. Scruff Sushi. I am creating this webpage to expand and test my knowledge about html.</p>
      <p>Here are some things that you may catch me doing:</p>
      <ul>
         <li>Play Blockland and browse it's forums. The Blockland website can be found <a href="http://blockland.us">here</a> and the forums can be found <a href="http://forum.blockland.us">here.</a></li>
         <li>I also play Steam by the name of Johnny Blockhead. I often play things such as Garry's Mod and Portal 2.</li>
         <li>Have you ever wondered how boring it is to write lists? Yeah.</li>
      </ul>
     
      <h2>Contact Me</h2>
      <p>There are different ways to contact me. First of all, and probably slowest of all, is my email. It's mrscruffsushi@gmail.com. One of the fastest ways to contact me would to add me on steam; I use the username Johnny Blockhead. You can also personal-message me on the blockland forums, which is a medium-fast way to contact me. I use the username Johnny Blockhead there, also.</p>
   </body>
</html>
Image:
Code: [Select]
<!doctype html>
<html>
   <head>
      <title>Johnny Blockhead's Website</title>
   </head>
   
   <body bgcolor="#F8F8F8">
      <div style="margin:100px;">
         <h2>Welcome, this webpage is about Johnny Blockhead!</h2>
         <img src="http://forum.blockland.us/avatarUpload/avatar_33517.png">
         <p>Welcome, this webpage is about Johnny Blockhead! I am also known as Mr. Scruff Sushi. I am creating this webpage to expand and test my knowledge about html.</p>
         <p>Here are some things that you may catch me doing:</p>
         <ul>
            <li>Play Blockland and browse it's forums. The Blockland website can be found <a href="http://blockland.us">here</a> and the forums can be found <a href="http://forum.blockland.us">here.</a></li>
            <li>I also play Steam by the name of Johnny Blockhead. I often play things such as Garry's Mod and Portal 2.</li>
            <li>Have you ever wondered how boring it is to write lists? Yeah.</li>
         </ul>
         
         <h2>Contact Me</h2>
         <p>There are different ways to contact me. First of all, and probably slowest of all, is my email. It's mrscruffsushi@gmail.com. One of the fastest ways to contact me would to add me on steam; I use the username Johnny Blockhead. You can also personal-message me on the blockland forums, which is a medium-fast way to contact me. I use the username Johnny Blockhead there, also.</p>
      </div>
   </body>
</html>
Image:
Above is without a div tag, below is after.

Plus, I forgot a css element so I had to go to w3schools to find it again.
« Last Edit: January 01, 2014, 07:16:19 AM by nerraD »


http://w3fools.com
????

only used w3schools because that was the first thing that came up on my search results

This is one page stretttchhh
On-topic:
I keep getting this error: http://i.imgur.com/7syuLxY.png
All I do is click on this

with my browser.
I then put in the login information and then the error appears.

This is one page stretttchhh
On-topic:
I keep getting this error: http://i.imgur.com/7syuLxY.png
All I do is click on this

with my browser.
I then put in the login information and then the error appears.
Have you tried to use FileZilla yet? By the looks of the error you're either inputting the wrong username or password.

mrscruffsushi.hostei.com is up and running now!
How do I add more pages, though?