dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: API's of a website

  1. #1
    Join Date
    Aug 2012
    Posts
    2

    API's of a website

    Hey. I am developing an app for a website at present, I have obtained the login API for it and successfully implemented this (the login). Now I want to move on further into the rest of the pages in the website. My doubt is, will there be a separate API for each of these pages? Should I use a different url address for each of these pages?

    I don't know much about HTML or web development some clarity in this matter would be much appreciated.

    Thanks.

  2. #2
    Join Date
    Mar 2012
    Posts
    1,814
    I do not understand your query. Please give a code snippet of how you are "logging in" to a site you have not written yet??? When you say API do you mean URL?

    On the naming of web pages, only the home page needs to be standard, usually "index.html". So the full url is, say: "http://www.mysite.com/index.html". Other web pages are usually put in the same folder on the server so their relative address is just the page name. E.g. "AboutUs.html". So in index.html (or any other web page in the same folder) the link: <a href="AboutUs.html">About Us</a> will display the "About Us" page.

    Incidentally, it is generally best to put graphic files in a separate sub-folder, often called "graphics". So the code <img src="graphics/mypiccie.jpg" alt="my picture" width="100" height="150"> will display the picture. Note: The width and height are optional, but should be given as that minimises the "jumping around" of the page as it loads.

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    yes you should use different url's.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles