Get started to build a website
I want to learn to develop a small website. How do I get started? I come from a windows ap开发者_JS百科p background and I want to get started with web apps.
you got a long way to go.
First of all learn HTML/CSS. That will teach you how to create static pages, focus on current standards and avoid old HTML tutorials.
Then you can start doing little things and details with JavaScript. this will allow you to play with page elements, also make sure you take a look at jQuery.
You can now start to learn something to create dynamic web pages, this is when it gets really fun, you can take a look at several technologies and choose the one you feel more comfortable with. Ruby on Rails (Ruby), ASP .NET MVC (C#), Code Igniter (PHP) are my favs
You will find a lot of help online! and good look :)
It depends. If you want to create static websites then you will want to look at current best practices for web development.
This means you'll want to read up on XHTML vs. HTML, HTML5, CSS Sprites, decide on a reset.css sheet to use and dive into some well-done HTML and CSS layouts.
This will get you into the world of browser incompatibility. You'll want to know what browsers currently support which features. You will also want to start reading up on Javascript -- it's a prototype-based, functional language with quite a lot of power. Once you've started working with it you'll probably want to pick a library or two to help you out with normalizing browser-based inconsistencies. There are quite a few to choose from. You'll probably want to read up on XML and JSON too.
And that's before you decide to work on a dynamic website, choose a server-side language and start worrying about things like cross-site request forgeries ;-)
(Don't worry -- that's only the surface. There's much more to learn -- in fact you never need to stop! And if you have questions, or answers, there's this incredible culture of sharing on the net ... )
If you really want to learn I would stay away from the web until you get the foundation from a book.
I bought this book and highly recommend going through it: http://www.amazon.com/gp/offer-listing/047018759X/ref=dp_olp_used?ie=UTF8&condition=used
Chapter 1: Getting Started with ASP.NET 3.5.
Chapter 2: Building an ASP.NET Web Site.
Chapter 3: Designing Your Web Pages.
Chapter 4: Working with ASP.NET Controls.
Chapter 5: Programming Your ASP.NET Web Pages.
Chapter 6: Creating Consistent Looking Web Sites.
Chapter 7: Navigation.
Chapter 8: User Controls.
Chapter 9: Validating User Input.
Chapter 10: ASP.NET AJAX.
Chapter 11: Introduction to Databases.
Chapter 12: Displaying and Updating Data.
Chapter 13: LINQ.
Chapter 14: Presenting Data — Advanced Topics.
Chapter 15: Security in Your ASP.NET 3.5 Web Site.
Chapter 16: Personalizing Web Sites.
Chapter 17: Exception Handling, Debugging, and Tracing.
Chapter 18: Deploying Your Web Site.
Appendix A: Exercise Answer.
Appendix B: Configuring SQL Server 2005.
Step 3 is probably what you are looking for: Get Started with ASP.NET
Building a website is a challenging enterprise.
However,it's never as hard or as easy as it seems. It require constant practice, and, most of all, you have to develop an appreciation for well-designed websites, and get to know what you want. They are some great book out there, but i'de like to point to you some great online resources that helped me a lot get started.
Great website building tutorial (requires basic understanding) www.youtube.com/watch?v=hc5RhddlLJE
A well-rounded online ressource for the more fancy stuff (getting into javascript, php, query, dynamic pages etc.) is www.developphp.com/ made by the same guy.
A small but helpful tut to help you display an icon to your website www.chami.com/tips/internet/110599i.html
here's one that's very professional made by Adobe and even if you don't have dreamweaver, it shows you the code: www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
And finally, here's a webpage that will point out the basics www.htmlgoodies.com/tutorials/getting_started/
If you are doing a static page, i don't think you need any javascript, unless you want to get fancy. The basic recommendations are html, xhtml, and CSS. Try to validate often, your html at http://validator.w3.org/ and your css at http://jigsaw.w3.org/css-validator/ they also have introductory courses on html, php, javascript, etc.
Good luck !
If you're somewhat experienced with programming I would recommend taking a look at some existing frameworks rather than starting from scratch. You can cut a lot of development time off designing applications. You're also not limited to php. You can use several alternatives:
- Ruby on Rails (MVC framework for Ruby web development)
- Django (MVC framework for Python web development)
They are both very viable alternatives to php. You will still need an understanding of HTML, CSS, and javascript will be very useful (and essential) tools. Mostly you'll want to focus on HTML/CSS as you first start, although you could pick it up along the way while working with PHP/Ruby/Pyhthon. You may find php more to your liking if you stem from a c background. You can find a great deal of resources for beginning these languages through google.
You also have several options for php frameworks as well, Zend, CodeIgniter, CakePHP to name a few. You could also take a look at E-Commerce apps such as Magento or Spree, blogging apps such as WordPress as well. They will allow you to create immediately functioning websites that you can use as a playground to get things started.
For starters and beyond
Start by learning HTML and CSS, then if you want to build more involved web applications - Ruby on Rails is one of the easiest frameworks to learn.
To get your website or web app online you'll need a web host and a domain. Check out http://www.ausonline.net.au for a good coverall guide to get you started, then get into Ruby on Rails by first learning Ruby basics and then getting into the Rails MVC.
You could use a variety of alternatives such as PHP, but for first timers it can be a big challenge to utilize.
For your first website, you'll only really need HTML and CSS to begin with (at the most basic level), but for web apps you'll need to get into some more involved frameworks and languages.
So, to summarize:
- decide on the type of thing you want to build.
- choose the appropriate web host and domain name.
- learn HTML and CSS.
- learn your choice of development frameworks (I recommend Ruby on Rails).
精彩评论