HTML BASIC EXAMPLES
Droid :: Web development :: Learn html
Page 1 of 1
HTML BASIC EXAMPLES
Don't worry if these examples use tags you have not learned.
You will learn them in the next chapters.
HTML Documents
All HTML documents must start with a type declaration: .
The HTML document itself begins with and ends with .
The visible part of the HTML document is between and .
Example
Try it Yourself »
HTML Headings
HTML headings are defined with the to
Try it Yourself »
HTML Links
HTML links are defined with the tag:
Example
This is a link
Try it Yourself »
The link address is specified in the href attribute.
Attributes are used to provide additional information about HTML elements.
HTML Images
HTML images are defined with the tag.
The source file (src), alternative text (alt), and size (width and height) are provided as attributes:
Example
now note:
Make sure the image file you want to use and the html page or file are in the same folder, else it can never work.
Try it Yourself »
You will learn them in the next chapters.
HTML Documents
All HTML documents must start with a type declaration: .
The HTML document itself begins with and ends with .
The visible part of the HTML document is between and .
Example
- Code:
<!DOCTYPE html>
<html>
<body>
[size=13]<h1>My First Heading</h1>[/size]
[size=13]<p>My first paragraph.</p>[/size]
</body>
</html>
Try it Yourself »
HTML Headings
HTML headings are defined with the
to tags:
Example
- Code:
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Try it Yourself »
HTML Paragraphs
HTML paragraphs are defined with the
Example
- Code:
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Try it Yourself »
HTML Paragraphs
HTML paragraphs are defined with the
tag:
Example
This is a paragraph.
This is another paragraph.
Try it Yourself »
HTML Links
HTML links are defined with the tag:
Example
This is a link
Try it Yourself »
The link address is specified in the href attribute.
Attributes are used to provide additional information about HTML elements.
HTML Images
HTML images are defined with the tag.
The source file (src), alternative text (alt), and size (width and height) are provided as attributes:
Example
- Code:
<img src="developer-forums-tips.jpg" alt="droid.1talk.net.com" width="104" height="142">
now note:
Make sure the image file you want to use and the html page or file are in the same folder, else it can never work.
Try it Yourself »
Droid :: Web development :: Learn html
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum