You are on page 1of 16

Comment in Html

The comments in the Html document are the


texts of Html which are not interpreted by the
Internet Browsers.

<!-- Any code or text want to create as single line o


r
multiple line comment -->
Background Color:

In HTML, we can change the color of the


background of a webpage.
<!Doctype Html>
<Html>
<Head>
<Title> background color </Title>
</Head>
<Body bgcolor="blue">
</Body>
</Html>
Background Image in Html

In HTML, we can easily add the background


Image in the Html document which is to be
displayed on a web page.
<!Doctype Html>
<Html>
<Head>
<Title> Background image </Title>
</Head>
<Body background=“FLower.jpg">
</Body>
</Html>
List box
The list box is a graphical control element in the HTML
document that allows a user to select one or more
options from the list of options.
<select name=“Flower" size="5">
<option value=“rose"> rose </option>
<option value=“lotus"> lotus </option>
<option value="Jasmine"> Jasmine </option>
<option value=“sunflower"> sunflower </option>
<option value=“marigold"> marigold</option>
<option value=“lily"> lily </option>
</select>
<input type = "date">
<div> tag:
<div> tag is just like a container unit which is used to
encapsulate other page elements and divides the
HTML documents into sections.
<pre> tag:

The HTML <pre> tag is used to specify pre


formatted text.
Texts within <pre>.......</pre> tag is displayed in
a fixed-width font.
<pre>
Texts within <pre>
tag is displayed in
a fixed-width font.
</pre>
Marquee HTML:

It scrolls the image or text up, down, left or right


automatically.

<marquee>
This is an example of html marquee
</marquee>
<marquee width="100%" behavior="scroll“
bgcolor="pink">
<hr> tag::

HTML <hr> tag is used to specify a paragraph-


level thematic break in HTML document.

Syntax:
<hr/>
<ol type=“a”>
<ol type=“1” start=“4”>
Write a html code to display an image
with resizing and border.
<img src=“abc.jpg" height="150px" width="150
px" border="5px" />

You might also like