SlideShare uma empresa Scribd logo
1 de 23
Introduction to 
HTML 
HAMEDA HURMAT
Definitions 
W W W – World Wide Web. 
HTML – Hypertext Markup Language – The Language of 
Web Pages on the World Wide Web. 
HTML is a text formatting language. 
URL – Uniform Resource Locator. 
Browser – A software program which is used to show web 
pages.
What is HTML? 
Hypertext Markup Language. 
HTML is a computer language that is use to create documents on the Word Wide Web. 
HTML is very simple , and logical. It reads from left to right, top to bottom and uses plain text. 
HTML is NOT a programming language, but a markup-up language that uses <Tags> like this. 
The websites you view on the internet are actually text files that consist of HTML Tags.
HTML Issues for Organizations 
Why the need to know HTML code? 
WYDIWG( What You See Is What You Get) editors like ( Front Page and Dreamweaver) create 
program-specific code that is incomprehensible to other programs and may not be displayed 
correctly on all browsers or all operating System 
You cannot edit them if you don’t have the original software, Or know enough about HTML and 
how it works to be able to make small edits your self 
Company Intranets mostly use HTML 
HTML is now also use in email and in email marketing 
HTML is increasingly used as the basis of standalone applications that use a GUI
Advantages of knowing HTML code 
New technologies start out as code without tools 
 HTML(early days), JavaScript, Java, ASP, XML 
Even if you use WYSIWYG editors, it helps to know HTML code to insert ASP or JavaScript into a 
HTML file 
If you can read code, you can copy clever idea from others( within reason and the law). 
Go to any web page, click on “view” “page source “or "source” and the HTML code used to 
create that web page can be studied or just copied 
Web authoring tools don’t give as much control 
 Most web professional web designers use HTML
Write HTML Using Notepad or TextEdit 
HTML can be edited by using a professional HTML editor like: 
 Adobe Dreamweaver 
 Microsoft Expression Web 
 CoffeeCup HTML Editor 
However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit 
(Mac). 
We believe using a simple text editor is a good way to learn HTML. 
Follow the 4 steps below to create your first web page with Notepad. 
Click Start (bottom left on your screen). Click All Programs. Click Accessories. Click Notepad.
“Normal text” surrounded by bracketed tags that 
tell browsers how to display web pages 
Pages end with “.htm” or “.html” 
HTML Editor – A word processor that has been 
specialized to make the writing of HTML documents 
more effortless.
TAGS 
HTML markup tags are usually called HTML tags 
HTML tags are keywords surrounded by angle brackets like <html> 
HTML tags normally come in pairs like <b> and </b> 
The first tag in a pair is the start tag, the second tag is the end tag 
Start and end tags are also called opening tags and closing tags
TAGS 
Codes enclosed in brackets 
Usually paired 
<TITLE>My Web Page</TITLE> 
Not case sensitive 
<TITLE> = <title> = <TITLE>
Creating a Basic Starting Document 
<HTML> 
<HEAD> 
<TITLE>Sharq University</TITLE> 
</HEAD> 
<BODY> 
This is what is displayed. 
</BODY> 
</HTML>
Co… 
The HEAD of your document point to above window 
part. The TITLE of your document appears in the very 
top line of the user’s browser. If the user chooses to 
“Bookmark” your page or save as a “Favorite”; it is 
the TITLE that is added to the list. 
The text in your TITLE should be as descriptive as 
possible because this is what many search engines, 
on the internet, use for indexing your site.
Setting Document Properties 
Document properties are controlled by 
attributes of the BODY element. For 
example, there are color settings for the 
background color of the page, the 
document’s text and different states of 
links.
Headings, <Hx> </Hx> 
Inside the BODY element, heading elements H1 through H6 are generally used 
for major divisions of the document. Headings are permitted to appear in any 
order, but you will obtain the best results when your documents are displayed in 
a browser if you follow these guidelines: 
H1: should be used as the highest level of heading, H2 as the next highest, and 
so forth. 
You should not skip heading levels: e.g., an H3 should not appear after an H1, 
unless there is an H2 between them.
<HTML> 
<HEAD> 
<TITLE> Example Page</TITLE> 
</HEAD> 
<BODY> 
<H1> Heading 1 </H1> 
<H2> Heading 2 </H2> 
<H3> Heading 3 </H3> 
<H4> Heading 4 </H4> 
<H5> Heading 5 </H5> 
<H6> Heading 6 </H6> 
</BODY> 
</HTML> 
Heading 1 
Heading 2 
Heading 3 
Heading 4 
Heading 5 
Heading 6
Paragraphs, <P> </P> 
Paragraphs allow you to add text to a document in such a way that it 
will automatically adjust the end of line to suite the window size of 
the browser in which it is being displayed. Each line of text will 
stretch the entire length of the window.
<HTML><HEAD> 
<TITLE> Example Page</TITLE> 
</HEAD> 
<BODY></H1> Heading 1 </H1> 
<P> Paragraph 1, ….</P> 
<H2> Heading 2 </H2> 
<P> Paragraph 2, ….</P> 
<H3> Heading 3 </H3> 
<P> Paragraph 3, ….</P> 
<H4> Heading 4 </H4> 
<P> Paragraph 4, ….</P> 
<H5> Heading 5 </H5> 
<P> Paragraph 5, ….</P> 
<H6> Heading 6</H6> 
<P> Paragraph 6, ….</P> 
</BODY></HTML> 
Heading 1 
Paragraph 1,…. 
Heading 2 
Paragraph 2,…. 
Heading 3 
Paragraph 3,…. 
Heading 4 
Paragraph 4,…. 
Heading 5 
Paragraph 5,…. 
Heading 6 
Paragraph 6,….
Break, <BR> 
Line breaks allow you to decide where the text will 
break on a line or continue to the end of the window. 
A <BR> is an empty Element, meaning that it may 
contain attributes but it does not contain content. 
The <BR> element does not have a closing tag.
<HTML> 
<HEAD> 
<TITLE> Example Page</TITLE> 
</HEAD> 
<BODY> 
<H1> Heading 1 </H1> 
<P>Paragraph 1, <BR> 
Line 2 <BR> Line 3 <BR>…. 
</P> 
</BODY> 
</HTML> 
Heading 1 
Paragraph 1,…. 
Line 2 
Line 3 
….
Horizontal Rule, <HR> 
The <HR> element causes the browser to display a 
horizontal line (rule) in your document. 
<HR> does not use a closing tag, </HR>
Attribute Description Default Value 
SIZE Height of the rule in pixels 2 pixels 
WIDTH 
Width of the rule in pixels 
or percentage of screen 
width 
100% 
ALIGN 
Aligns the line (Left, 
Center, Right) 
Center 
COLOR 
Sets a color for the rule (IE 
3.0 or later) 
Not set
HTML Text Formatting Elements 
The HTML <b> element defines bold text, without any extra importance 
The HTML <strong> element defines strong text, with added semantic importance. 
The HTML <i> element defines italic text, without any extra importance. 
The HTML <em> element defines emphasized text, with added semantic importance. 
The HTML <mark> element defines marked or highlighted text. 
The HTML <del> element defines deleted (removed) of text. 
The HTML <ins> element defines inserted (added) text. 
The HTML <sub> element defines subscripted text. 
The HTML <sup> element defines superscripted text.
Tag Description 
<b> Defines bold text 
<big> Defines big text 
<em> Defines emphasized text 
<i> Defines italic text 
<small> Defines small text 
<strong> Defines strong text 
<sub> Defines subscripted text 
<sup> Defines superscripted text 
<ins> Defines inserted text 
<del> Defines deleted text 
<s> Deprecated. Use <del> instead 
<strike> Deprecated. Use <del> instead 
<u> Deprecated. Use styles instead
Thank You

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifits
 
HTML
HTMLHTML
HTML
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Css
CssCss
Css
 
Html
HtmlHtml
Html
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, css
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Html
HtmlHtml
Html
 
presentation in html,css,javascript
presentation in html,css,javascriptpresentation in html,css,javascript
presentation in html,css,javascript
 
Html basics
Html basicsHtml basics
Html basics
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
Css Text Formatting
Css Text FormattingCss Text Formatting
Css Text Formatting
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 

Destaque

Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
vikasgaur31
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
c525600
 

Destaque (20)

HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
1. HTML
1. HTML1. HTML
1. HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
JavaScript Presentation Frameworks and Libraries
JavaScript Presentation Frameworks and LibrariesJavaScript Presentation Frameworks and Libraries
JavaScript Presentation Frameworks and Libraries
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Fundamental JavaScript [UTC, March 2014]
Fundamental JavaScript [UTC, March 2014]Fundamental JavaScript [UTC, March 2014]
Fundamental JavaScript [UTC, March 2014]
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Java script ppt
Java script pptJava script ppt
Java script ppt
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Js ppt
Js pptJs ppt
Js ppt
 
JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
 
Top Tips For Working Smarter
Top Tips For Working SmarterTop Tips For Working Smarter
Top Tips For Working Smarter
 

Semelhante a HTML Introduction

presentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptxpresentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptx
ssuser8001a61
 

Semelhante a HTML Introduction (20)

HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
presentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptxpresentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptx
 
Html
HtmlHtml
Html
 
Over view of html
Over view of htmlOver view of html
Over view of html
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html basics
Html basicsHtml basics
Html basics
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
902350 html jar
902350 html jar902350 html jar
902350 html jar
 
Html basics
Html basicsHtml basics
Html basics
 
WDD
WDDWDD
WDD
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Html 5
Html 5Html 5
Html 5
 
Html basics
Html basicsHtml basics
Html basics
 
HTML_Basics.pdf
HTML_Basics.pdfHTML_Basics.pdf
HTML_Basics.pdf
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basic file
Html basic fileHtml basic file
Html basic file
 

Mais de Hameda Hurmat (20)

15 Setup BIND 9
15 Setup BIND 915 Setup BIND 9
15 Setup BIND 9
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
 
11-IIS server 2016
11-IIS server 201611-IIS server 2016
11-IIS server 2016
 
10 implementing GPOs
10 implementing GPOs10 implementing GPOs
10 implementing GPOs
 
Administer Active Directory
Administer Active DirectoryAdminister Active Directory
Administer Active Directory
 
Active Directory
Active DirectoryActive Directory
Active Directory
 
7 understanding DNS
7 understanding DNS7 understanding DNS
7 understanding DNS
 
6 understanding DHCP
6 understanding DHCP6 understanding DHCP
6 understanding DHCP
 
5 configuring TCP/IP
5 configuring TCP/IP5 configuring TCP/IP
5 configuring TCP/IP
 
4. install and configure hyper v
4. install and configure hyper v4. install and configure hyper v
4. install and configure hyper v
 
3 configuring basic and dynamic disks
3 configuring basic and dynamic disks3 configuring basic and dynamic disks
3 configuring basic and dynamic disks
 
2 introduction of storage
2 introduction of storage2 introduction of storage
2 introduction of storage
 
1 introduction to windows server 2016
1  introduction to windows server 20161  introduction to windows server 2016
1 introduction to windows server 2016
 
12 introduction to Linux OS
12 introduction to Linux OS12 introduction to Linux OS
12 introduction to Linux OS
 
Flowers Album
Flowers AlbumFlowers Album
Flowers Album
 
Change management
Change managementChange management
Change management
 
ویندو7
ویندو7ویندو7
ویندو7
 
Interview skill
Interview skillInterview skill
Interview skill
 
Waste management
Waste managementWaste management
Waste management
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

