The document discusses HTML tags and elements. It explains that HTML is used to define the structure and layout of web pages using markup tags. Some key tags are <h1> for headings, <p> for paragraphs, and <a> for links. Attributes provide additional information about elements, and the HTML specification has evolved through several versions over the years.
2. HTML ONLINE LEARNING
The DOCTYPE declaration defines the document type
The text between <html> and </html> describes the web
page
The text between <body> and </body> is the visible page
content
The text between <h1> and </h1> is displayed as a heading
The text between <p> and </p> is displayed as a paragraph
3. WHAT IS HTML?
HTML is a language for describing web pages.
HTML stands for Hyper Text Markup Language
HTML is a markup language
A markup language is a set of markup tags
The tags describe document content
HTML documents contain HTML tags and plain text
HTML documents are also called web pages
4. HTML TAGS
HTML markup tags are usually called HTML tags.
HTML tags are keywords (tag names) surrounded by angle brackets
like <html>
HTML tags normally come in pairs like <p> and </p>
The first tag in a pair is the start tag, the second tag is the end tag
The end tag is written like the start tag, with a slash before the tag
name
Start and end tags are also called opening tags and closing tags
<tagname >content</tagname>
5. HTML ELEMENT
In HTML, most elements are written with a start tag (e.g.
<p>) and an end tag (e.g. </p>), with the content in between
An HTML element is everything from the start tag to the end
tag:
<p>This is a paragraph.</p>
STARTING TAG ELEMENT END TAG
<P> THIS IS PARAGRAPH </P>
<A href=SANGAM> THIS IS A LINK </A>
<BR>
6. An HTML element starts with a start tag / opening tag
An HTML element ends with an end tag / closing tag
The element content is everything between the start and
the end tag
Some HTML elements have empty content
Empty elements are closed in the start tag
Most HTML elements can have attributes
7. Nested HTML Elements
Most HTML elements can be nested (can contain other HTML
elements).
HTML documents consist of nested HTML elements.
Empty HTML Elements
HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag defines
a line break).
Tip: In XHTML, all elements must be closed. Adding a slash inside the
start tag, like <br />, is the proper way of closing empty elements in
XHTML (and XML).
8. HTML WEB BROWSDERS
The purpose of a web browser (such as Google Chrome,
Internet Explorer, Firefox, Safari) is to read HTML
documents and display them as web pages.
The browser does not display the HTML tags, but uses the
tags to determine how the content of the HTML page is to
be presented/displayed to the user
11. HTML Attributes
HTML elements can have attributes
Attributes provide additional information about an element
Attributes are always specified in the start tag
Attributes come in name/value pairs like: name="value"
HTML links are defined with the <a> tag. The link address is specified
in the href attribute
<a href="http://www.w3schools.com">This is a link</a>
12. HTML ATRIBUTES
Attribute values should always be enclosed in quotes.
Attribute names and attribute values are case-insensitive.
13. LIST OF HTML ATRIBUTES AND ITS DISCRIPTIONS
< !--------.------->
IT Defines a comment.
<!DOCTYPE>
IT Defines the document type.
14. <A href></A>
IT Defines a HYPERLINK.
<ABBR></ABBR>
Defines an abbreviation.
The <abbr title="World Health Organiza-
tion">WHO</abbr> was founded in 1948.