Tags do not appear directly when you view a web page. Instead, they serve as
instructionsto your browser
.Tags can change the font, create a link, insert an image, and more. The tags in
that begin with a slash (
<html>, <head>, <title>, and <body>)
. Closing tags stop the effect of the tag that they correspond to.
<body> section ends at the closing tag, </body>.
Tags are delineated by angle brackets (
Tags are "invisible"; they don't directly appear in the web page
Closing tags begin with a slash and end the effect of a previous tag
"Here begins the HTML."All well-formed HTML documents have one <html> and one </html> tag. These tags, along with the .html file extension, identify a file as an HTMLdocument.
: "Here begins the header." The header contains tags that apply to the overall document. For example, itmight contain tags that are designed for search engines to pick up: keywords,a short description, and so on. Information in the header is
meant to bedirectly displayed as normal webpage content.
: "Here begins the document title." (Must be in the header)
: "Here begins the body."All well-formed HTML documents have one <body> and one </body> tag. This section is where you put all the text and tags that should be displayed inthe main browser window. This is why the words, "This is my webpage"appear in index.html.
Tags have three main components:
: Identifies the type of the tag.
: Allows one type of tag to produce different effects.
: Allows particular attributes to vary.<
"...>...(text or more tags go here)...<
Misspellings and Misunderstandings
A browser processes an HTML page something like this:1.Identify anything that is between angle brackets (< >) as a "tag"