Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
8 views3 pages

HTML

The document explains various HTML tags including <marquee> for scrolling content, <a> for creating hyperlinks, and <img> for embedding images. It details attributes for these tags and introduces HTML forms, highlighting input elements, labels, and submission/reset buttons. The document serves as a guide for basic HTML elements and their functionalities.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

HTML

The document explains various HTML tags including <marquee> for scrolling content, <a> for creating hyperlinks, and <img> for embedding images. It details attributes for these tags and introduces HTML forms, highlighting input elements, labels, and submission/reset buttons. The document serves as a guide for basic HTML elements and their functionalities.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

The Marquee Tag:

The <marquee> tag in HTML makes your text, image, graphics, and
videos move or scroll on your web page.

Attribute Description Values

Behavior Scrolling behavior Alternate, slide, scroll

Direction Scrolling direction Left, right, up, down

Bgcolor Background color Color name or value

Scrolldelay Delay in scrolling A number in

millisecond

Height Height of scroll area A number in pixels

width Width of scroll area A number in pixels

1. Anchor Tag

The anchor tag is an HTML element used to create hyperlinks on web


pages.

Hyperlinks are used to direct users to different sections of the same


webpage,another webpage or various types of data such as files, images,
or documents.

The anchor tag is denoted by the <a> element.

Attributes of anchor tag:

href: It specifies the URL of the page or document the link navigates or
jumps to.

Hyperlinks can be of two types:

a. External link: It links to an external web document of the same or


different website.

b. Internal link: It links to the specific location of the same web page.

Intra-page links or bookmarks

Intra-page links or bookmarks are used to direct the user to a different


location on the same page. It is also possible to jump to a particular
location on another web page using bookmarks.
To use intra-page links, a name anchor is used. For instance, <A NAME =
“top”> </A>. Here, it is necessary to give a name at the specific point on
the page where the tag occurs. The </A> tag must be included, but no
text is required between <A> and </A>.

<A HREF = “ #TOP “> TOP <A>

3. Adding Images to HTML Document

The <img> tag is used to embed an image in an HTML page.

Attributes

SRC: Path or location and name of the image file

ALIGN: Defines the position of the image: left / centre / right

BORDER :Defines the size of border of the inserted image

WIDTH: Defines the width of an image (in pixel value or percentage of the
browser’s window)

HEIGHT: Defines the height of an image (in pixel value or percentage of the
browser’s window)

HSPACE: Defines a space of specified size to the left and the right of the
image.

VSPACE: Defines a space of specified size to the top and the button of the
image

ALT: Defines the alternate text-based information if the user is unable to view
the image due to server or networking issues.

HTML forms: An HTML form is used to collect user input. The user input is
most often sent to a server for processing.

The HTML <form> element is used to create an HTML form for user input:

Input Elements:

Forms utilize various input elements to collect different types of data:

<input> element: The most versatile input element, its behavior changes
based on the type attribute
(e.g., text, password, email, radio, checkbox, submit, file).

<textarea> element: Used for multi-line text input, suitable for comments
or feedback.

<select> element: Creates a drop-down list for single or multiple


selections, with options defined by <option> elements.
Labels:

The <label> element is used to associate a label with a form control,


improving accessibility and user experience.

Submission and Reset Buttons:

Submit button: Sends the form data to the server.

Reset button: Resets all form controls to their initial values.

Attributes:

Various attributes enhance form functionality, such as name (for


identifying input data), value (for default values), required (for mandatory
fields), and placeholder (for input hints).

You might also like