SlideShare a Scribd company logo
2
Most read
11
Most read
16
Most read
AAFREEN SHAIKH pg. 1
CHHATRAPATI SHIVAJI JUNIOR
SCIENCE COLLEGE JALGAON
HSC CHAPTER 1
HTMl Revision Part 1
HTML
First developed by Tim Berners-Lee in 1990, HTML is short
for Hypertext Markup Language.
HTML is a markup language used for structuring and presenting
content on the World Wide Web.
HTML is used to create electronicdocuments(called web pages) that
are displayed on the World Wide Web.
Each web page contains a series of connections to other pages called
hyperlinks.
HTML is definitely not a programming language but a mark-up
language.
HTML5 was the fifth and last major version of HTML that is a
World Wide Web Consortium recommendation.
AAFREEN SHAIKH pg. 2
It was released on 28th October 2014.
HTML is the standardmarkuplanguagefor creating Web pages.
• HTML describes the structure of a Web page
• HTML consists of a series of elements
• HTML elements tell the browser how to display the
content
• HTML elements are represented by tags
• HTML tags label pieces of content such as "heading",
"paragraph", "table", and so on
• Browsers do not display the HTML tags, but use them to
render the content of the page
HTML page structure:
The Basic structure of HTML page is given below. It contain some
elements like head, title, body, … etc. These elements are used to
build the blocks of web pages.
AAFREEN SHAIKH pg. 3
• The <!DOCTYPE html> declaration defines this
document to be HTML5
• The <html> element is the root element of an HTML page
• The <head> element contains meta information about the
document
• The <title> element specifies a title for the document
• The <body> element contains the visible page content
• The <h1> element defines a large heading
• The <p> element defines a paragraph
HTML Tags/Elements
HTML tags are element names surrounded by
angle brackets:
<tagname>content goes here...</tagname>
HTML tags normally come in pairs like <p> and
</p>
The first tag in a pair is the start tag, the second tag
is the end tag
The end tag is written like the start tag, but with a
forward slash inserted before the tag name
The start tag is also called the opening tag, and the
end tag the closing tag.
Tags tells the browser about content display
property. If a tag is not closed then browser applies
that effect till end of page.
AAFREEN SHAIKH pg. 4
<DOCTYPE! html>: This tag is used to tells the HTML version.
This currently tells that the version is HTML 5.
<html>: This is called HTML root element and used to wrap all the
code. The <html> tag represents the root of an HTML document.
It is the containerfor all otherHTML elements, whichare enclosed in
<html> ………. </html>
<head>: The <head> element is a container for all the head
elements. The <head> element can include a title for the document,
scripts, styles, meta information, and more.
All the HTML elements that can be used inside the <head> element
are:
• <title>
• <style>
• <title>
• <base>
• <noscript>
• <script>
AAFREEN SHAIKH pg. 5
• <meta>
• <link>
The <title> element: defines a titleto web page which is displayedin
the title bar of the Browser window.
It provides a title for the page when it is added to favorites
It displays a title for the page in search-engine results
<body>:
The <body> tag defines the document's body. This is the section
which is displayed on the web page.
Body tag is used to enclosed all the data which a web page has from
texts to links. All of the content that you see rendered in the browser
is contained within this element.
The <body>element containsall the contentsof an HTML document,
such as text, hyperlinks, images, tables, lists, etc.
which are enclosed in <body> …… </body>
HTML page can be created using any text editor (notepad).
Then save that file using .htm or .html extension and
open that file in a Web browser E.g. Chrome, Mozilla Firefox,
Opera, Edge, Internet Explorer, etc.
Note: HTML is not case sensitive. You can write tags in small or
capital letters or in combination
Example No. 1
Type the following html code in notepad and save it
with firstpage.html
AAFREEN SHAIKH pg. 6
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> My First Web Page </TITLE>
</HEAD>
<BODY bgcolor=cyan text=blue>
This is my first web page. <BR> I love HTML.
</BODY>
</HTML>
In the above example <BR> tag is used to give a line break.
Attributes of <body> tag:
background – containsthe sourceURL of image file to be displayed
in the background.
bgcolor – specifies the color name or color code for the background
color of the web page.
text – specifies the color for the text in the web page.
link – specifies the color for the links in the web page.
alink - specifies the color of an active link in the web page.
vlink - specifies the color of an visited link in the web page.
The attributes link, alink and vlink will be used when we have
hyperlinks in the web page.
Example No. 2
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> My School </TITLE>
</HEAD>
AAFREEN SHAIKH pg. 7
<BODY background="school.jpg" text=blue>
<H1> St. Judes High School </H1>
<P>
Started in 1995, <B>St. Jude's High School</B>
is a Roman Catholic, Co-ed school having till ISC
Class 12.
The school is administered by <I>St. Dominic Savio
Educational Society </I>which is committed to providing
<U>quality education</U> to children.
</P>
</BODY>
</HTML>
In aboveexamplebackgroundattributeused in <body> tag to specify
the background picture. Copy picture file in the same folder where
you will be saving the html file.
Some formatting tags are used like <b>, <i> and <u>
Formatting Tags
(All the tags will have a close tag)
<b> ….. </b> – Displays the text in bold style.
<i> ….. </i> – Displays the text in italics style.
<u> ….. </u> – Underlines the text.
<tt> ….. </tt> – Displays text in mono spaced font style.
<strong> ….. </strong> – Displays text bold style.
<em> ….. </em> – Defines emphasized text.(browsers displays in
italics style).
<mark> ….. </mark> – Displays marked or highlighted text
<del> ….. </del> – Displays deleted or removed text.
<ins> ….. </ins> – Defines inserted(added) text.
<sub> ….. </sub> – Defines subscripted text.
AAFREEN SHAIKH pg. 8
<sup> ….. </sup> – Defines superscripted text.
<small> ….. </small> – Reduces the font size of text by 1 unit.
<big>….. </big> – Increases the font size of text by 1 unit.
<font> ….. </font> – Changes the font of the text.
Attributes of <font> tag:
Face – specifies the name of the font
Size – specifies the size of the letters values: 1 to 7
Color – specifies the color name or color code
Example No. 3
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Formatting tag example </TITLE>
</HEAD>
<BODY bgcolor=cyan text=blue>
<h1> Formatting in HTML </h1>
<strong> The different programming languages are:
</strong>
<br>
<tt> Java </tt> <br>
<small> Python </small> <br>
<del> Ruby </del> <br>
<big> React </big> <br>
<mark> JavaScript </mark> <br>
<br>
<hr color="green" width="50%" size=3>
Example of sup and sub tags : <br>
a<sup>2</sup> + b<sup>2</sup> <br> <br>
H<sub>2</sub>SO<sub>4</sub>
</BODY>
</HTML>
AAFREEN SHAIKH pg. 9
Attributes of an html element
• An attribute defines a property for an element, consists of
an attribute/value pair, and appears within the element's start
tag.
• An element's start tag may contain any number of space
separated attribute/value pairs.
<hr> tag
It is used to display horizontal ruled line. The attributes of <hr> are:
color – sets the color for the ruled line.
width – specifies the length of line in % or pixels
size – sets the thickness of the line.
AAFREEN SHAIKH pg. 10
Example: <hr color=blue width=“50%” size=4>
Headings in HTML
HTML provides six level of heading tags.
The range is from 1 to 6.
Header tags will display text in bold and large size.
<H1> is largest level heading.
HTML providesan additionalblank linebefore and after a heading in
a web page.
Align attribute is used to specify horizontal alignment. (left, center
and right)
Examples
<H1> Advanced Web Designing</H1>
<H2 align=“center”>HTML Forms</H2>
Paragraphs in HTML
<p> tag is used to start a paragraph in HTML
Align attribute is used to set the alignment of the paragraph with
respect to web page
The paragraph ends with </p>
AAFREEN SHAIKH pg. 11
Example:
<p>The Internet is a powerful media to transmit information. The
pages of information displayed on the internet are referred to as
webpages.</p>
Example :
Output:
AAFREEN SHAIKH pg. 12
Text Formatting Elements
<strong> – Displays text bold style.
<mark> – Displays marked or highlighted text
<del> – Displays deleted or removed text.
<ins> – Defines inserted(added) text.
<sup> – Displays text in superscript form.
<sub> – Displays text in subscript form.
<code> – To represent program code text.
AAFREEN SHAIKH pg. 13
AAFREEN SHAIKH pg. 14
<font> tag
<font> – Specify the font size, font face and color of text.
Attributes :
color - specifies the color of the text
face - specifies the font of the text
size - specifies the font size (Range 1 to 7)
Output:
AAFREEN SHAIKH pg. 15
Inserting Images in HTML
<img> tag is used to insert an imagewithina web page. It is an empty
tag.
Attributes of <img> tag:
Attribute Value Description
src URL Specifies the URL of an image
Align
top
bottom
middle
left
right
Specifies the alignment of an image according to surro
height pixels Specifies the height of an image
AAFREEN SHAIKH pg. 16
width pixels Specifies the width of an image
alt text Specifies an alternate text for an image
border pixels Specifies the width of the border around an image
Types of Images:Image Format Types
File Extension
WebP (Web Picture) .webp
JPEG (Joint Photographic Experts Group) .jpg or .jpeg
PNG (Portable Network Graphics) .png
GIF (Graphics Interchange Format) .gif
BMP (Bitmap) .bmp
TIFF(Tagged Image File Format) .tiff
Example:
Output:
AAFREEN SHAIKH pg. 17
HTML Symbols
Many mathematical, technical, and currency symbols, are not present
on a normal keyboard.
To add such symbols to an HTML page, you can use an HTML entity
name.
If no entityname exists, you can use an entity number, a decimal, or
hexadecimal reference.
What is HTML Entity?
Entities are used to display reserved characters and symbols in
HTML.
A character entity looks like this:
&entity_name;
or
&#entity_number;
AAFREEN SHAIKH pg. 18
Some of the Mathematical Symbols supported in HTML
Currency and other symbols :
AAFREEN SHAIKH pg. 19
To insert non breaking space in HTML web page
&nbsp;
HTML Colors
Color values in HTML can be given in three ways:
A) Color Name E.g. Orange, Tomato
B) Hex Color Code E.g. #ff6347
C) RGB Code E.g. RGB(255, 99, 71)
HTML supports 140 standard color names.
Example:
<body bgcolor=“LawnGreen”>
<body bgcolor=“#7CFC00”>
<body bgcolor=“rgb(124, 252, 0)”>

