1 00:00:00,000 --> 00:00:05,040 [Treehouse Teacher Q & A] 2 00:00:05,040 --> 00:00:06,690 [Question: What is the best way to code a website?] 3 00:00:06,690 --> 00:00:09,210 How do you generally go about coding a website like that? 4 00:00:09,210 --> 00:00:11,850 That's actually a really good question. 5 00:00:11,850 --> 00:00:16,750 So sometimes when we're teaching things, we try to teach it 6 00:00:16,750 --> 00:00:25,240 in the best way or the most correct way, but really with web designing development, 7 00:00:25,240 --> 00:00:29,810 it's a little bit more fuzzy than that--there's not really going to be a best way 8 00:00:29,810 --> 00:00:34,400 to do things all the time and often times when I am making websites, 9 00:00:34,400 --> 00:00:37,270 I'll go ahead and code up the HTML first. 10 00:00:37,270 --> 00:00:42,190 I will sit and really think about--okay, here is the content that I have, 11 00:00:42,190 --> 00:00:45,830 here is how I want to go ahead and structure it. 12 00:00:45,830 --> 00:00:54,230 I think I'm going to need these divs or this area or whatever and structure all of the elements. 13 00:00:54,230 --> 00:01:00,040 Then I'll go ahead and jump into my CSS and style everything, but often times 14 00:01:00,040 --> 00:01:02,840 it is a little bit more kinetic and messy than that. 15 00:01:02,840 --> 00:01:07,390 You kind of go back and forth between HTMLing and CSSing 16 00:01:07,390 --> 00:01:11,000 until you kind of arrive at a conclusion. 17 00:01:11,580 --> 00:01:19,560 I think a website is a lot like a painting or a film or something where it's never really quite done. 18 00:01:19,560 --> 00:01:22,640 You could always keep tweaking it and doing things to it, 19 00:01:22,640 --> 00:01:27,470 but the most important thing is that you lay down that good structure first 20 00:01:27,470 --> 00:01:32,160 and then go ahead and figure out--okay, how do I want to present that content 21 00:01:32,160 --> 00:01:37,140 and always keeping that clean separation of presentation and structure in your mind 22 00:01:37,140 --> 00:01:40,600 I think just help in so many different ways. 23 00:01:40,600 --> 00:01:41,660 [Question: What is the best way to code a website?] 24 00:01:41,660 --> 00:01:44,070 [Treehouse Teacher Q & A]