Solved

HTML page and JavaScript

Posted on 2016-11-08
2
49 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 51

Accepted Solution

by:
Julian Hansen earned 250 total points
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices. Find out how to create a mobile email signature with this guide.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now