Professional Documents
Culture Documents
HTML
HTML
HTML
BY
MAMATA PANDEY
HTML
<html>
<head>
<title>This is document title</title>
</head>
<body>
Document content goes here.....
</body>
</html>
tag description
<html> This tag encloses the complete HTML document and mainly
comprises of document header which is represented by <head>
...</head> and document body which is represented by <body>
...</body>
<head> This tag represents the document's header which can keep
other HTML tags like <title>,<link> etc.
<title> The tag is used inside the tag to mention the document title.
<body> This tag represents the document's body which keeps other
HTML tags like <h1> , <p> , <div> etc.
Basic HTML tags
tags description
<h1>, <h2> , <h3>, <h4> , <h5> ,and <h6> Header tags
<p> Paragraph
<br/> Line break
<hr/> Horizontal line
<b>…</b> Bold
<i>…</i> Italic
<u>..</u> Underline
<strike>…</strike> Strikethrough
<big>…</big> One size bigger text
<small>…</small> One size smaller text
Attributes
height
This specifies the height of the marquee. This can be a value like 10 or 20% etc.
direction
This specifies the direction in which marquee should scroll. This can be a value like up, down,
left or right.
behavior
This specifies the type of scrolling of the marquee. This can have a value like scroll, slide and alternate.
scrolldelay
This specifies how long to delay between each jump. This will have a value like 10 etc.
scrollamount
This specifies the speed of marquee text. This can have a value like 10 etc.
Inserting image
Example:<img src="imgage1.jpg" alt=“My image" width="500" height="600">
<a> tag
The <a> tag or anchor defines a hyperlink, which is used to link from one page to
another.
The most important attribute of the <a> element is the href attribute, which
indicates the link's destination
Example:
<a href="https://www.google.com">Visit Google!</a>
The target attribute
The target attribute specifies where to open the linked document.
The target attribute can have one of the following values:
•_self -Default. Opens the document in the same window/tab as it was
clicked
•_blank - Opens the document in a new window or tab
•_parent - Opens the document in the parent frame
•_top - Opens the document in the full body of the window
Example:
<a href=“image1.jpg" download>
Other options with href attribute
Link:
<a href="mailto:someone@example.com">Send
email</a>
Telephone:
<a href="tel:+4733378901">+47 333 78 901</a>
Use image as Link
Example:
<a href=“www.Google.com">
<img src="smiley.gif" alt=“Google" style="width:42px;height:42px;">
</a>
Thank