Unit-2 HTML Notes- Part 1
Unit-2 HTML Notes- Part 1
HTML tags do not define exactly how the Web page is supposed to look;
rather, the tags describe how the elements of the page, such as headings,
lists, paragraphs, and so on, are to be used.
HTML is not case sensitive, i.e., the tags either in uppercase like <HTML> or
the tags in lower case like <html> means the same as <Html>.
</TAG>
The number of attributes varies from tag to tag. An attribute can have
several values to be selected. Every HTML tag has a closing tag or an
ending tag as </TAG>. However, some of the tags might work without
the ending tags.
HTML is not case sensitive, i.e., the tags either in uppercase like
<HTML> or the tags in lower case like <html> means the same as
<Html>.
Markup Languages
Every HTML document has two parts: a head and a body. These parts
can be distinguished by using following tags:
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
Markup Languages
After creating the HTML document as mentioned above, the page will be
displayed as follows:
XML is a generic framework for storing any amount of text or any data
whose structure can be represented as a tree. The only requirement is
that the text must be enclosed between a start tag and a corresponding
end tag. For example,
This element states what version of XML is in use. It may also contain
information about character encoding.
Markup Languages
The root element can be preceded by this optional XML declaration.
<ROOT>
<CHILD>
<SUBCHILD> … </SUBCHILD>
</CHILD>
</ROOT>
For example,
<BOOKSTORE>
</BOOK>
</BOOK>
</BOOKSTORE>
Markup Languages
After creating the XML document as mentioned above, the page will be
displayed as follows:
1. It is text – based.
2. It can represent common computer science data structures:
records, lists, and trees.
3. Its self documenting format describes structure and field names
as well as specific values.
4. It is platform – independent.
5. It can be updated incrementally.
The tags used to tell the browser how to display pages are written according
to a set of rules (a syntax) and the collection of tags and rules for using
them to make a page is known as the Hypertext Mark Up Language.
Below are the HTML tags or codes for a simple Web page.
<HTML>
<HEAD>
<TITLE>
My page
</TITLE>
</HEAD>
<BODY>
<H1>Joe Bloggs</H1>
<HR>
<UL>
<LI>Shell peas
<LI>Peel potatoes
<LI>Write C++ programs
</UL>
<HR>
Markup Languages
</BODY>
</HTML>
If you