Droid
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML BASIC EXAMPLES

Go down

HTML BASIC EXAMPLES Empty HTML BASIC EXAMPLES

Post by Admin Thu Jul 23, 2015 3:58 pm

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


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

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 »
Admin
Admin
Admin
Admin

Posts : 83
Points : 31977
Reputation : 3
Join date : 2015-07-22

https://droid.1talk.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum