What is HTML
Ø First developed by Tim Berners-Lee in 1990.
Ø HTML stands for Hyper
Text Markup Language.
Ø HTML is the standard markup language for creating Web pages
Ø HTML describes the structure of a Web page
Ø HTML consists of a series of elements
Ø HTML elements tell the browser how to display the content
Ø HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this
is a link" etc.
Ø The <html> element
is the root element of an HTML page
Ø The <head> element
contains meta-information about the HTML page
Ø The <title> element
specifies a title for the HTML page (which is shown in the browser's title bar
or in the page's tab)
Ø The <body> element
defines the document's body, and is a container for all the visible contents,
such as headings, paragraphs, images,
hyperlinks, tables, lists etc.
Ø The <h1> element
defines a large heading
Ø The <p> element
defines a paragraph
Ø Contained in the paragraph is the <b> tag that bolds the word example in the paragraph.
Ø Finally, the closing tags wrap each of the above tags.
Ø Extension of HTML is .html
/ .htm
What is an HTML Element
An HTML element is defined by a start tag, some
content, and an end tag:
<tagname> Content goes here...</tagname>
The HTML element is everything from the
start tag to the end tag:
<h1> My First Heading </h1>
<p>
My First paragraph. </p>
Container and Empty tags
There
are two kinds of tags: container and Empty.
Container Tag:
The container tag always wraps around text or
graphics and comes in a set with an
opening and a closing.
Empty Tag:
Empty tags do not have to be wrapped around text and
do not require a closing.
0 Comments