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

Background Background Color Text Color Link Margin

This document provides an overview of common HTML tags and their functions for formatting text, inserting images, creating links, and structuring pages. It explains tags for headings, paragraphs, lists, tables, frames, and forms. Syntax examples are provided for many tags and their attributes to specify features like colors, sizes, and positioning.

Uploaded by

shambhavi
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)
25 views3 pages

Background Background Color Text Color Link Margin

This document provides an overview of common HTML tags and their functions for formatting text, inserting images, creating links, and structuring pages. It explains tags for headings, paragraphs, lists, tables, frames, and forms. Syntax examples are provided for many tags and their attributes to specify features like colors, sizes, and positioning.

Uploaded by

shambhavi
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

TAGS AND ATTRIBUTES EXPLANATION SYNTAX

HTML Indicates the language <HTML>


HEAD Sub elements to define header <HEAD>
TITLE Title of document <TITLE>
STYLE Cascading style sheet info. <STYLE>
BODY Contents of page <BODY>
 BACKGROUND Sets image as background <body background=”image.jpg>
 BACKGROUND COLOR Sets background colour < body bgcolor=” colour”>
 TEXT COLOR Sets colour of text < body text=” colour”>
 LINK Sets colour of link < body link=”colour”>
 MARGIN Used to specify margins < body leftmargin=”20”>
&NBSP Extra space between text Add between text
HORIZONTAL RULE Rule <hr>
 SIZE Thickness of line <hr size=”15”>
 WIDTH Width across web page <hr width=”40%”>
 ALIGN Alignment <hr align=” value”
 COLOR Change colour <hr color=”colour name”>
 NO SHADE Produces a 3d grey rule <hr noshade>
MARQUEE Scrolling piece of text <marquee>
 BEHAVIOR Type of scrolling < marquee behaviour=”scroll”>
 BGCOLOR Colour of scrolling text < marquee bgcolor=” color”>
 DIRECTION Direction of scrolling the text < marquee direction=” up”>
PARAGRAPH New paragraph <p>
LINE BREAK New line <br>
ALIGNMENT Arrange text <align=”center”>
HEADING Header <h1>
COMMENT Insert information in source code <!—title of web-->
FORMATING TAGS
BASEFONT Change font style of web page <basefont>
 COLOR
 FACE Change font
 SIZE
FONT Appearance of specific text <font>
 COLOR
 FACE
 SIZE
BOLD <B>
UNDERLINE <I>
ITALIC <U>
TELETYPE TEXT Text appears in typewriter form <tt>
STRIKETHROUGH Strikes text <strike>
SMALL FONT Font in small <small>
SUBSCRIPT <sub>
SUPERSCRIPT <sup>
EMPHASIZE TEXT Emphasises text <em>
STRONGLY EMPHASIZES TEXT More than bold <strong>
KEYBOARD Keyboard typing <kbd>
CITATION Title or italics <cite>
CODE Displays a code <code>
SAMPLE Text in fixed width font <sam>
DELETED TEXT Shows deleted text <delete>

ORDERED LIST Makes a NUMBERED LIST <OL>


 TYPE=”1”
 TYPE=”A”
 TYPE=”I”
UNORDERED LIST Bulleted list <UL>
 CIRCLE o
 SQUARE 
 DISK 
DEFINATION LIST Used for definition types <dl> <dt> <dd>
NESTED LIST Lists under lists

IMAGE TO INSERT AN IMAGE <img>


 SOURCE SPECIFIES NAME AND PATH <img src=”file”>
 ALT SHORT DESCRIPTION OF IMAGE < img alt=”text”>
 HEIGHT AND WIDTH DIMENSION OF IMAGE < img height=”value”,
width=”value”>
 ALIGN POSITION OF IMAGE < img align=”value”>
 BORDER OUTLINE OF THE IMAGE < img border=”no zero value>
EMBED TO INSERT EXTERNAL FILE
 SOURCE LOCATION <SRC>
 TYPE SPECIFIES TYPE OF CONTENT <type>
 WIDTH <width>
 HEIGHT <height>
 AUTOSTART SETS AUTOMATICITY
VIDEO TO INSERT A VIDEO
 SOURCE URL <src>
 CONTROLS SPECIFIES VIDEO CONTROLS <controls>
 HEIGHT PIXELS <height>
 WIDTH PIXELS <width>
 AUTOPLAY AUTOMATICITY <auto>
 LOOP START AGAIN

ANCHOR TO CREATE A LINK <A>


 TITLE ADDITIONAL INFO ABOUT PAGE <TITLE>
 TARGET SPECIFY LOCATION OF NEXT PAGE <TARGET>
 HOTSPOT IMAGE AS A HYPERLINK <IMGSRC>
 NAME NAME THE LOCATION <NAME>
ALINK
VLINK
TABLES TO CREATE TABLES IN WEB <TABLE>
 BORDER OUTLINE OF TABLE <BORDER>
 BORDERCOLOR SPECIFY BORDER COLOUR <BORDERCOLOR>
 BGCOLOR CHANGE THE COLOUR OF TABLE <BGCOLOR>
 BACKGROUND IMAGE IN BACKGROUND <BACKGROUND>
 HEIGHT AND WIDTH <HEIGHT> <WIDTH>
 ALIGN TO ALIGN <TABLE ALIGN=”EG”>
 VALIGN ALIGN VERTICALLY <VALIGN>
CAPTION DEFINES THE TITLE <CAPTION>
HEADER DEFINES TABLE HEADER CELL <TH>……</TH>
ROW SPECIFIES A ROW WITHIN A TABLE <TR>……</TR>
COLUMN DEFINES A TABLE DATA CELL <TD>……</TD>
CELLSPACING ADJUST THE SPACE AROUND <CELLSPACING>
BORDERS
CELLPADDING <CELLPADDING>
MERGING AND SPANNING TO COMBINE ACROSS TABLE
 COLSPAN FOR COLUMNS <COLSPAN=”N”>
 ROWSPAN FOR ROWS <ROWSPAN=”N”>
 NOWRAP TO TURN OFF WORD WRAPPING

FRAMESET DIVIDES PAGES FOR LOADING <FRAMESET>


 COLS COLUMNS IN THE FRAMESET <COLS>
 ROWS TO ARRANGE FRAME HORIZONTAL <ROWS>
 BORDER SPECIFIES WIDTH OF BORDER <BORDER
 FRAME BORDER 3D BORDER BETWEEN FRAMES <FRAMEBORDER>
 BORDER COLOR COLOUR OF FRAME BORDER <BORDERCOLOR>
 FRAME SPACING AMOUNT OF SPACE BETWEEN <FRAMESPACING>
FRAMES
FRAME CONTENT OF THE FRAMESETS <FRAME>
 SOURCE PATH OF FILE <SRC>
 NAME NAME TO THE FRAME <NAME>
 MARGIN WIDTH <MARGINWIDTH>
 MARGIN HEIGHT <MARGINHEIGHT>
 SCROLLING GIVE A SCROLLBAR TO FRAME <SCROLLING=YES,NO,AUTO>
 NO RESIZE PREVENTS USER FROM RESIZING <NORESIZE>
FRAME
FORMS

You might also like