SlideShare a Scribd company logo
1 of 16
Fundamentals of Web designing
Ministry of Higher Education
Bamyan University
Computer Science Department
1
Presented by : Mustafa Kamel Mohammadi
Email : bamian.cs@gmail.com
Working with Text and Lists in HTML
learning objective
 In this chapter you will learn
 How to work with text in HTML
 Define paragraphs and headings
 Define different types of lists
2
Introduction
 HTML recognizes several kinds of text blocks that you can use in your document,
including (but not limited to):
 Paragraphs
 Headings
 Block quotes
 Lists
 Tables
 Forms
3
Paragraphs
 Paragraphs are used more often in Web pages than any other kind of text block.
 To create a paragraph, follow these steps:
1. Add <p> in the body of the document.
2. Type the content of the paragraph.
3. Add </p> to close that paragraph
<p>
// content goes here
</p>
4
Cont.
 By default, the paragraph aligns to the left.
<p align=”center”>This paragraph is centered.</p>
<p align=”right”>This paragraph is right-justified.</p>
<p align=”justify”>This paragraph is double-justified.</p>
5
Headings
 Headings break a document into sections
 HTML includes six elements to help you define six different heading levels in your
documents:
 <h1> is the most prominent heading (Heading 1)
 <h6> is the least prominent heading (Heading 6)
<h1> First-level heading</h1>
<h2> Second-level heading</h2>
<h3> Third-level heading</h3>
<h4> Fourth-level heading</h4>
<h5> Fifth-level heading</h5>
<h6> Sixth-level heading</h6>
6
Preformatted text
 A browser won’t dis-play a block element’s
 Hard returns
 Line breaks
 Large white spaces
 The preformatted text element (<pre>) instructs browsers to keep all white space intact
 Used mostly when you write
 Code samples
<pre>
This block contains white spaces
</pre>
7
Line breaks
 By default, browsers usually wrap text that appears in block elements
 If a text line reaches the end of a browser window, the next word automatically starts a
new line.
 You can manually control the end of a text line with a line break(denoted by the <br />)
<p>
This is line one <br/>
This is line two <br/>
This is line three <br/>
</p>
8
Horizontal rules
 The horizontal rule element (<hr />) helps you include solid straight lines (rules)on your
page.
 A horizontal rule must always sit on a line by itself; you can’t add the <hr /> element in
the middle of a paragraph (or other block element).
 It may have the (width, size, align, shade) attributes.
<p>
This is paragraph one
</p>
<hr/>
<p>
This is paragraph two
</p>
9
Organizing Information
 Lists are powerful tools for arranging similar elements together
 They give visitors to your site an easy way to hone in on groups of information
 Lists use a combination of elements — at least two components:
 A markup element that says “Hey browser! The following items are a list.”
 Markup elements that say “Hey browser! This is an item in the list.”
 HTML provides for three different kinds of lists:
 Numbered lists
 Bulleted lists
 Definition lists
10
Numbered lists
 You use two kinds of elements for a numbered list:
 The ordered list element (<ol>) specifies that this is a numbered list.
 List item elements (<li>) mark each item in the list.
 Two attributes control the appearance of ordered lists
 Start :Specifies the first number in the list.
 The default starting number is 1.
 Type : Specifies the numbering style from the list. You can choose from five predefined
numbering styles:
 1: Decimal numbers.
 a: Lowercase letters.
 A: Uppercase letters.
 i: Lowercase Roman numerals.
 I: Uppercase Roman numerals.
11
Bulleted lists
 A bulleted list consists of one or more items each prefaced by a bullet (often a big dot)
 A bulleted list requires the following:
 The unordered list element (<ul>) specifies that you’re creating a bulleted list.
 A list item element (<li>) marks each item in the list
 Type attribute specifies the style of bullet list
 disc: Solid circle bullets (the default)
 square: Solid square bullets
 circle: Hollow circle bullets
12
Definition lists
 Definition lists group terms and definitions into a single list and require three different
elements to complete the list:
 <dl>: Holds the list definitions.
 <dt>: Defines a term in the list.
 <dd>: Defines a definition for a term
<h1>Markup Language Definitions</h1>
<dl>
<dt>SGML</dt>
<dd>The Standard Generalized Markup Language</dd>
<dt>HTML</dt>
<dd>The Hypertext Markup Language</dd>
</dl>
13
Nesting lists
 You can create subcategories by nesting lists within other lists
 You can create subcategories by nesting lists within other lists
 As you build nested lists, watch your opening and closing tags carefully.
14
15
References
• “HTML 4 dummies 5th edition” by Ed Tittel & Mary Burmeister
• “HTML 5 designing rich internet applications” by Mathew Dawid
• “HTML in ten simple steps” by Robert G. fuller
16

More Related Content

What's hot (20)

Html tags
Html tagsHtml tags
Html tags
 
web technology
web technologyweb technology
web technology
 
Empowerment Technologies - Module 4
Empowerment Technologies - Module 4Empowerment Technologies - Module 4
Empowerment Technologies - Module 4
 
Html programing
Html programingHtml programing
Html programing
 
Html tags
Html tagsHtml tags
Html tags
 
Mail Merge - the basics
Mail Merge - the basicsMail Merge - the basics
Mail Merge - the basics
 
Notes4
Notes4Notes4
Notes4
 
Basics of Html
 Basics of Html Basics of Html
Basics of Html
 
Mail merge
Mail mergeMail merge
Mail merge
 
Html basic
Html basicHtml basic
Html basic
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
 
Mail merge
Mail mergeMail merge
Mail merge
 
Html grade 11
Html grade 11Html grade 11
Html grade 11
 
Mail Merge - Microsoft Office 2010
Mail Merge - Microsoft Office 2010Mail Merge - Microsoft Office 2010
Mail Merge - Microsoft Office 2010
 
Html
HtmlHtml
Html
 
Hyper Text Markup Language (HTML)
Hyper Text Markup Language (HTML)Hyper Text Markup Language (HTML)
Hyper Text Markup Language (HTML)
 
Html ppt
Html pptHtml ppt
Html ppt
 
Creating mail merge
Creating mail mergeCreating mail merge
Creating mail merge
 
Session 1
Session 1Session 1
Session 1
 
Mail merge made easy
Mail merge made easyMail merge made easy
Mail merge made easy
 

Viewers also liked

Основы работы оператора
Основы работы оператораОсновы работы оператора
Основы работы оператораОлег Ткачук
 
Presentation on HTML
Presentation on HTML Presentation on HTML
Presentation on HTML tauqeer199
 
индустрия телевидения часть 4
индустрия телевидения часть 4индустрия телевидения часть 4
индустрия телевидения часть 4Олег Ткачук
 
із досвіду
із досвідуіз досвіду
із досвідуTamara Emec
 
Made 4 Market Poster 11x17
Made 4 Market Poster 11x17Made 4 Market Poster 11x17
Made 4 Market Poster 11x17Jocelyn Kroksh
 
CURRICULUM VITAE1
CURRICULUM VITAE1CURRICULUM VITAE1
CURRICULUM VITAE1ngin chinda
 
"Ми тепер не просто діти - українці-першачки"
"Ми тепер не просто діти - українці-першачки""Ми тепер не просто діти - українці-першачки"
"Ми тепер не просто діти - українці-першачки"Anna Kuziy
 
Genres, subgneres and hybrid
Genres, subgneres and hybridGenres, subgneres and hybrid
Genres, subgneres and hybridItsRylan
 
Basis data klien server
Basis data klien serverBasis data klien server
Basis data klien serverRangga Ananto
 
Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...
Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...
Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...Expert and Consulting (EnC)
 
برنامـه ریـزی شهـری برای کـم درآمـدها و فقـرا در ايـران
برنامـه ریـزی شهـری  برای کـم درآمـدها و فقـرا در ايـران برنامـه ریـزی شهـری  برای کـم درآمـدها و فقـرا در ايـران
برنامـه ریـزی شهـری برای کـم درآمـدها و فقـرا در ايـران Regional Urban Upgrading Working Group (RUUWG)
 
Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...
Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...
Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...De Novo
 
Urban Poverty in Kolkata - Geography and World Politics
Urban Poverty in Kolkata - Geography and World PoliticsUrban Poverty in Kolkata - Geography and World Politics
Urban Poverty in Kolkata - Geography and World PoliticsAileen Ye
 
Understanding Nonprofit Financial Statements
Understanding Nonprofit Financial StatementsUnderstanding Nonprofit Financial Statements
Understanding Nonprofit Financial Statementswegnercpas
 
Новинки «Битрикс24» - Фиджи
Новинки «Битрикс24» - ФиджиНовинки «Битрикс24» - Фиджи
Новинки «Битрикс24» - Фиджи1С-Битрикс
 
Presentation of SP Engg Corp Pvt. Ltd. India
Presentation of  SP Engg Corp Pvt. Ltd. IndiaPresentation of  SP Engg Corp Pvt. Ltd. India
Presentation of SP Engg Corp Pvt. Ltd. IndiaPravin Nikam
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML formsNadine Cruz
 

Viewers also liked (19)

Основы работы оператора
Основы работы оператораОсновы работы оператора
Основы работы оператора
 
Presentation on HTML
Presentation on HTML Presentation on HTML
Presentation on HTML
 
Recociendo al extraño
Recociendo al extrañoRecociendo al extraño
Recociendo al extraño
 
индустрия телевидения часть 4
индустрия телевидения часть 4индустрия телевидения часть 4
индустрия телевидения часть 4
 
із досвіду
із досвідуіз досвіду
із досвіду
 
Made 4 Market Poster 11x17
Made 4 Market Poster 11x17Made 4 Market Poster 11x17
Made 4 Market Poster 11x17
 
CURRICULUM VITAE1
CURRICULUM VITAE1CURRICULUM VITAE1
CURRICULUM VITAE1
 
"Ми тепер не просто діти - українці-першачки"
"Ми тепер не просто діти - українці-першачки""Ми тепер не просто діти - українці-першачки"
"Ми тепер не просто діти - українці-першачки"
 
Genres, subgneres and hybrid
Genres, subgneres and hybridGenres, subgneres and hybrid
Genres, subgneres and hybrid
 
Basis data klien server
Basis data klien serverBasis data klien server
Basis data klien server
 
boot
bootboot
boot
 
Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...
Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...
Market of Services of Commercial Data Centers and Cloud Services in Ukraine (...
 
برنامـه ریـزی شهـری برای کـم درآمـدها و فقـرا در ايـران
برنامـه ریـزی شهـری  برای کـم درآمـدها و فقـرا در ايـران برنامـه ریـزی شهـری  برای کـم درآمـدها و فقـرا در ايـران
برنامـه ریـزی شهـری برای کـم درآمـدها و فقـرا در ايـران
 
Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...
Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...
Валерий Макаренко, De Novo: "G-CLOUD. Облачные технологии для государственных...
 
Urban Poverty in Kolkata - Geography and World Politics
Urban Poverty in Kolkata - Geography and World PoliticsUrban Poverty in Kolkata - Geography and World Politics
Urban Poverty in Kolkata - Geography and World Politics
 
Understanding Nonprofit Financial Statements
Understanding Nonprofit Financial StatementsUnderstanding Nonprofit Financial Statements
Understanding Nonprofit Financial Statements
 
Новинки «Битрикс24» - Фиджи
Новинки «Битрикс24» - ФиджиНовинки «Битрикс24» - Фиджи
Новинки «Битрикс24» - Фиджи
 
Presentation of SP Engg Corp Pvt. Ltd. India
Presentation of  SP Engg Corp Pvt. Ltd. IndiaPresentation of  SP Engg Corp Pvt. Ltd. India
Presentation of SP Engg Corp Pvt. Ltd. India
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML forms
 

Similar to Fundamentals of Web Designing (20)

Chapter 2 Final.pptx
Chapter 2 Final.pptxChapter 2 Final.pptx
Chapter 2 Final.pptx
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tags
 
HTML5 - My First Webpage
HTML5 - My First Webpage HTML5 - My First Webpage
HTML5 - My First Webpage
 
Html
HtmlHtml
Html
 
Html basics
Html basicsHtml basics
Html basics
 
Wp unit 1 (1)
Wp  unit 1 (1)Wp  unit 1 (1)
Wp unit 1 (1)
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Html presentation
Html presentationHtml presentation
Html presentation
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
HTML Tags
HTML Tags HTML Tags
HTML Tags
 
Html, xml and java script
Html, xml and java scriptHtml, xml and java script
Html, xml and java script
 
WDD
WDDWDD
WDD
 
Html example
Html exampleHtml example
Html example
 
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
 
PPT-203105353-1.pdf
PPT-203105353-1.pdfPPT-203105353-1.pdf
PPT-203105353-1.pdf
 

More from Mustafa Kamel Mohammadi

Web design - Working with tables in HTML
Web design - Working with tables in HTMLWeb design - Working with tables in HTML
Web design - Working with tables in HTMLMustafa Kamel Mohammadi
 
Web design - Working with Links and Images
Web design - Working with Links and ImagesWeb design - Working with Links and Images
Web design - Working with Links and ImagesMustafa Kamel Mohammadi
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionMustafa Kamel Mohammadi
 
Web design - Applications and web application definition
Web design - Applications and web application definitionWeb design - Applications and web application definition
Web design - Applications and web application definitionMustafa Kamel Mohammadi
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...Mustafa Kamel Mohammadi
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...Mustafa Kamel Mohammadi
 
Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureMustafa Kamel Mohammadi
 
Fundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersFundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersMustafa Kamel Mohammadi
 

More from Mustafa Kamel Mohammadi (10)

Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
 
Web design - Working with tables in HTML
Web design - Working with tables in HTMLWeb design - Working with tables in HTML
Web design - Working with tables in HTML
 
Web design - Working with Links and Images
Web design - Working with Links and ImagesWeb design - Working with Links and Images
Web design - Working with Links and Images
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
 
Web design - How the Web works?
Web design - How the Web works?Web design - How the Web works?
Web design - How the Web works?
 
Web design - Applications and web application definition
Web design - Applications and web application definitionWeb design - Applications and web application definition
Web design - Applications and web application definition
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
Fundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and ArchitectureFundamentals of database system - Database System Concepts and Architecture
Fundamentals of database system - Database System Concepts and Architecture
 
Fundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersFundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database Users
 

Recently uploaded

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Recently uploaded (20)

"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

Fundamentals of Web Designing

  • 1. Fundamentals of Web designing Ministry of Higher Education Bamyan University Computer Science Department 1 Presented by : Mustafa Kamel Mohammadi Email : bamian.cs@gmail.com Working with Text and Lists in HTML
  • 2. learning objective  In this chapter you will learn  How to work with text in HTML  Define paragraphs and headings  Define different types of lists 2
  • 3. Introduction  HTML recognizes several kinds of text blocks that you can use in your document, including (but not limited to):  Paragraphs  Headings  Block quotes  Lists  Tables  Forms 3
  • 4. Paragraphs  Paragraphs are used more often in Web pages than any other kind of text block.  To create a paragraph, follow these steps: 1. Add <p> in the body of the document. 2. Type the content of the paragraph. 3. Add </p> to close that paragraph <p> // content goes here </p> 4
  • 5. Cont.  By default, the paragraph aligns to the left. <p align=”center”>This paragraph is centered.</p> <p align=”right”>This paragraph is right-justified.</p> <p align=”justify”>This paragraph is double-justified.</p> 5
  • 6. Headings  Headings break a document into sections  HTML includes six elements to help you define six different heading levels in your documents:  <h1> is the most prominent heading (Heading 1)  <h6> is the least prominent heading (Heading 6) <h1> First-level heading</h1> <h2> Second-level heading</h2> <h3> Third-level heading</h3> <h4> Fourth-level heading</h4> <h5> Fifth-level heading</h5> <h6> Sixth-level heading</h6> 6
  • 7. Preformatted text  A browser won’t dis-play a block element’s  Hard returns  Line breaks  Large white spaces  The preformatted text element (<pre>) instructs browsers to keep all white space intact  Used mostly when you write  Code samples <pre> This block contains white spaces </pre> 7
  • 8. Line breaks  By default, browsers usually wrap text that appears in block elements  If a text line reaches the end of a browser window, the next word automatically starts a new line.  You can manually control the end of a text line with a line break(denoted by the <br />) <p> This is line one <br/> This is line two <br/> This is line three <br/> </p> 8
  • 9. Horizontal rules  The horizontal rule element (<hr />) helps you include solid straight lines (rules)on your page.  A horizontal rule must always sit on a line by itself; you can’t add the <hr /> element in the middle of a paragraph (or other block element).  It may have the (width, size, align, shade) attributes. <p> This is paragraph one </p> <hr/> <p> This is paragraph two </p> 9
  • 10. Organizing Information  Lists are powerful tools for arranging similar elements together  They give visitors to your site an easy way to hone in on groups of information  Lists use a combination of elements — at least two components:  A markup element that says “Hey browser! The following items are a list.”  Markup elements that say “Hey browser! This is an item in the list.”  HTML provides for three different kinds of lists:  Numbered lists  Bulleted lists  Definition lists 10
  • 11. Numbered lists  You use two kinds of elements for a numbered list:  The ordered list element (<ol>) specifies that this is a numbered list.  List item elements (<li>) mark each item in the list.  Two attributes control the appearance of ordered lists  Start :Specifies the first number in the list.  The default starting number is 1.  Type : Specifies the numbering style from the list. You can choose from five predefined numbering styles:  1: Decimal numbers.  a: Lowercase letters.  A: Uppercase letters.  i: Lowercase Roman numerals.  I: Uppercase Roman numerals. 11
  • 12. Bulleted lists  A bulleted list consists of one or more items each prefaced by a bullet (often a big dot)  A bulleted list requires the following:  The unordered list element (<ul>) specifies that you’re creating a bulleted list.  A list item element (<li>) marks each item in the list  Type attribute specifies the style of bullet list  disc: Solid circle bullets (the default)  square: Solid square bullets  circle: Hollow circle bullets 12
  • 13. Definition lists  Definition lists group terms and definitions into a single list and require three different elements to complete the list:  <dl>: Holds the list definitions.  <dt>: Defines a term in the list.  <dd>: Defines a definition for a term <h1>Markup Language Definitions</h1> <dl> <dt>SGML</dt> <dd>The Standard Generalized Markup Language</dd> <dt>HTML</dt> <dd>The Hypertext Markup Language</dd> </dl> 13
  • 14. Nesting lists  You can create subcategories by nesting lists within other lists  You can create subcategories by nesting lists within other lists  As you build nested lists, watch your opening and closing tags carefully. 14
  • 15. 15
  • 16. References • “HTML 4 dummies 5th edition” by Ed Tittel & Mary Burmeister • “HTML 5 designing rich internet applications” by Mathew Dawid • “HTML in ten simple steps” by Robert G. fuller 16