17
votes
Explaining why styling should not be done directly in HTML
I like the idea of producing a few style sheets, and having the pupils apply them to their HTML. They can then see the power of having separate style sheets.
Start with a style sheet that you made. ...
11
votes
Explaining why styling should not be done directly in HTML
If you only want to build a page that is simple and ad-hoc and will never change in the future and will only ever be seen on one kind of device, then, sure, build the styling directly into html. It is ...
10
votes
Explaining why styling should not be done directly in HTML
To make them really understand what you can do with CSS alone - with only substituting another CSS file - take them to the CSS Zen Garden. With exactly the same HTML for each page, and only the .css ...
9
votes
Accepted
How can you efficiently assess students web coding?
Much less detail than the excellent post by Buffy, but directly to the question. Replace unit tests with validations and linters.
Have the students create all content in distinct files: HTML, CSS, ...
8
votes
How can you efficiently assess students web coding?
For me, 60 is a very large class. Let me focus on a course design, extrapolated from other areas, in my case, the compiler course. The intent here is to make assessment feasible, rather than to say ...
7
votes
Accepted
Introductory html, css, javascript online course
I would say that you should use w3schools.com it nicely covers the basics of HTML, CSS, JavaScript and a few other related things(I would really suggest looking at MySQL/PHP if you want to go in to ...
6
votes
Explaining why styling should not be done directly in HTML
To narrow it down, I'm looking for examples or explanations of how teaching it explicitly might make it easier for the students to style their webpages. Preferably an explanation.
As richard says, ...
6
votes
Explaining why styling should not be done directly in HTML
Well ask yourself: Why do we separate anything in any form of code?
In almost every single programming/scripting language there is separation and delegation. We do this to make sure that we are more ...
5
votes
Explaining why styling should not be done directly in HTML
A slightly different way of looking at it might be to introduce DRY code (Don't Repeat Yourself).
By using CSS to do the styling, you know that by simply adding a class to a HTML element, the styling ...
5
votes
Accepted
How to "teach" CSS for students?
If you are struggling with "design" and "beautiful" and artistic mumbojumbo, you can still teach CSS while avoiding trying to turn them into pro designers.
The simplest example task I can think of is ...
5
votes
How to help students comprehend the HTML document flow?
Absolute positioning as bad practice
Referencing the StackOverflow question, "Is it considered bad practice to use absolute positioning?", the consensus is, just like nearly everything in CSS, "it ...
5
votes
Beginner Javascript course - recommended books
A great resource to learn JavaScript is Eloquent JavaScript by Marijn Haverbeke: https://eloquentjavascript.net/.
You can download the pdf for free, or you can read it online, and this is probably a ...
4
votes
How to help students comprehend the HTML document flow?
I'm not sure how you teach these things, but you may have a misconception about learning that is getting in the way. This seems to be common with newer teachers who don't yet show the scars of many ...
4
votes
Accepted
Explaining why styling should not be done directly in HTML
Would explicitly teaching the difference between setting the style attribute of an html tag, and doing it through CSS useful for increasing the students' understanding of the joining of CSS and HTML?
...
3
votes
Explaining why styling should not be done directly in HTML
We teach that there are three layers to a web page: structure, appearance, and behavior. Structure is determined by the DOM, which is created with well-formed HTML5 markup. When we learn about HTML,...
3
votes
Explaining why styling should not be done directly in HTML
Make a project in which the result is TWO completely different views of the same document, eg a version that looks great on a big monitor and another that looks great on an iPhone.
Using not a static ...
3
votes
How to "teach" CSS for students?
I'll let another answerer address the creativity part, but for the design part of your question I can share some insight. I find it useful to ask them to emulate some site that they commonly use, and ...
2
votes
Explaining why styling should not be done directly in HTML
It seems that many answers here are not addressing the point of inheritance on styling, as this should also be taught. The basic rule is what's read last will be applied.
the first to load is ...
2
votes
Introductory html, css, javascript online course
Trying to keep up with web development is hard. Every year there are new tools , new frameworks, new way to do things. But surprisingly I find the following Dinosaurs serials Peter Jang wrote in 2017 &...
1
vote
How to use CSS diner to teach beginners in CSS
(as promissed in another question, this is my answer)
focus only on the starting exercices (I go from 1 to 11)
first teach the theory .class, #id, tag, and the selectors for and, or and child (ie p ....
1
vote
How can you efficiently assess students web coding?
Assessing web dev courses at scale can be tricky because you have to consider the following:
ensure that the resulting web app looks as expected
all functionalities should work as expected with the ...
1
vote
Explaining why styling should not be done directly in HTML
An important reason why inline styles are bad is code readability, plain and simple. In this case, an example should be enough to prove your point:
...
1
vote
Explaining why styling should not be done directly in HTML
There are lots of good answers here. One point I haven't seen made yet is that content and design are often created by separate people or teams, and so having each defined with its own tools and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
css × 7html × 5
javascript × 4
web-development × 2
lesson-ideas × 1
resource-request × 1
best-practice × 1
assessment × 1
exercises × 1
front-end × 1