Solved

HTML page and JavaScript

Posted on 2016-11-08
2
114 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 56

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

756 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