230 likes | 457 Views
Introduction of HTML. Learn to make a complete website on your own that will include text, graphics, tables, lists and links. HTML Document Heading. The syntax used of heading tag is. < Hn > Text of heading </ Hn >. </H1>. </H2>. </H3>. </H4>. </H5>. </H6>.
E N D
Introduction of HTML • Learn to make a complete website on your own that will include text, graphics, tables, lists and links.
HTML Document Heading The syntax used of heading tag is <Hn> Text of heading </Hn> </H1> </H2> </H3> </H4> </H5> </H6>
HTML Paragraph Tag <P> Paragraph 1 </P> <P> Paragraph 2 </P> The <P> tag used to define the beginning of a new paragraph in a web page
HTML Attribute of <P> tag A paragraph in web page defined by <P> tag can be aligned using the align attributes An apple a day keep the doctor away. An apple a day keeps the doctor way An apple a day keeps the doctor away Center align Left align Right align
HTML Break Tag <BR> • The <BR> tag is used to give a single line break This is an example to display line break .
HTML No Break Tag <NOBR> • The opposite of <BR> tag is <NOBR> This is long piece of text which explains the concept of no line break in a paragraphs. Text can be viewed by scrolling horizontally
Formatting Tags <B> Bold tag display the text in bold Click Start is an interesting series of books for students.
Italics tag <I> • Italics tag display the text in italics. Italics tag <I> Truth gives a short answer ; lies go round about.
Underline tag <U> • Underline tag helps to underline the text Italics tag <I> If at first you don’t succeed, try, try, try again.
Strikethrough tag, <STRIKE> • Strikethrough tag is used to strike a line through the middle of the text. Italics tag <I> HTML is not a markup language
Superscript tag <SUP> & <SUB> Italics tag <I> The chemical formula of water is H2O X2 + Y2 Superscript tag <SUB> Superscript tag <SUP>
Center tag <CENTER> Center tag display the text or an image in the center of the web page Italics tag <I> Center text
Horizontal Rule Tag <HR> The attributes or options used with the <HR> tag.
Comment Tag <COMMENT> • Comment tag is a container tag, used to insert comment in the HTML code that you use. The comments are not reflected on the web page. Italics tag <I> Click Start
Inserting Images To insert an image you use the following syntax: <IMG src= “image name”> • Align attribute can have the following values. • To align the image to the left margin : align=“ left” • To align the image to the right margin: align=“ right” • To align the image with top of the letters in the current line: align=“top” • To align the image with the base line of the letters in the current line: align =“bottom” • To align the image in the middle of the page : align=“middle”
2. Height : This attribute specifies the height of the image 3. Width: This attribute specifies the width of the image. 4. Border : It is a numeric value which sets the width of the border around the image. 5. Alt: This attribute assigns an alternative text to be displayed if the image is not available.
Inserting image in HTML Italics tag <I> Powerpuff girls are my favourite cartoon characters. I like the way they fight for a good cause. They are very swift in their work. which is your favourite cartoon character ?
Hyperlinks in HTML • The tag use to produce links is called the Anchor tag, or <A> • <A> tag has the following attributes: • Href : This attribute is actually responsible for creating links. • The syntax used is : • <A href=“URL”>Link text </A> • 2. Name: This attribute is used to name a portion of a same document or another document. • This portion can then be linked by using href. • <A name=“A1”>
Internal & External linking Internal linking When you link a portion of the same document then it is known as internal linking. External linking When you link two different documents then it is known as external linking.
Define colors for all links on the page • By default, the links on a web page are blue in color and are underlined. • The basically three attributes used for changing the color of the hyperlink. • Link • Vlink • Alink