What Is HTML?: Content
What Is HTML?: Content
What Is HTML?: Content
What is HTML?
HTML stands for Hyper Text Markup Language. HTML adds markup to Standard English
text. Hyper Text refers to links hyperlinks that connect Web pages to one another.
A markup lanugage is a set of markup tags.
HTML documents are described by HTML tags.
Each HTML tag decribes different document content.
HTML is not case sensitive.
Tags:
<tagname>content</tagname>
Attributes:
Tags can also have attributes, which are extra bits of information. Attributes appear inside the
opening tag and their values sit inside quotation marks. They look something like:
<tag attribute=value>Margarine</tag>
Elements:
Example 1:
<body>The quick brown fox jumps over the lazy dog. </body>
Everything that is in between (and includes) <body> and </body> tags is the body element.
Example 2:
<title>Rumple Stiltskin</title>
- <!DOCTYPE> - this tag defines the document type and HTML version
- <html> - this tag encloses the complete HTML document and mainly comprises of
document header whic is represented by <head>...</head> and document body which is
represented by <body>...</body> tags.
- <head> - this tag represents the document's header which can keep other HTML tags like
<title>, <link>, etc.
- <title> - this tag is used inside the <head> tag to mention the Document title.
- <body> - this tag represents the document's body which keep other HTML tags like
<h1>, <div>, <p>, etc.
- <!-- ... --> - defines a comment.
Text between <head></head> tag is for HTML header information, which is not display in
internet browser.
Comments
An HTML marquee is a scrollin piece of text displayed either horizontally across or vertically
down your webpage depend on the settings. This is created by using HTML <marguees> tag.
Syntax:
</marquee>
Following is the list of important attributes which can be used with <marquee> tag:
HTML Lists
HTML offers web authors three ways for specifying lists of information. All lists must contain
one or more list elements.
List may contain:
<ul> - An unordered list. This will list items using plain bullets.
<ol> - An ordered list. This will use different schemes of numbers to list your items.
<dl> - A definition list. This arranges your itmes in the same way as they are arranged in a
dictionary.
An unordered list is a collection of related items that have no special order or sequence. This list
is created by using HTML <ul> tag. Each item in the list is marked with a bullet.
The type Attribute
You can use type attribute for <ul> tag to specify the type of bullet you like. By default it's a disc.
Following are the possible options:
<ul type=square>
<ul type=disc>
<ul type=circle>
If you are required to put your items in a numbered list instead of bulleted the HTML ordered
list will be used. This list is created by using <ol> tag. The numbering starts at one and is
incremented by one for each successive ordered list element tagged with <li>.
You can 0use type attribute for <ol> tag to specify the type of numbering you like. By default it
is a number.
<ol type=I>
<ol type=i>
<ol type=A>
<ol type=a>
You can use start attribute for <ol> tag to specify the starting point of numbering you need.
HTML and XHTML support a list style which is called definition lists where entries are listed like
in a dictionary or encyclopedia. The definition list is the ideal way to present a glossary, list of
terms, or other name/value list.
Definition list makes use of following four tags: