SlideShare a Scribd company logo
1 of 19
Basics of HTML
Presented by Nobel Mujuji
• The baby step to learning the basics of any
new language is to learn the basics. HTML is
actually a very simple and easy to learn
language once the basics are advanced.
• HTML is made up of tags. There are two kinds
of tags; opening and closing tags. Opening
tags are pieces of text contained in <> and
looks like the following:
<tag>The closing tags have a structure like the
following with a /:
</tag>
• The whole structure of the tags are like the
following:
<opening tag>
</closing tag>
The information put in between the opening and
the closing tags are applied the functionality of the
tag.
For example:
The use of the <body> tag for the body of the web
page
<body>
Your web page body text here
</body>
Declaring HTML for a web page
<html>
<head>
<title>Untitled Page</title>
</head>
<body>
</body>
</html>
<head></head> tag
This tag contains the head elements of the web page. The head
elements within the <head></head> tags can include configuration
options like scripts, instruction to the browser to find and load Style
Sheets, meta information, etc. Some of these tags include:
•<base></base>
•<link></link>
•<meta></meta>
•<script></script>
•<style></style>
•<title></title>
<title></title> tag
• This tag defines the title of the HTML
document. The <title></title> tags are
required in all HTML/XHTML documents. This
element defines a title to the browser toolbar,
provide a title for a web page when it is added
to the favorites and displays a title for the
page in search-engine results.
<body></body> tag
This tag defines the body of the web page. The
<body></body> tag contains all the contents of
a HTML web page like text, hyperlinks, images,
tables, lists, etc. This is the most important tag
of the web/HTML document.
HTML Text tag
In this part of the tutorial you will learn how to handle
text in your HTML document. This part is broken down
into two section:
Adding Text Learn how to add text to your page and
format the color, size and font of it and display it on your
web page.
Positioning Text Learn how to align elements on the
paged making paragraphs. Learn other tags which will
help you further design your web page like lists etc.
Add Text in HTML
• In this part of the HTML tutorial you will learn
how to create a simple Home page for your
website and learn how to add text to your
page and format the color, size and font of it
and display it on your web page.
• All you need to do now is change the<title>
tag to My Home Page.
Challenge 1
<html>
<head>
<title>My Home Page</title>
</head>
<body>
</body>
</html>
<font></font> tag
This tag sets the basic form to display text on your web page. To start
this tutorial, add this:
<font>Welcome To My Personal Home Page</font> between the
<body></body>
The following is a piece of code you get.
<body>
<font>Welcome To My Personal Home Page</font>
</body>
The<font></font> tag will display the text in a standard font size, black,
in Times New Roman.
Face
These attributes for the<font></ font > tags are the basic attributes that you
will come across when programming using HTML. These attributes are used
to change the look and feel of the text within the<font></ font > tags.
The following is a piece of code with the Face attribute.
<body>
<font face="Arial"> Welcome To My Personal Home Page</font>
</body>
Within the<font> tags the font name can be enclose with quotation marks
(“”) after and equals mark (=).
<font face="Arial">
Size
Many attributes can be added to a tag for
example different sizes for the font. There is a
difference between the normal font sizes (pt)
and the HTML font sizes. HTML font sizes are
single numbers which are related to a standard
font size. The following table shows this
relationship.
HTML Font Size Standard Font Size
1 8 pt
2 10 pt
3 12 pt
4 14 pt
5 16 pt
6 18 pt
7 24 pt
Color
Every tag has extra attributes to add extra features or options. If you wish to change
the color of the text, you can use the color tag. The color is spelt using the American
way.
Color is a little different from other attributes because it can be changes using a HTML
color Word. But only a few color names works, for example, red, blue, green etc. HEX
codes in the format of #000000 (# followed by 6 numbers) can also be used. The first 2
numbers are the amount of Red color, the next 2 are Green and the last 2 are Blue
color.
The following piece of code shows text color added to the previous code.
With HTML color Word:
<font face="Arial" size="7" color="red"> Welcome To My Personal Home
Page</font>
With HEX codes:
<font face="Arial" size="7" color="#FF0000"> Welcome To My Personal Home
Page</font>
Centering
Text can be changed into different sizes, color and even face (style). The other control
on text is alignment. Text can be aligned to center using the <center></center> tags.
Any text placed within these tags will be centered. The following shows a piece of
code with text aligned to the center.
<body>
<center>
<font face="Arial" size="1" color="Red"> Welcome To My Personal Home
Page</font>
</center>
</body>
challenge
<html >
<head>
<title>My Home Page</title>
</head>
<body>
<center>
<font face="Arial" size="7" color="Red"> Welcome To My Personal Home Page</font>
</center>
</body>
</html>
Adding text in html

