Prof. Varsha Tank (IT/ICT Dept. - Ljiet) : Presented by
Prof. Varsha Tank (IT/ICT Dept. - Ljiet) : Presented by
-
Presented by :
LJIET)
UNIT – 2
HTML AND CSS – cont.
Topics to be covered
HTML Structure
HTML Code Formatting
First HTML page
First HTML Page: Tags
First HTML Page: Header
First HTML Page: Body
Basic HTML Tags
HTML Structure
HTML is comprised of “elements” and “tags”
§ Begins with <html> and ends with </html>
An HTML element consists of an opening tag, a closing tag and the content inside.
First HTML Page: Header
First HTML Page: Body
Basic HTML Tags
<a> for link
<b> to make bold text
<strong> for bold text with emphasys
<body> main HTML part
<br> for break
<div> it is a division or part of an HTML document
<h1>... for titles
<i> to make an italic text
<img> for images in document
<ol> is an ordered list, <ul> for an unordered list
<li> is a list item in bulleted (ordered list)
<p> for paragraph
<span> to style part of text
HTML Elements
An HTML element is defined by a start tag, some content, and an end tag:
<tagname>Content goes here...</tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Some HTML elements have no content (like the <br> element). These
elements are called empty elements. Empty elements do not have an end
tag!