ACC (2)
ACC (2)
Tags can be nested, however they must be opened and closed in order.
Tags may/may not have attributes.
Attributes may/may not have values.
Values are written inside double quotes.
syntax:
<tagname attribute="value" attribute="value" attribute="value"> </tagname>
<html>
Example
Here the xmlns attribute is used to define the default namespace of an XHTML
document:
However this attribute is rather special in XML terms, because it’s also used as a
prefix to define additional namespaces for a document.
xmlns:namespase ="URL"
For Example:
xmlns:fb="https://www.facebook.com/2008/fbml"
<head>
Heading Tags. H1 and H2 primarily – are one of your main sources of providing the search
engines with your keywords that you will ideally want to be ranked for. As a heading usually comes
before the description, it is assigned more value than most other text on the basis it is supposed to
sum up the text or image within the page.
Meta Tags. One of the old techniques and still very important to the success of a webpage in
regards to SEO, meta tags are one of the first parts of a website you should set up. You want a
Meta title, description and meta keywords, which is going to really help your website be
understood – if your content matches the same niche as your meta tags.
<meta charset="utf-8">
<title>Head tag - HTML5 tutorial</title>
<meta name="description" content="The head tag contains the title
tag and meta tags - important to the search engines, and
information for the browser to properly display the page.">