Quote:
Originally Posted by C_O_R_E
To be honest, I clearly don't know the difference between semantic and non-semantiv html tags. Sorry. I didn't research well, which leads me to this pathetic code ( from a web developer point of view :/ ).
|
Well in the pre-html5 time you had only a very restricted pool of hmtl tags.
So websites looked mostly like this:
PHP Code:
div.id="header"
div.id="nav"
div.id="content"
div.class="main"
and so on.
But with HTML5, you got a lot more semantic tags, that describe the content of it.
Like
PHP Code:
<nav> <header> <article> <figure
and more.
So that are semantic tags. And there is no need to set an id for every tag you are using.
If it's something unique like the nav or header tag you can simply style the whole tag.
Well grids are no magic.
The idea is, that you have fix columns with a specific width, where you place the content. The width is in modern grids mostly percentage based. So the site get's responsive.
You can read up here a few basics
[Only registered and activated users can see links. Click Here To Register...]
You can build your own grid, use generators or use some grids off the internet.
Or you can use frameworks like bootstrap or foundation.
They will give you a grid and a lot of ready to use elements, that are all styled.
To understand girds better, they just give you some helper classes that define colums.
So *attention a bad example incoming*
imagine the following, this is a simple 4 column grid:
PHP Code:
CSS:
body { width:100% }
container {width: 1900px}
column-1-4 {width: 475px; }
column-1-2 {width: 950px; }
column-2-3 {width: 633px; }
So now you have 4 columns which you can style your page.
You can make 4 x the column-1-4 which is the smallest.
So you would get 4 small columns in a row.
Or you can make 1 x column-1-2 and 2 x column-1-4
so you have 1 column for the content which is 1/2 of the whole width of the window and 2 smaller columns which have 1/4 of the width.