Using the internal css method, Should the html and css be written simultaneously or 1 needs to be written first? What works 4 u? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Using the internal css method, Should the html and css be written simultaneously or 1 needs to be written first? What works 4 u?

I've been practicing css with html for a while now but I wanna ask a little question, when adding an internal css to an html language, is it advisable to write the whole css code first and keep referring to it using the selectors(id/class) or its better if I write both the html and the css side by side while working on the project?

22nd Sep 2019, 4:30 PM
Emmanuel Sakyi
Emmanuel Sakyi - avatar
6 Answers
+ 14
Makzo same here, skills i learnt after several unfinished work fustrations. after sketching and writing details i wish to implement on paper
22nd Sep 2019, 8:04 PM
BlackRose Mike
BlackRose Mike - avatar
+ 6
My style of writing code is this: * I write HTML first to make the structure i.e. to write the texts, forms, buttons, etc * Then, CSS to design those things I wrote in HTML. And to make the layout. As I focus on each, it makes my work easier, procedural and faster.
22nd Sep 2019, 5:54 PM
Makzo
Makzo - avatar
+ 4
BlackRose Mike That's exactly what I went through during my first days of coding.
22nd Sep 2019, 8:14 PM
Makzo
Makzo - avatar
+ 3
I usually write html first, then css
22nd Sep 2019, 4:39 PM
Dlite
Dlite - avatar
+ 3
๐Ÿ‘๐Ÿ‘
22nd Sep 2019, 11:03 PM
Makzo
Makzo - avatar
+ 2
I think the first thing you should do is visualize and choose the design of what you want to do so you don't have to waste time later because you don't have a clear idea. For this you can help with a design tool such as Adobe Illustrator, Photoshop, etc., in my case I prefer Adobe XD (Adobe experience), or at least paper and pencil. Once the idea is clear, create the entire structure in HTML, and finally the CSS works. I think it is the most organized and fastest way to work. In summary, first the structure with html and then the style with css, just as Makzo and BlackRose Mike pose. ๐Ÿ˜‰
22nd Sep 2019, 9:54 PM
Yoel
Yoel - avatar