Webpage layout: Difference between revisions

m
Text replacement - "http://wiki.sandaysoft.com/" to "https://cumuluswiki.wxforum.net/"
(update)
m (Text replacement - "http://wiki.sandaysoft.com/" to "https://cumuluswiki.wxforum.net/")
(4 intermediate revisions by one other user not shown)
 
[[file:Divlayout3.png]]
=Aside, Section, Article, Header, Main, Footer - the alternative HTML tags=
In HTML5, where you could use Div before, you can now use header, footer, aside, main, article or section. These were introduced because they are more meaningful terms.
 
 
header - this is used to group elements at the start of an article, aside, or section;
footer<header> - this is used to group elements at the endstart of an article, aside, or section;
 
aside - this is used to group elements that are not an essential part of the content and typically appear to one side;
article<footer> - this is used to group elements thatat havethe aend logicalof connectionan witharticle, each otheraside, but are not essential to be related to the elements outside the articleor groupingsection;
 
section - Like div this is a way of grouping elements, but it is often used when the grouped elements do have a connection with those outside the section grouping.
<aside> - this is used to group elements that are not an essential part of the content and typically appear to one side;
 
<article> - this is used to group elements that have a logical connection with each other, but are not essential to be related to the elements outside the article grouping, you can have several ''article'' elements and can nest them like ''div'';
 
<section> - Likethis is very like 'div', thisit is a way of grouping elements, butit can appear multiple times and be nested; it is often used when the grouped elements do have a connection with those outside the section grouping.
 
<main> - this is a special grouping tag, it can only appear once, it should not include any navigation links, header nor footer information; it is used to denote the part of a web-page that really matters, the bit you might choose to read first or have displayed when you first visit the page.
 
=Spans=
Here is the complete source code, with the style sheet written into the HTML. Normally the Stylesheet would be in it's own file, as per the discussion on the previous article
 
httphttps://wikicumuluswiki.sandaysoftwxforum.comnet/files/divlayout.txt
 
 
</article></pre>
 
To further develop the design, include
To further develop the design, include '<aside> some HTML content </aside>' to add in information not directly related to the '<main> some HTML content </main>. Your [[Stylesheets]] could position this to the right hand side of the content in 'main' for viewing on a monitor, but below it for narrower media when you print or view on some other devices. Have a look at the HTML used on those web-sites you like, as most browsers offer 'view source'.
 
<pre><aside> some HTML content </aside></pre>
 
to add in information not directly related to the
 
<pre><main> some HTML content </main></pre>.
 
To further develop the design, include '<aside> some HTML content </aside>' to add in information not directly related to the '<main> some HTML content </main>. Your [[Stylesheets]] could position this to the right hand side of the content in 'main' for viewing on a monitor, but below it for narrower media when you print or view on some other devices. Have a look at the HTML used on those web-sites you like, as most browsers offer 'view source'.
 
= The next article to read …… =