Solved

HTML page and JavaScript

Posted on 2016-11-08
2
101 Views
Last Modified: 2016-11-17
Try to start the web page development on web server and mobile but I have no idea where shoud I get start.

Any good reference / idea to point me to get start.

eg. Do I have to write the code within the attached index.htm  ? Is there any good source / books for jumping to the basic JavaScript that can serve most of the commond web page as I have difficult to understanding how the code inside the file works ? What's the basic codes to control the elements within a web page for setting up different effect ?

Thx
0
Comment
Question by:AXISHK
2 Comments
 
LVL 54

Accepted Solution

by:
Julian Hansen earned 250 total points
ID: 41878353
This is a pretty open question.

HTML and JavaScript - basic differences.

HTML is the markup (code) we use to say how a page is laid out. The most basic HTML document is
<!doctype html>
<html>
<head>
  <title>My first HTML page</title>
</head>
<body>
  <h1>Hello World</h1>
</body>
</html>

Open in new window

Everything between the <body></body> tags is what is displayed in the page.

JavaScript is used to interact with the page.

Simple JavaScript in a simple page

<!doctype html>
<html>
<head>
  <title>My first HTML page</title>
</head>
<body>
  <h1>Hello World</h1>
<script>
  alert('Hi!');
</script>
</body>
</html>

Open in new window


CSS is used to style the page to make it look the way we want to
<!doctype html>
<html>
<head>
  <title>My first HTML page</title>
  <style type="text/css">
  h1 {
    color: red;
    font-size: 50px;
  }
  </style>
</head>
<body>
  <h1>Hello World</h1>
</body>
</html>

Open in new window


You do not have to save the file as index.html you can make the name what you wish - it must just end .html. We usually put our landing page in index.html because the web server will look for that page by default if one is not specified in the URL.

To get started try these links
HTML: http://www.w3schools.com/html/default.asp
CSS: http://www.w3schools.com/css/default.asp
JavaScript: http://www.w3schools.com/js/default.asp

That should give you exposure to the basics.
1
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 250 total points
ID: 41884264
Codecademyis a great place to learn https://www.codecademy.com/ and start with html https://www.codecademy.com/learn/web, then move to javascript https://www.codecademy.com/learn/javascript and follow up with jquery https://www.codecademy.com/learn/jquery.

Don't try and cram it in all at once. Try and break the  html into at least a couple of sittings and then 2 or 3 for each of the javascript. If you try and push to fast, it is easy to not retain.  Then pick a realistic but small project you want to work on and build from scratch.  

When you have all of that licked, jump into learning about responsive web.  I find http://foundation.zurb.com/ has much better information for learning but like beta vs vhs, bootstrap is used in more projects http://getbootstrap.com/.

If you just want to create a simple website on your own and bypass the learning curve (it is much larger than you think), try out a builder site like wix.com, weebely.com or squarespace.com.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Joomla 2.5 shopping cart 7 23
Wordpress plugins not working in html 3 25
How to deal with the query string 8 24
Html Table looping 4 13
By this time the large percentage of day-to-day transactions have shifted to mobile banking; here are some overriding areas QAs must investigate while testing mobile banking apps.  
Ensuring effective and secure communication in the age of healthcare BYOD.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question