Beruflich Dokumente
Kultur Dokumente
What is HTML?
It is a mark up language.
A Computer Language use to add objects
and information to a Web Page.
Webpage and Website
Syntax:
<HTML> </HTML>
Basic Tag Command in HTML
<HEAD> refers to a tag that is placed at the beginning of the other
HTML tags.
Syntax:
<HEAD > </HEAD>
Basic Tag Command in HTML
<TITLE> refers to a tag that displays a text in the title bar.
Syntax:
<Title>Sample TITLE</title>
Input Output
Basic Tag Command in HTML
Syntax:
<BODY BGCOLOR=“GRAY”>Statement</BODY> or
<BODY BACKGROUND=“ 1.jpg”>
Input Output
If you want to see your background full on your webpage just add this code:
TIP style =" background-size:cover;“ after the declaration of the image.
Basic Tag Command in HTML
<H1> means header1 a tag that increases the size of the text.
Syntax:
Basic Tag Command in HTML
<B>means bold and refers to a tag that changes the
text to boldface
Syntax:
<B> Hi Selena Gomez ng Fatima</B>
Basic Tag Command in HTML
<I> means italic it refers to a tag that change the text to italic.
Syntax
<i>Hi Selena Gomez ng Fatima</i>
Basic Tag Command in HTML
<U> means underline it refers to a tag that underlines a text.
Syntax:
<U> i>Hi Selena Gomez ng Fatima </U>
Basic Tag Command in HTML
<FONT> refers to a tag that modifies the text font.
Syntax
<FONT COLOR='White' SIZE=5 FACE='AFRICAN'> Hi Selena Gomez ng Fatima ! </font>
Basic Tag Command in HTML
<MARQUEE> refers to a tag that is used to move text or image in the web
page.
Syntax:
<MARQUEE>FATIMA</MARQUEE>
Basic Tag Command in HTML
<!-- -- > refers to a tag that is used to indicate a remark about the web page.
Syntax:
<!–- This is my project -- >
Basic Tag Command in HTML
Types of HTML TAGS
Container Tags have both opening and closing tags and are used to surround text within your document
for presentation by the tag.
The Closing tag name Is ended by a forward slash.
Eg.
<i>Hello Fatima</i>
<B> I am Selena</B>
Empty Tags use only an opening and tell the browser to perform an instruction such as breaking the to the
next line, inserting a horizontal line or inserting an image.
Ex.
<br>, <hr>
<img src=“samplepic.jpg”>
Basic Tag Command in HTML
<S> is used to define strikethrough text.
Syntax:
<S> </S> or <STRIKE> </STRIKE>
Lists
Each paragraph in the list needs to begin with a list item tag <LI> instead of
the usual <P> tag.
If you want your list to have letters or roman numerals instead of numbers,
then you can include a TYPE attribute in your <OL> tag to specify the kind of
list you want. The choices are 1, a, A, i, I..
If you want to make your list start from a certain number you can include a
START attribute which which specifies the beginning number.
Basic Tag Command in HTML
<ol> means ordered list and a tag that indicates the name of a list or ordered items.
Syntax:
<ol>
</ol>
If you want to change the type of bullet then the choices for the
TYPE attribute are disc (default), square and circle. There is no
START attribute.
Basic Tag Command in HTML
Basic Tag Command in HTML
• Definition List
Definition lists begin with a <DL> tag and end with a closing </DL> tag.
Each paragraph within the list is either a definition term which starts with a <DT> tag, or a
definition description which starts with a <DD> tag.
The descriptions are usually indented in the web browser. These lists can be used for a lot more than
just definitions.
Basic Tag Command in HTML
Basic Tag Command in HTML
The <HR> element causes the browser to display a horizontal line (rule) in your document.
Horizontal rules give you a way to visually separate sections of your document.
Example:
<BODY>
This text is directly above the rule.<HR>
And this text is immediately below<P>
Whereas this text will have space before the rule.<P><HR><P>
And this text has space after the rule.
</BODY>
Basic Tag Command in HTML
Key attributes for use with the <HR> element:
Basic Tag Command in HTML
<IMG SRC> means image source and it refers to a tag is used to
insert picture to the webpage.
Syntax:
<img src=‘nameofthepic.jpg’ height=“250” width=350”>
Basic Tag Command in HTML
Links
Gives the location and filename of a document.
Creating Links
Basic Tag Command in HTML
Example:
Rhea/gg.html
Basic Tag Command in HTML
Basic Tag Command in HTML
<A HREF> it refers to a tag that is used to make a text or image a
hyperlink.
Syntax<a href=“sample.html”>Next Page</a>
Basic Tag Command in HTML
Another Example:
<a href=“sample.html”><img src="gg.jpg" width= 25 height=25></a>