HTML: Making my First Web Page!
Making your first Web Page!
In our Previous post, I said, you are going to make your own web page on your own! What's more? Let's Get Started, ( if you don't know what you need to make your project, check this page before you countinue )
Getting Started:
- Open your Text Editor
- Create a New File ( CTRL + N )
- Make a New Folder named "html"
- Save That file as your_file_name.html in html folder [ if your using default notepad, remember change from txt to all files in drop down bar ! ]
- Start Coding!
( note: The Pics are From Quoda For Android )
Now Start Writing your code!
As I defined in previous post, There are some Basic And compulsory HTML Tags. Now let's write the following,
- Open <html> ( note if you used any IDEs like Visual Studio Code or Web Code, Your Tags will be auto closed, don't mind it )
- Open <head>
- Add <title> Tag Next to the <head> Tag and Add your Title Into it and then close the <title> tag by </title>
- Close <head> tag by </head>
- Open <body>
- Open new <h1> ( you will learn what it will do, soon)
- Write hello world and then close <h1> by </h1>
- Close <body> tag by </body>
- Close <html> tag
- You are Done!
Your code should look something like this:
If you did something wrong, No worries! Correct it now!
So let's see how to view your project.
In PC or Desktop:
- Open My Computer ( File Explorer )
- Find html Folder
- You will see your_file_name.html, if not probably you didn't saved your file there. Try saving it again
- Click on it and select open
- Your file should be opened on your web browser with the output ( if not, probably the format is incorrect, the file name must end with .html )
In Smartphone:
There are two methods, I am showing one which will work for every android and iOS versions!
- Use the following Thing, in your browser url field: file:///storage/emulated/0/html/your_file_name.html
- You are Done! You should see the output, if you saw a blank white space, means there is an error in your code!
Your output will be something like this
This is how you will make a basic web page. We will learn about advanced stuffs soon!
If you got messed up with something, No worries! Feel free ask your queries in comments section!
Stay Tuned♡!
Comments
Post a Comment