HTML Introduction

  • 1. Introduction to HTML HAMEDA HURMAT
  • 2. Definitions W W W – World Wide Web. HTML – Hypertext Markup Language – The Language of Web Pages on the World Wide Web. HTML is a text formatting language. URL – Uniform Resource Locator. Browser – A software program which is used to show web pages.
  • 3. What is HTML? Hypertext Markup Language. HTML is a computer language that is use to create documents on the Word Wide Web. HTML is very simple , and logical. It reads from left to right, top to bottom and uses plain text. HTML is NOT a programming language, but a markup-up language that uses <Tags> like this. The websites you view on the internet are actually text files that consist of HTML Tags.
  • 4. HTML Issues for Organizations Why the need to know HTML code? WYDIWG( What You See Is What You Get) editors like ( Front Page and Dreamweaver) create program-specific code that is incomprehensible to other programs and may not be displayed correctly on all browsers or all operating System You cannot edit them if you don’t have the original software, Or know enough about HTML and how it works to be able to make small edits your self Company Intranets mostly use HTML HTML is now also use in email and in email marketing HTML is increasingly used as the basis of standalone applications that use a GUI
  • 5. Advantages of knowing HTML code New technologies start out as code without tools  HTML(early days), JavaScript, Java, ASP, XML Even if you use WYSIWYG editors, it helps to know HTML code to insert ASP or JavaScript into a HTML file If you can read code, you can copy clever idea from others( within reason and the law). Go to any web page, click on “view” “page source “or "source” and the HTML code used to create that web page can be studied or just copied Web authoring tools don’t give as much control  Most web professional web designers use HTML
  • 6. Write HTML Using Notepad or TextEdit HTML can be edited by using a professional HTML editor like:  Adobe Dreamweaver  Microsoft Expression Web  CoffeeCup HTML Editor However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML. Follow the 4 steps below to create your first web page with Notepad. Click Start (bottom left on your screen). Click All Programs. Click Accessories. Click Notepad.
  • 7. “Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm” or “.html” HTML Editor – A word processor that has been specialized to make the writing of HTML documents more effortless.
  • 8. TAGS HTML markup tags are usually called HTML tags HTML tags are keywords surrounded by angle brackets like <html> HTML tags normally come in pairs like <b> and </b> The first tag in a pair is the start tag, the second tag is the end tag Start and end tags are also called opening tags and closing tags
  • 9. TAGS Codes enclosed in brackets Usually paired <TITLE>My Web Page</TITLE> Not case sensitive <TITLE> = <title> = <TITLE>
  • 10. Creating a Basic Starting Document <HTML> <HEAD> <TITLE>Sharq University</TITLE> </HEAD> <BODY> This is what is displayed. </BODY> </HTML>
  • 11. Co… The HEAD of your document point to above window part. The TITLE of your document appears in the very top line of the user’s browser. If the user chooses to “Bookmark” your page or save as a “Favorite”; it is the TITLE that is added to the list. The text in your TITLE should be as descriptive as possible because this is what many search engines, on the internet, use for indexing your site.
  • 12. Setting Document Properties Document properties are controlled by attributes of the BODY element. For example, there are color settings for the background color of the page, the document’s text and different states of links.
  • 13. Headings, <Hx> </Hx> Inside the BODY element, heading elements H1 through H6 are generally used for major divisions of the document. Headings are permitted to appear in any order, but you will obtain the best results when your documents are displayed in a browser if you follow these guidelines: H1: should be used as the highest level of heading, H2 as the next highest, and so forth. You should not skip heading levels: e.g., an H3 should not appear after an H1, unless there is an H2 between them.
  • 14. <HTML> <HEAD> <TITLE> Example Page</TITLE> </HEAD> <BODY> <H1> Heading 1 </H1> <H2> Heading 2 </H2> <H3> Heading 3 </H3> <H4> Heading 4 </H4> <H5> Heading 5 </H5> <H6> Heading 6 </H6> </BODY> </HTML> Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6
  • 15. Paragraphs, <P> </P> Paragraphs allow you to add text to a document in such a way that it will automatically adjust the end of line to suite the window size of the browser in which it is being displayed. Each line of text will stretch the entire length of the window.
  • 16. <HTML><HEAD> <TITLE> Example Page</TITLE> </HEAD> <BODY></H1> Heading 1 </H1> <P> Paragraph 1, ….</P> <H2> Heading 2 </H2> <P> Paragraph 2, ….</P> <H3> Heading 3 </H3> <P> Paragraph 3, ….</P> <H4> Heading 4 </H4> <P> Paragraph 4, ….</P> <H5> Heading 5 </H5> <P> Paragraph 5, ….</P> <H6> Heading 6</H6> <P> Paragraph 6, ….</P> </BODY></HTML> Heading 1 Paragraph 1,…. Heading 2 Paragraph 2,…. Heading 3 Paragraph 3,…. Heading 4 Paragraph 4,…. Heading 5 Paragraph 5,…. Heading 6 Paragraph 6,….
  • 17. Break, <BR> Line breaks allow you to decide where the text will break on a line or continue to the end of the window. A <BR> is an empty Element, meaning that it may contain attributes but it does not contain content. The <BR> element does not have a closing tag.
  • 18. <HTML> <HEAD> <TITLE> Example Page</TITLE> </HEAD> <BODY> <H1> Heading 1 </H1> <P>Paragraph 1, <BR> Line 2 <BR> Line 3 <BR>…. </P> </BODY> </HTML> Heading 1 Paragraph 1,…. Line 2 Line 3 ….
  • 19. Horizontal Rule, <HR> The <HR> element causes the browser to display a horizontal line (rule) in your document. <HR> does not use a closing tag, </HR>
  • 20. Attribute Description Default Value SIZE Height of the rule in pixels 2 pixels WIDTH Width of the rule in pixels or percentage of screen width 100% ALIGN Aligns the line (Left, Center, Right) Center COLOR Sets a color for the rule (IE 3.0 or later) Not set
  • 21. HTML Text Formatting Elements The HTML <b> element defines bold text, without any extra importance The HTML <strong> element defines strong text, with added semantic importance. The HTML <i> element defines italic text, without any extra importance. The HTML <em> element defines emphasized text, with added semantic importance. The HTML <mark> element defines marked or highlighted text. The HTML <del> element defines deleted (removed) of text. The HTML <ins> element defines inserted (added) text. The HTML <sub> element defines subscripted text. The HTML <sup> element defines superscripted text.
  • 22. Tag Description <b> Defines bold text <big> Defines big text <em> Defines emphasized text <i> Defines italic text <small> Defines small text <strong> Defines strong text <sub> Defines subscripted text <sup> Defines superscripted text <ins> Defines inserted text <del> Defines deleted text <s> Deprecated. Use <del> instead <strike> Deprecated. Use <del> instead <u> Deprecated. Use styles instead