Introduction To HTML: Presented by Roshana
Introduction To HTML: Presented by Roshana
Presented By Roshana
What is HTML?
Hyper Text Markup Language
HTML is a set of special codes that can be embedded in text to add formatting and linking information.
It uses markup tags to describe web pages Eg: <html>.</html> Created by Tim Berners-Lee in 1993 from SGML
Types:
(i) Paired Tags Eg: <b></b> (ii) Singular Tags Eg: <br> Tags must be nested correctly <B><I>Library WebSite </I></B> first tag on, last tag off
Contd
Tags are not case sensitive but are usually written in uppercase Most tags have optional attributes with several possible values that modify the tags behavior Look inside HTML element (Tag) TAG attribute value closing tag
Document Head Document Body <html> <head> <title> HTML Tags </title> </head> <body> <p>I'm a paragraph!</p> </body> </html>
<HTML> <HEAD> <TITLE> <BODY> <H1>, <H2>, ... <IMG ...> <A ...> <P> <BR> <OL> <UL> <LI>
</HTML> </HEAD> </TITLE> </BODY> </H1>, </H2>, ... </IMG> (optional) </A> </P> (optional) (none; "empty" tag) </OL> </UL> </LI> (optional)
<H3> Objectives</H3>
Center tag
Use <CENTER> tag to center elements on the page.
<CENTER> <H1> My Library </H1> <H2> Mission, Vision and Goals </H2> </CENTER> <H3>Objectives</H3>
Paragraph Breaks
The <P> tag breaks the textual information on a page and inserts a single line space.
<P> MyLibrary aims to be the country's public virtual library </P>
Horizontal tag
Horizontal rule <HR> tag separate major sections of the page by inserting a bar in between paragraphs or sections.
<HR width=50% size=3 align=center>
Format Tag
Format text with tags that make the text bold <B> and/or italic <I> to put emphasis on some points <B> Welcome To HTML</B> </Br> <I>HTML Tags</I>
Marquee Tag
<Marquee> Welcome To HTML </Marquee>
Ordered List Ordered list is a numbered list that uses <OL> and <LI> tags
<OL> <H2> Types Of Html </H2> <LI> Header <LI> Body <LI> Footer </OL>
Tables
<Table Border="5"> Student <Tr> <Th> Name</Th> <Th>Age</Th></Tr> <Tr> <Td>Vikash</Td> <Td>24</Td></Tr> </Table>