HTML code has become quite popular once again with the coding public. There is still a lot of things people do not know about HTML however. This article aims to answer some of the unknowns out there in the HTML code world.
Above is a picture of two basic layouts. Each layout has only four main parts. Each layout could be created very easily using just four Divs code. The second layout, setup b, is created using 5 divs code.
HTML Code Semantics and Structure
HTML code has a lot more going for it then just semantics; it can also be structure. Semantic elements on your web page will explore all the things that the element can do while a structural element on your web page will explain the contents. Both setup A and B are easy to create but one uses more structure then the other.
There are web designers out there that like to keep their web pages as simple as possible and therefore will avoid using divs code whenever they can. This creates many badly structured web sites and ugly designs that are hard to follow.
Designs should use the Div and Span codes like they are meant to be used in order to create a well structured and easy to follow web page. Separate the elements within a webpage; it may require more coding but it will look much better in the end.
HTML in the Future
HTML developers have noticed this trend to not use div and span and the ugly results. They have therefore added more structural codes for people to use that will create more elements within a web page for the user to play with.