RCS 202 HTML Part 1
RCS 202 HTML Part 1
What is HTML?
• HTML tags normally come in pairs like <HTML> and </HTML> i.e.
• Start and end tags are also called opening tags and closing tags
HTML Page Structure
<html>
<head>
</head>
<body>
< body>
</body>
< h1>This a Heading</h1>
< p>This is a paragraph.</p>
< p>This is another paragraph.</p>
< /body>
</html>
HTML - <head> Element
• The <head> is usually the first element contained inside the <html>
element. While it is also an element container that encapsulates other
HTML elements, these elements are not directly displayed by a web
browser, they function behind the scenes, providing more descriptive
information about the HTML document, like page title and other meta
data.
• Elements used for scripting (JavaScript) and formatting (CSS) are also
contained within the <head> element
HTML - <title> Element
• The <title> element adds a title to a web page. Web page titles are
displayed at the top of any browser window or at the top of
browser tabs. They are probably the first thing seen by web surfers
as pages are loaded,
• web pages bookmark/Favorites ___saved using the web pages'
titles.
• A proper title makes a good first impression, and any page caught
without a title is considered unprofessional.
<title> Dawha School </title>
HTML - <body> Element
• <BODY> - This tag show contents of the web page will be displayed.
HTML Attributes
• Attributes of <BODY>
• BGCOLOR=”code”
• Specify color for background of the screen
• BACKGROUND=”path/file”
• Tiles the graphic in the file to fit the screen
<BODY BGCOLOR=”green”>
<BODY BGCOLOR=”#00FF00”>
<BODY BACKGROUND=”abcpict.jpg”>
Changing Font
• HTML links are defined with the <a> tag. The link address is
specified in the href attribute:
• <a href="http://www.dawhaschool.ae">This is a my school
website</a>
Types of HTML Tags
There are two different types of tags:->
Container Element:->
Container Tags contains start tag & end tag i.e.
<HTML>… </HTML>
Empty Element:->
Empty Tags contains start tag i.e.
<BR>
Example: Code With HTML
<HTML>
<HEAD>
<TITLE>
MY FIRST PAGE
</TITLE>
</HEAD>
<BODY>
GLOBAL INFORMATION CHANNEL
</BODY>
</HTML>
HTML Headings
• Headings are defined with the <h1> to <h6> tags.