More Related Content

What's hot

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 easilyshabab shihan
 
Web engineering notes unit 2
Web engineering notes unit 2Web engineering notes unit 2
Web engineering notes unit 2inshu1890
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSLarry King
 
CSS3 2D/3D transform
CSS3 2D/3D transformCSS3 2D/3D transform
CSS3 2D/3D transformKenny Lee
 
XML Sitemap and Robots.TXT Guide for SEO Beginners
XML Sitemap and Robots.TXT Guide for SEO BeginnersXML Sitemap and Robots.TXT Guide for SEO Beginners
XML Sitemap and Robots.TXT Guide for SEO BeginnersAditya Todawal
 
The SEO Workflow
The SEO WorkflowThe SEO Workflow
The SEO WorkflowMagnolia
 
HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and FormsDoncho Minkov
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for studentsvethics
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsSun Technlogies
 
Organic Social Media
Organic Social MediaOrganic Social Media
Organic Social MediaJaspar Weir
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTMLMehul Patel
 
Html Intro2
Html Intro2Html Intro2
Html Intro2mlackner
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examplesAlfredo Torre
 

What's hot (20)

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
 
Web engineering notes unit 2
Web engineering notes unit 2Web engineering notes unit 2
Web engineering notes unit 2
 
Html lists
Html listsHtml lists
Html lists
 
Css
CssCss
Css
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
HTML: Chapter 01
HTML: Chapter 01HTML: Chapter 01
HTML: Chapter 01
 
CSS3 2D/3D transform
CSS3 2D/3D transformCSS3 2D/3D transform
CSS3 2D/3D transform
 
XML Sitemap and Robots.TXT Guide for SEO Beginners
XML Sitemap and Robots.TXT Guide for SEO BeginnersXML Sitemap and Robots.TXT Guide for SEO Beginners
XML Sitemap and Robots.TXT Guide for SEO Beginners
 
The SEO Workflow
The SEO WorkflowThe SEO Workflow
The SEO Workflow
 
Apostila html1
Apostila html1Apostila html1
Apostila html1
 
HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and Forms
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Organic Social Media
Organic Social MediaOrganic Social Media
Organic Social Media
 
Hubspot Email Marketing & SEO Plan
Hubspot Email Marketing & SEO PlanHubspot Email Marketing & SEO Plan
Hubspot Email Marketing & SEO Plan
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
Html Intro2
Html Intro2Html Intro2
Html Intro2
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Html1
Html1Html1
Html1
 

Similar to Adding text in html (20)

html
htmlhtml
html
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Html
HtmlHtml
Html
 
Introduction to HTML Communication Skills
Introduction to HTML Communication SkillsIntroduction to HTML Communication Skills
Introduction to HTML Communication Skills
 
HTML
HTMLHTML
HTML
 
introdution-to-html.ppt
introdution-to-html.pptintrodution-to-html.ppt
introdution-to-html.ppt
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Html basics
Html basicsHtml basics
Html basics
 
Computer language - HTML tags
Computer language - HTML tagsComputer language - HTML tags
Computer language - HTML tags
 
HTML-INTRO.pptx
HTML-INTRO.pptxHTML-INTRO.pptx
HTML-INTRO.pptx
 
Basics of Html
 Basics of Html Basics of Html
Basics of Html
 
Html basics
Html basicsHtml basics
Html basics
 
