HTML
Text Markup Language, commonly referred to as HTML, is the standard markup language used to create web pages. It is written in the form of HTMLelements consisting of tags enclosed in angle brackets (like <html> )
Types of tag:
1.Paired(Container) tag: The first tag in a pair is the start tag, and the second is the end tag (they are also called opening tags and closing tags). e.g. html-> start tag=<html>,end tag=</html> etc.
2.Unpaired(Empty) tag: There is only start tag and no need of end tag. e.g. <br>,<hr> etc.
Example of Basic HTML:
<!DOCTYPE html>
<html>
<head>
<title>index</title>
</head>
<body background=”assassins_creed_iii_7-wallpaper-1366×768.jpg”>
<fieldset>
<marquee>Daily news</marquee>
<hr>
<h1 align=”center”>Welcome</h1>
</fieldset>
<fieldset>
<button action=””>Home</button>
<button action=”Login.htm”>About</button>
</fieldset>
<p>
This is first page that give information about all website’s pages.<br><br>
<b><font face=”Arial” size=4 color=”red”> Website Content</font></b>
<hr>
<ul>
<li>first page</li>
<li>Second page</li>
<li>third page</li>
</ul>
<hr>
</p>
<br>
<br>
<a href=”login.htm”>next »</a>
<br> OR Click on image to move to form
<br><a href=”login.htm”><img src=”assassins_creed_37-wallpaper-1366×768.jpg” width=20% height=20%></a>
<html>
<head>
<title>index</title>
</head>
<body background=”assassins_creed_iii_7-wallpaper-1366×768.jpg”>
<fieldset>
<marquee>Daily news</marquee>
<hr>
<h1 align=”center”>Welcome</h1>
</fieldset>
<fieldset>
<button action=””>Home</button>
<button action=”Login.htm”>About</button>
</fieldset>
<p>
This is first page that give information about all website’s pages.<br><br>
<b><font face=”Arial” size=4 color=”red”> Website Content</font></b>
<hr>
<ul>
<li>first page</li>
<li>Second page</li>
<li>third page</li>
</ul>
<hr>
</p>
<br>
<br>
<a href=”login.htm”>next »</a>
<br> OR Click on image to move to form
<br><a href=”login.htm”><img src=”assassins_creed_37-wallpaper-1366×768.jpg” width=20% height=20%></a>
</body>
</html>
Description about Various tags:
HTML Document always start with <html> tag & end with </html> tag. We write all other tags within <html> and </html>.
Other tags:
# <head></head>: Used to write header information. e.g. title tag,meta,style,script etc.
# <title></title>: Used to define title of web page.
# <body></body>: All web page contents are written in this tag.
# <fieldset></fieldset>: Used to group related element in one field .
# <h1></h1> to <h6></h6>: Used to give heading with different size, with <h1> give large sized heading, h2 then give decreased size heading than h1 and so on.
# <button></button>: Used to create button with specified name given between start and end tag.
# <p></p>: Used to write paragraph.
# <a href=”filename.htm”></a: Used to provide hyperlink, which is used to link form one file to another.
# <br>: Used to move to next line.
# <b><i><u>: Used to bold,italic,underline the text.
# <ul>: Provide unorder list.
# <img src=”image.jpg”>: To add image in web page.
# <Marquee></marquee>: To make text movable.
Output:


No comments:
Post a Comment