Over 100 million consumers use their smartphones to browse the internet according to com.score Inc. Learn how to create a mobile website specifically for the mobile audience. For this tutorial, you will need dreamweaver CS5 and up. This article details how to create a jquery mobile website.

Steps

  1. 1
    Open Dreamweaver and go to file > New. You will then see a "New Document" Window. On the left hand side, you want to pick the option "page from sample" then in the next column, choose "mobile Starters", then "jQuery Mobile (CDN)"
  2. 2
    Create the Pages. Once you open the jQuery Mobile (CDN) file, you will see a page that looks similar to this:
    • Although this technically is a one page document, each header represents a different "page". For example, "Page One" is the home page for the mobile website, "Page Two" could be the about us page, "Page Three" could be your services page and so on.
    Advertisement
  3. 3
    Look at the Code. These steps can be pretty tricky if you are unfamiliar with basic HTML. To create the content, try working in "split view" on Dreamweaver. How to get to that mode is if you look at the left hand corner of Dreamweaver, below the file menu, you will see four options "code, split, design, and live" like this:
    • Choose the highlighted option "split", and you will see a view of code and the actual site side-by-side. Take a look at the code.
  4. 4
    Edit the Headers for Each Page. There is (div data-role="page" id="page"), which means that it is the beginning of a new page. Note that each page is associated with a number 'div data-role="page" id="page2"' is the second page, 'div data-role="page" id="page3"' is the third page and so on

    'div data-role="header"' is the header area, and you put your header information between the two "h1"and "/h1" tags.
  5. 5
    Edit the Content and Menu Items. 'div data-role="Content"' is the beginning of the content section. This is where you put the actual content of each page. Note that in the first page there is:
  6. 6
    Edit the Footer. To edit the footer, simply put your text in place of the "Page Footer" text.
  7. 7
    Take a look at your website in "live Mode". Remember where you switched into "split mode?" right in that area, there is a button that says "live". Click on that, and you will see what your website will look like on a phone!
  8. Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 9 people, some anonymous, worked to edit and improve it over time. This article has been viewed 68,427 times.
How helpful is this?
Co-authors: 9
Updated: February 13, 2021
Views: 68,427
Advertisement