Html Head
<html>, <head>, and <body>, delimit certain sections of the HTML document.The <html> tag
The <html>tag surrounds the entire HTML document. This tag tells the client
browser where the document begins and ends.
<html>
... document contents ...
</html>
Additional language options were declared within the <html>tag in previous
versions of HTML. However, those options (notably langand dir) have been
deprecated in HTML version 4.0. The language and directional information is
routinely contained in the document type declaration (<!DOCTYPE>).
The <head> tag
The <head>tag delimits the heading of the HTML document. The heading section of
the document contains certain heading information for the document. The
document’s title, meta information, and, in most cases, document scripts are all
contained in the <head>section. A typical <head>section could resemble the
following:
<head>
<link rel=“stylesheet” type=“text/css” href=“/styles.css”>
<title>Title of the Document</title>
<meta name=“description” content=“Sample Page”>
<meta name=“keywords” content=“sample, heading, page”>
<script language=“JavaScript”>
function NewWindow(url){
fin=window.open(url,“”,
“width=800,height=600,scrollbars=yes,resizable=yes”);
}
</script>
</head>
Cross- Most <head>level tags are covered in detail in Chapter 3. JavaScript scripting
Reference is covered in more detail in Chapters 15 and 28. <html>, <head>, and <body>, delimit certain sections of the HTML document.
The <html> tag
The <html>tag surrounds the entire HTML document. This tag tells the client
browser where the document begins and ends.
<html>
... document contents ...
</html>
Additional language options were declared within the <html>tag in previous
versions of HTML. However, those options (notably langand dir) have been
deprecated in HTML version 4.0. The language and directional information is
routinely contained in the document type declaration (<!DOCTYPE>).
The <head> tag
The <head>tag delimits the heading of the HTML document. The heading section of
the document contains certain heading information for the document. The
document’s title, meta information, and, in most cases, document scripts are all
contained in the <head>section. A typical <head>section could resemble the
following:
<head>
<link rel=“stylesheet” type=“text/css” href=“/styles.css”>
<title>Title of the Document</title>
<meta name=“description” content=“Sample Page”>
<meta name=“keywords” content=“sample, heading, page”>
<script language=“JavaScript”>
function NewWindow(url){
fin=window.open(url,“”,
“width=800,height=600,scrollbars=yes,resizable=yes”);
}
</script>
</head>
Cross- Most <head>level tags are covered in detail in Chapter 3. JavaScript scripting
Reference is covered in more detail in Chapters 15 and 28.
1 comment:
Really informative article of learning html. I think it can be apply to our personal website.
Post a Comment