More Related Content

PPTX
Unit 2 Internet and web technology CSS report
PPTX
HTML.pptx
PDF
HTML.pdf
PPTX
html (1) (1).pptx for all students to learn
PPT
html
PPTX
html.pptx class notes to prepare html completly
DOCX
Lesson A.1 - Introduction to Web Development.docx
PPT
Unit 2 (html)
Unit 2 Internet and web technology CSS report
HTML.pptx
HTML.pdf
html (1) (1).pptx for all students to learn
html
html.pptx class notes to prepare html completly
Lesson A.1 - Introduction to Web Development.docx
Unit 2 (html)

Similar to HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf (20)

PPTX
001-Hyper-Text-Markup-Language-Lesson.pptx
PDF
WEB PROGRAMMING bharathiar university bca unitII
PPT
Web Design.ppt
PPTX
About html
PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
DOC
Html, xml and java script
PPTX
Week-1_PPT_WEBAPPS-done.pptx
PPTX
Introduction to html
PPT
Web Development
PPTX
introduction to html and css for beginners
PPTX
BVK_PTT_HTML-Unit - III (1).pptx
DOCX
Web Designing.docx
PDF
web development.pdf
PPTX
Basic HTML
PPTX
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
PPTX
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
PPTX
Html1
PPTX
Best Option to learn start here HTML.pptx
PPT
Html ppt by Fathima faculty Hasanath college for women bangalore
PPT
001-Hyper-Text-Markup-Language-Lesson.pptx
WEB PROGRAMMING bharathiar university bca unitII
Web Design.ppt
About html
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
Html, xml and java script
Week-1_PPT_WEBAPPS-done.pptx
Introduction to html
Web Development
introduction to html and css for beginners
BVK_PTT_HTML-Unit - III (1).pptx
Web Designing.docx
web development.pdf
Basic HTML
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
Html1
Best Option to learn start here HTML.pptx
Html ppt by Fathima faculty Hasanath college for women bangalore
Ad

