Bummer! This is just a preview. You need to be signed in with a Pro account to view the entire video.
Start a free Basic trial
to watch this video
Nick is asked, "What's the best way to code a website?" Nick suggests coding the HTML first and then building CSS on top of that.
-
0:00
[Treehouse Teacher Q & A]
-
0:05
[Question: What is the best way to code a website?]
-
0:06
How do you generally go about coding a website like that?
-
0:09
That's actually a really good question.
-
0:11
So sometimes when we're teaching things, we try to teach it
-
0:16
in the best way or the most correct way, but really with web designing development,
-
0:25
it's a little bit more fuzzy than that--there's not really going to be a best way
-
0:29
to do things all the time and often times when I am making websites,
-
0:34
I'll go ahead and code up the HTML first.
-
0:37
I will sit and really think about--okay, here is the content that I have,
-
0:42
here is how I want to go ahead and structure it.
-
0:45
I think I'm going to need these divs or this area or whatever and structure all of the elements.
-
0:54
Then I'll go ahead and jump into my CSS and style everything, but often times
-
1:00
it is a little bit more kinetic and messy than that.
-
1:02
You kind of go back and forth between HTMLing and CSSing
-
1:07
until you kind of arrive at a conclusion.
-
1:11
I think a website is a lot like a painting or a film or something where it's never really quite done.
-
1:19
You could always keep tweaking it and doing things to it,
-
1:22
but the most important thing is that you lay down that good structure first
-
1:27
and then go ahead and figure out--okay, how do I want to present that content
-
1:32
and always keeping that clean separation of presentation and structure in your mind
-
1:37
I think just help in so many different ways.
-
1:40
[Question: What is the best way to code a website?]
-
1:41
[Treehouse Teacher Q & A]
You need to sign up for Treehouse in order to download course files.
Sign up