html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
, | ), and headings (-0 ratings0% found this document useful (0 votes) 39 views21 pagesWeb Technologies: Basic HTML Tags The document discusses various HTML tags used to structure and format web pages. It describes common structural tags like <HTML>, <HEAD>, <BODY>, and <TITLE>. It also covers tags for text formatting (<B>, <I>, <FONT>), lists (<UL>, <OL>, <DL>), links (<A>), images (<IMG>), tables (<TABLE>, <TR>, <TD>, <TH>), and headings (<H1>-<H6>). The document provides examples and explanations of how each tag is used to build and style the content of web pages. Uploaded bySanthanakumarCopyright © © All Rights Reserved We take content rights seriously. If you suspect this is your content, claim it here. Available Formats Download as PPT, PDF, TXT or read online on Scribd 0 ratings0% found this document useful (0 votes) 39 views21 pagesWeb Technologies: Basic HTML Tags The document discusses various HTML tags used to structure and format web pages. It describes common structural tags like <HTML>, <HEAD>, <BODY>, and <TITLE>. It also covers tags for text formatting (<B>, <I>, <FONT>), lists (<UL>, <OL>, <DL>), links (<A>), images (<IMG>), tables (<TABLE>, <TR>, <TD>, <TH>), and headings (<H1>-<H6>). The document provides examples and explanations of how each tag is used to build and style the content of web pages. Uploaded bySanthanakumarCopyright © © All Rights Reserved We take content rights seriously. If you suspect this is your content, claim it here. Available Formats Download as PPT, PDF, TXT or read online on Scribd You are on page 1/ 21 WEB TECHNOLOGIESBasic HTML tagsStructural Tags <HTML> <HEAD> <TITLE> • The BODY element of a web page is an important elementin regards to the page’s appearance. • Here are the attributes of the body tag to control all the levels. • This element contains information about the page’s background color, the background image, as well as the text and link colors. Background Color • BGCOLOR attribute of body tag is used to set background color Syntax: <BODY BGCOLOR=“ color code”></BODY> Text Color • TEXT attribute is used to control the color of all the normal text in the document. The default color for text is black. Syntax: <BODY BGCOLOR=“ color code” TEXT=“color code”></BODY> Sample Structure of a Web Site <HTML> <BODY> Header Tags -- Used for marking sections and subsections in adocument. <H1>Header 1 -- Giant-sized and bold </H1><H2>Header 2 -- Large and bold </H2> <H3>Header 3 -- Normal-sized and bold </H3> <H4>Header 4 -- Small and bold </H4> <H5>Header 5 -- Very Small and bold </H5> <H6>Header 6 -- Tiny and bold </H6> Header Tags (cont.) H1 = Giant-sized and boldH2 = Large and bold H3 = Normal-sized and bold H4 = Small and bold H5 = Very Small and bold H6 = Tiny and boldBreaking Lines and Paragraphs • <P> text </P>– Paragraph tag – Most browsers render (process) this with blank lines between each paragraph • <BR> – Line break tag – Used when the webmaster wants a carriage return but doesn't want a blank line to follow Example: text a Horizontal Rule Attributes:NOSHADE -- A solid line with no shading WIDTH="xx%/xx" -- Controls the width of the line. You may specify either percentage of the width of a page or actual pixel length SIZE="xx" -- Controls the height of the line. You need to specify the dimension in pixels. ALIGN="left/center/right" -- This allows the line to be aligned to the left, right, or center of the page Text Formatting Tags Some basic text formatting styles:Tag Result <I> Italics </I> Italics<B> Bold </B> Bold <STRONG> Strong </STRONG> Strong <ADDRESS> Address </ADDRESS> Address <CITE> Citations </CITE> Citations <CODE> Source Code </CODE> Source Code Font modifications Web creators can also change the way text looks by using the <FONT> Big Small COLOR="color-name" - changes text color<FONT COLOR="red">This is red</FONT> This is red FACE="font-name" - changes font <FONT FACE="verdana">This is the verdana font;</FONT> <FONT FACE="chicago">this is the chicago font.</FONT> This is the verdana font; this is chicago font. <Font> modifications (cont.) One can combine font modifications:<FONT SIZE="7" FACE="courier" COLOR="red">Big, Courier & Red</FONT>Big, Courier & Red<FONT SIZE="7"><FONT FACE="courier">Big & Courier</FONT> - Just Big</FONT> Big & Courier - Just BigLists -- Unordered Lists Unordered lists: Unordered List Attributes:type="disc/circle/square" • Disc (default) Circle Square Lists -- Ordered Lists Ordered (Numbered) Lists:<OL> <LI> Item One 1. Item One <LI> Item Two 2. Item Two <LI> Item Three 3. Item Three <LI> Item Four 4. Item Four </OL> Ordered List Attributes:type="i/I/a/A/1" (default) i = i. Item One I = I. Item One a = a. Item One A = A. Item One 1 = 1.Item One start="xx" Definition Lists: List Name OneThis is where information about List Name One would go List Name Two This is where information about List Name Two would go Links The anchor tag <A> is used to link one document to another or from one part of a document to another part of the same document. Basic Links: Inter-document Links: Defining a point in a document:<A NAME="spot">Spot</A> Email links: To have a graphic appear on a webpage, web designers must to put the<IMG> tag in with the address where the graphic "lives": <IMG SRC="http://www.someplace.com/images/fish.gif"> Graphics attributes: All about Fish<img src="http://www.someplace.com/images/fish.gif" align="middle">All about FishAll about Fish<img src="http://www.someplace.com/images/fish.gif" align="bottom">All about FishAll about FishGraphics (cont.) <img src="http://www.someplace.com/images/fish.gif" align="left"> <img src="http://www.someplace.com/images/fish.gif" align="right">Tables The <TABLE></TABLE> element has four sub-elements:Table Row<TR></TR>. Table Header <TH></TH>. Table Data <TD></TD>. Caption <CAPTION></CAPTION>. The table row elements usually contain table header elements, or table data elements. Table Attributes 1. BGColor: Some browsers support background colors in a table. 2. Width: you can specify the table width as an absolute number of pixels or a percentage of the document width. You can set the width for the table cells as well. 3. Border: You can choose a numerical value for the border width, which specifies the border in pixels. 4. CellSpacing: Cell Spacing represents the space between cells and is specified in pixels. 5. CellPadding: Cell Padding is the space between the cell border and the cell contents and is specified in pixels. 6. Align: tables can have left, right, or center alignment. 7. Background: Background Image, will be titled in IE3.0 and above. You might also like
|
---|