More from AAFREEN SHAIKH (20)

PDF
3-inheritanc-and-variation.pdf HSC BIOLOGY 3-inheritanc-and-variation
PDF
1-reproduction-in-plants-assignment-notes.pdf
PDF
Rotational-Dynamics-ppt3.pdf HSC PHYSICS CHAPTER 1 ROTATIONAL DYNAMIC PART 3
PDF
Rotational-Dynamics-ppt2.pdf HSC PHYSICS CHAPTER 1 Rotational-Dynamics PART-2
PDF
Rotational-Dynamics-ppt1.pdf HSC PHYSICS CHAPTER 1 Rotational-Dynamics PART-1
PDF
assesment-12th BY AAFREEN SHAIKH.pdf HSC assesment
PDF
English-Paper-Pattern.pdf HSC ENGLISH PAPER PATTERN
PDF
Lesson-6-Ecommerce-&-EGovernance BY AAFREEN SHAIKH.pdf
PDF
Lesson-5-php BY AAFREEN SHAIKH.pdf HSC INFORMATION TECHNOLOGY CHAP 5 PHP
PDF
Lesson-4-Emerging-Technology BY AAFREEN SHAIKH.pdf
DOCX
Std.-XI-Unit-Test-No.-1-Third-Practice-Test-By-Prof.-Aafreen Shaikh.docx
PDF
Std.-XI-Unit-Test-2-By-Prof.-aafreen shaikh.pdf
PDF
Std.-XI-Unit-Test-No.1-For-First-Term-By-Prof.-Aafreen Shaikh.pdf
PDF
GEOGRAPHY QUESTION PAPER.pdf HSC GEOGRAPHY QUESTION PAPER
PDF
CHEMISTRY QUESTION PAPERS.pdf HSC CHEMISTRY QUESTION PAPERS
PDF
marathi question paper.pdf hsc marathi prelims sample question papers
PDF
Ls-No-1 Web Publishing Notes.pdf 12th information technology chapter 1
PDF
Solutions - formula sheet.pdf 12TH IMPORTANT FORMULA SHEET CHAP 3 CHEMISTRY
PDF
Some basic Concepts of Chemistry.pdf class 11th science chemistry chapter 1 s...
PPT
HTML NOTES.ppt BASIC HTML PROGRAMING NOTES
3-inheritanc-and-variation.pdf HSC BIOLOGY 3-inheritanc-and-variation
1-reproduction-in-plants-assignment-notes.pdf
Rotational-Dynamics-ppt3.pdf HSC PHYSICS CHAPTER 1 ROTATIONAL DYNAMIC PART 3
Rotational-Dynamics-ppt2.pdf HSC PHYSICS CHAPTER 1 Rotational-Dynamics PART-2
Rotational-Dynamics-ppt1.pdf HSC PHYSICS CHAPTER 1 Rotational-Dynamics PART-1
assesment-12th BY AAFREEN SHAIKH.pdf HSC assesment
English-Paper-Pattern.pdf HSC ENGLISH PAPER PATTERN
Lesson-6-Ecommerce-&-EGovernance BY AAFREEN SHAIKH.pdf
Lesson-5-php BY AAFREEN SHAIKH.pdf HSC INFORMATION TECHNOLOGY CHAP 5 PHP
Lesson-4-Emerging-Technology BY AAFREEN SHAIKH.pdf
Std.-XI-Unit-Test-No.-1-Third-Practice-Test-By-Prof.-Aafreen Shaikh.docx
Std.-XI-Unit-Test-2-By-Prof.-aafreen shaikh.pdf
Std.-XI-Unit-Test-No.1-For-First-Term-By-Prof.-Aafreen Shaikh.pdf
GEOGRAPHY QUESTION PAPER.pdf HSC GEOGRAPHY QUESTION PAPER
CHEMISTRY QUESTION PAPERS.pdf HSC CHEMISTRY QUESTION PAPERS
marathi question paper.pdf hsc marathi prelims sample question papers
Ls-No-1 Web Publishing Notes.pdf 12th information technology chapter 1
Solutions - formula sheet.pdf 12TH IMPORTANT FORMULA SHEET CHAP 3 CHEMISTRY
Some basic Concepts of Chemistry.pdf class 11th science chemistry chapter 1 s...
HTML NOTES.ppt BASIC HTML PROGRAMING NOTES
Ad

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Complications of Minimal Access Surgery at WLH
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Cell Structure & Organelles in detailed.
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
master seminar digital applications in india
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Supply Chain Operations Speaking Notes -ICLT Program
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Complications of Minimal Access Surgery at WLH
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Anesthesia in Laparoscopic Surgery in India
Renaissance Architecture: A Journey from Faith to Humanism
Insiders guide to clinical Medicine.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Cell Structure & Organelles in detailed.
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
master seminar digital applications in india
Abdominal Access Techniques with Prof. Dr. R K Mishra
STATICS OF THE RIGID BODIES Hibbelers.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis

HSC INFORMATION TECHNOLOGY CHAPTER 1 ADVANCED WEB DESIGNING PART I.pdf

  • 1. AAFREEN SHAIKH pg. 1 CHHATRAPATI SHIVAJI JUNIOR SCIENCE COLLEGE JALGAON HSC CHAPTER 1 HTMl Revision Part 1 HTML First developed by Tim Berners-Lee in 1990, HTML is short for Hypertext Markup Language. HTML is a markup language used for structuring and presenting content on the World Wide Web. HTML is used to create electronicdocuments(called web pages) that are displayed on the World Wide Web. Each web page contains a series of connections to other pages called hyperlinks. HTML is definitely not a programming language but a mark-up language. HTML5 was the fifth and last major version of HTML that is a World Wide Web Consortium recommendation.
  • 2. AAFREEN SHAIKH pg. 2 It was released on 28th October 2014. HTML is the standardmarkuplanguagefor creating Web pages. • HTML describes the structure of a Web page • HTML consists of a series of elements • HTML elements tell the browser how to display the content • HTML elements are represented by tags • HTML tags label pieces of content such as "heading", "paragraph", "table", and so on • Browsers do not display the HTML tags, but use them to render the content of the page HTML page structure: The Basic structure of HTML page is given below. It contain some elements like head, title, body, … etc. These elements are used to build the blocks of web pages.
  • 3. AAFREEN SHAIKH pg. 3 • The <!DOCTYPE html> declaration defines this document to be HTML5 • The <html> element is the root element of an HTML page • The <head> element contains meta information about the document • The <title> element specifies a title for the document • The <body> element contains the visible page content • The <h1> element defines a large heading • The <p> element defines a paragraph HTML Tags/Elements HTML tags are element names surrounded by angle brackets: <tagname>content goes here...</tagname> HTML tags normally come in pairs like <p> and </p> The first tag in a pair is the start tag, the second tag is the end tag The end tag is written like the start tag, but with a forward slash inserted before the tag name The start tag is also called the opening tag, and the end tag the closing tag. Tags tells the browser about content display property. If a tag is not closed then browser applies that effect till end of page.
  • 4. AAFREEN SHAIKH pg. 4 <DOCTYPE! html>: This tag is used to tells the HTML version. This currently tells that the version is HTML 5. <html>: This is called HTML root element and used to wrap all the code. The <html> tag represents the root of an HTML document. It is the containerfor all otherHTML elements, whichare enclosed in <html> ………. </html> <head>: The <head> element is a container for all the head elements. The <head> element can include a title for the document, scripts, styles, meta information, and more. All the HTML elements that can be used inside the <head> element are: • <title> • <style> • <title> • <base> • <noscript> • <script>
  • 5. AAFREEN SHAIKH pg. 5 • <meta> • <link> The <title> element: defines a titleto web page which is displayedin the title bar of the Browser window. It provides a title for the page when it is added to favorites It displays a title for the page in search-engine results <body>: The <body> tag defines the document's body. This is the section which is displayed on the web page. Body tag is used to enclosed all the data which a web page has from texts to links. All of the content that you see rendered in the browser is contained within this element. The <body>element containsall the contentsof an HTML document, such as text, hyperlinks, images, tables, lists, etc. which are enclosed in <body> …… </body> HTML page can be created using any text editor (notepad). Then save that file using .htm or .html extension and open that file in a Web browser E.g. Chrome, Mozilla Firefox, Opera, Edge, Internet Explorer, etc. Note: HTML is not case sensitive. You can write tags in small or capital letters or in combination Example No. 1 Type the following html code in notepad and save it with firstpage.html
  • 6. AAFREEN SHAIKH pg. 6 <!DOCTYPE HTML> <HTML> <HEAD> <TITLE> My First Web Page </TITLE> </HEAD> <BODY bgcolor=cyan text=blue> This is my first web page. <BR> I love HTML. </BODY> </HTML> In the above example <BR> tag is used to give a line break. Attributes of <body> tag: background – containsthe sourceURL of image file to be displayed in the background. bgcolor – specifies the color name or color code for the background color of the web page. text – specifies the color for the text in the web page. link – specifies the color for the links in the web page. alink - specifies the color of an active link in the web page. vlink - specifies the color of an visited link in the web page. The attributes link, alink and vlink will be used when we have hyperlinks in the web page. Example No. 2 <!DOCTYPE HTML> <HTML> <HEAD> <TITLE> My School </TITLE> </HEAD>
  • 7. AAFREEN SHAIKH pg. 7 <BODY background="school.jpg" text=blue> <H1> St. Judes High School </H1> <P> Started in 1995, <B>St. Jude's High School</B> is a Roman Catholic, Co-ed school having till ISC Class 12. The school is administered by <I>St. Dominic Savio Educational Society </I>which is committed to providing <U>quality education</U> to children. </P> </BODY> </HTML> In aboveexamplebackgroundattributeused in <body> tag to specify the background picture. Copy picture file in the same folder where you will be saving the html file. Some formatting tags are used like <b>, <i> and <u> Formatting Tags (All the tags will have a close tag) <b> ….. </b> – Displays the text in bold style. <i> ….. </i> – Displays the text in italics style. <u> ….. </u> – Underlines the text. <tt> ….. </tt> – Displays text in mono spaced font style. <strong> ….. </strong> – Displays text bold style. <em> ….. </em> – Defines emphasized text.(browsers displays in italics style). <mark> ….. </mark> – Displays marked or highlighted text <del> ….. </del> – Displays deleted or removed text. <ins> ….. </ins> – Defines inserted(added) text. <sub> ….. </sub> – Defines subscripted text.
  • 8. AAFREEN SHAIKH pg. 8 <sup> ….. </sup> – Defines superscripted text. <small> ….. </small> – Reduces the font size of text by 1 unit. <big>….. </big> – Increases the font size of text by 1 unit. <font> ….. </font> – Changes the font of the text. Attributes of <font> tag: Face – specifies the name of the font Size – specifies the size of the letters values: 1 to 7 Color – specifies the color name or color code Example No. 3 <!DOCTYPE HTML> <HTML> <HEAD> <TITLE> Formatting tag example </TITLE> </HEAD> <BODY bgcolor=cyan text=blue> <h1> Formatting in HTML </h1> <strong> The different programming languages are: </strong> <br> <tt> Java </tt> <br> <small> Python </small> <br> <del> Ruby </del> <br> <big> React </big> <br> <mark> JavaScript </mark> <br> <br> <hr color="green" width="50%" size=3> Example of sup and sub tags : <br> a<sup>2</sup> + b<sup>2</sup> <br> <br> H<sub>2</sub>SO<sub>4</sub> </BODY> </HTML>
  • 9. AAFREEN SHAIKH pg. 9 Attributes of an html element • An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element's start tag. • An element's start tag may contain any number of space separated attribute/value pairs. <hr> tag It is used to display horizontal ruled line. The attributes of <hr> are: color – sets the color for the ruled line. width – specifies the length of line in % or pixels size – sets the thickness of the line.
  • 10. AAFREEN SHAIKH pg. 10 Example: <hr color=blue width=“50%” size=4> Headings in HTML HTML provides six level of heading tags. The range is from 1 to 6. Header tags will display text in bold and large size. <H1> is largest level heading. HTML providesan additionalblank linebefore and after a heading in a web page. Align attribute is used to specify horizontal alignment. (left, center and right) Examples <H1> Advanced Web Designing</H1> <H2 align=“center”>HTML Forms</H2> Paragraphs in HTML <p> tag is used to start a paragraph in HTML Align attribute is used to set the alignment of the paragraph with respect to web page The paragraph ends with </p>
  • 11. AAFREEN SHAIKH pg. 11 Example: <p>The Internet is a powerful media to transmit information. The pages of information displayed on the internet are referred to as webpages.</p> Example : Output:
  • 12. AAFREEN SHAIKH pg. 12 Text Formatting Elements <strong> – Displays text bold style. <mark> – Displays marked or highlighted text <del> – Displays deleted or removed text. <ins> – Defines inserted(added) text. <sup> – Displays text in superscript form. <sub> – Displays text in subscript form. <code> – To represent program code text.
  • 14. AAFREEN SHAIKH pg. 14 <font> tag <font> – Specify the font size, font face and color of text. Attributes : color - specifies the color of the text face - specifies the font of the text size - specifies the font size (Range 1 to 7) Output:
  • 15. AAFREEN SHAIKH pg. 15 Inserting Images in HTML <img> tag is used to insert an imagewithina web page. It is an empty tag. Attributes of <img> tag: Attribute Value Description src URL Specifies the URL of an image Align top bottom middle left right Specifies the alignment of an image according to surro height pixels Specifies the height of an image
  • 16. AAFREEN SHAIKH pg. 16 width pixels Specifies the width of an image alt text Specifies an alternate text for an image border pixels Specifies the width of the border around an image Types of Images:Image Format Types File Extension WebP (Web Picture) .webp JPEG (Joint Photographic Experts Group) .jpg or .jpeg PNG (Portable Network Graphics) .png GIF (Graphics Interchange Format) .gif BMP (Bitmap) .bmp TIFF(Tagged Image File Format) .tiff Example: Output:
  • 17. AAFREEN SHAIKH pg. 17 HTML Symbols Many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add such symbols to an HTML page, you can use an HTML entity name. If no entityname exists, you can use an entity number, a decimal, or hexadecimal reference. What is HTML Entity? Entities are used to display reserved characters and symbols in HTML. A character entity looks like this: &entity_name; or &#entity_number;
  • 18. AAFREEN SHAIKH pg. 18 Some of the Mathematical Symbols supported in HTML Currency and other symbols :
  • 19. AAFREEN SHAIKH pg. 19 To insert non breaking space in HTML web page &nbsp; HTML Colors Color values in HTML can be given in three ways: A) Color Name E.g. Orange, Tomato B) Hex Color Code E.g. #ff6347 C) RGB Code E.g. RGB(255, 99, 71) HTML supports 140 standard color names. Example: <body bgcolor=“LawnGreen”> <body bgcolor=“#7CFC00”> <body bgcolor=“rgb(124, 252, 0)”>