Posts

Showing posts with the label header

Simple code for HTML 5 Layout

Image
HTML Layout Elements HTML has several semantic elements that define the different parts of a web page: <header> - Defines a header for a document or a section <nav> - Defines a set of navigation links <section> - Defines a section in a document <article> - Defines an independent, self-contained content <aside> - Defines content aside from the content (like a sidebar) <footer> - Defines a footer for a document or a section    Simple Code for HTML 5 Layout Elements:      <! DOCTYPE html > < html > < head > < title > HTML 5 Layout </ title > </ head > < style > header {     background-color : brown ;     margin : 10px ;     padding : 40px ; } nav {     background-color : aqua ;     margin : 10px ;     padding : 20px ; } section {     background-color : blueviolet ;     margin : 10px ;...