Html basic file
Html basic fileHtml basic file
Html basic file
 
Html basics
Html basicsHtml basics
Html basics
 
Html BASICS
Html BASICSHtml BASICS
Html BASICS
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
 
Html basics
Html basicsHtml basics
Html basics
 
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
 

More from nobel mujuji

Table structure introduction
Table structure introductionTable structure introduction
Table structure introductionnobel mujuji
 
Inserting imagesin html
Inserting imagesin htmlInserting imagesin html
Inserting imagesin htmlnobel mujuji
 
Html images and html backgrounds
Html images and html backgroundsHtml images and html backgrounds
Html images and html backgroundsnobel mujuji
 
Html character entities
Html character entitiesHtml character entities
Html character entitiesnobel mujuji
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables formsnobel mujuji
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5nobel mujuji
 
Chapter 1 one html
Chapter 1 one htmlChapter 1 one html
Chapter 1 one htmlnobel mujuji
 
Javascript conditional statements
Javascript conditional statementsJavascript conditional statements
Javascript conditional statementsnobel mujuji
 

More from nobel mujuji (15)

Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
 
Positioning text
Positioning textPositioning text
Positioning text
 
Inserting imagesin html
Inserting imagesin htmlInserting imagesin html
Inserting imagesin html
 
Html images and html backgrounds
Html images and html backgroundsHtml images and html backgrounds
Html images and html backgrounds
 
Html hyperlinks
Html hyperlinksHtml hyperlinks
Html hyperlinks
 
Html frames
Html framesHtml frames
Html frames
 
Html forms
Html formsHtml forms
Html forms
 
Html character entities
Html character entitiesHtml character entities
Html character entities
 
Horizontal lines!
Horizontal lines!Horizontal lines!
Horizontal lines!
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
Creating lists
Creating listsCreating lists
Creating lists
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
Chapter 1 one html
Chapter 1 one htmlChapter 1 one html
Chapter 1 one html
 
Chapter 1 html
Chapter 1 htmlChapter 1 html
Chapter 1 html
 
Javascript conditional statements
Javascript conditional statementsJavascript conditional statements
Javascript conditional statements
 

Recently uploaded

Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一A SSS
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一diploma 1
 
NATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detailNATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detailDesigntroIntroducing
 
Architecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdfArchitecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdfSumit Lathwal
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxnewslab143
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Sitegalleryaagency
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一F La
 
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCRCall In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCRdollysharma2066
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Servicejennyeacort
 
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree ttt fff
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricksabhishekparmar618
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
Cheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk GurgaonCheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk Gurgaon
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
 
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
办理学位证(NTU证书)新加坡南洋理工大学毕业证成绩单原版一比一
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
 
NATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detailNATA 2024 SYLLABUS, full syllabus explained in detail
NATA 2024 SYLLABUS, full syllabus explained in detail
 
Architecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdfArchitecture case study India Habitat Centre, Delhi.pdf
Architecture case study India Habitat Centre, Delhi.pdf
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Site
 
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
2024新版美国旧金山州立大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
Call Girls In Safdarjung Enclave 24/7✡️9711147426✡️ Escorts Service
 
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
办理(宾州州立毕业证书)美国宾夕法尼亚州立大学毕业证成绩单原版一比一
 
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCRCall In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
 
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲弗林德斯大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Cosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable BricksCosumer Willingness to Pay for Sustainable Bricks
Cosumer Willingness to Pay for Sustainable Bricks
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Harsh Vihar (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Adding text in html

  • 1. Basics of HTML Presented by Nobel Mujuji
  • 2. • The baby step to learning the basics of any new language is to learn the basics. HTML is actually a very simple and easy to learn language once the basics are advanced. • HTML is made up of tags. There are two kinds of tags; opening and closing tags. Opening tags are pieces of text contained in <> and looks like the following:
  • 3. <tag>The closing tags have a structure like the following with a /: </tag> • The whole structure of the tags are like the following: <opening tag> </closing tag>
  • 4. The information put in between the opening and the closing tags are applied the functionality of the tag. For example: The use of the <body> tag for the body of the web page <body> Your web page body text here </body>
  • 5. Declaring HTML for a web page <html> <head> <title>Untitled Page</title> </head> <body> </body> </html>
  • 6. <head></head> tag This tag contains the head elements of the web page. The head elements within the <head></head> tags can include configuration options like scripts, instruction to the browser to find and load Style Sheets, meta information, etc. Some of these tags include: •<base></base> •<link></link> •<meta></meta> •<script></script> •<style></style> •<title></title>
  • 7. <title></title> tag • This tag defines the title of the HTML document. The <title></title> tags are required in all HTML/XHTML documents. This element defines a title to the browser toolbar, provide a title for a web page when it is added to the favorites and displays a title for the page in search-engine results.
  • 8. <body></body> tag This tag defines the body of the web page. The <body></body> tag contains all the contents of a HTML web page like text, hyperlinks, images, tables, lists, etc. This is the most important tag of the web/HTML document.
  • 9. HTML Text tag In this part of the tutorial you will learn how to handle text in your HTML document. This part is broken down into two section: Adding Text Learn how to add text to your page and format the color, size and font of it and display it on your web page. Positioning Text Learn how to align elements on the paged making paragraphs. Learn other tags which will help you further design your web page like lists etc.
  • 10. Add Text in HTML • In this part of the HTML tutorial you will learn how to create a simple Home page for your website and learn how to add text to your page and format the color, size and font of it and display it on your web page. • All you need to do now is change the<title> tag to My Home Page.
  • 11. Challenge 1 <html> <head> <title>My Home Page</title> </head> <body> </body> </html>
  • 12. <font></font> tag This tag sets the basic form to display text on your web page. To start this tutorial, add this: <font>Welcome To My Personal Home Page</font> between the <body></body> The following is a piece of code you get. <body> <font>Welcome To My Personal Home Page</font> </body> The<font></font> tag will display the text in a standard font size, black, in Times New Roman.
  • 13. Face These attributes for the<font></ font > tags are the basic attributes that you will come across when programming using HTML. These attributes are used to change the look and feel of the text within the<font></ font > tags. The following is a piece of code with the Face attribute. <body> <font face="Arial"> Welcome To My Personal Home Page</font> </body> Within the<font> tags the font name can be enclose with quotation marks (“”) after and equals mark (=). <font face="Arial">
  • 14. Size Many attributes can be added to a tag for example different sizes for the font. There is a difference between the normal font sizes (pt) and the HTML font sizes. HTML font sizes are single numbers which are related to a standard font size. The following table shows this relationship.
  • 15. HTML Font Size Standard Font Size 1 8 pt 2 10 pt 3 12 pt 4 14 pt 5 16 pt 6 18 pt 7 24 pt
  • 16. Color Every tag has extra attributes to add extra features or options. If you wish to change the color of the text, you can use the color tag. The color is spelt using the American way. Color is a little different from other attributes because it can be changes using a HTML color Word. But only a few color names works, for example, red, blue, green etc. HEX codes in the format of #000000 (# followed by 6 numbers) can also be used. The first 2 numbers are the amount of Red color, the next 2 are Green and the last 2 are Blue color. The following piece of code shows text color added to the previous code. With HTML color Word: <font face="Arial" size="7" color="red"> Welcome To My Personal Home Page</font> With HEX codes: <font face="Arial" size="7" color="#FF0000"> Welcome To My Personal Home Page</font>
  • 17. Centering Text can be changed into different sizes, color and even face (style). The other control on text is alignment. Text can be aligned to center using the <center></center> tags. Any text placed within these tags will be centered. The following shows a piece of code with text aligned to the center. <body> <center> <font face="Arial" size="1" color="Red"> Welcome To My Personal Home Page</font> </center> </body>
  • 18. challenge <html > <head> <title>My Home Page</title> </head> <body> <center> <font face="Arial" size="7" color="Red"> Welcome To My Personal Home Page</font> </center> </body> </html>