SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
HTML Elements
Block & Non-Block (In-Line)
Level Elements
Description
• Every HTML element has a default display value depending on what
type of element it is. The default display value for most elements is
block or inline.
Block-level Elements
A block-level element always starts on a new line and takes up the full width
available (stretches out to the left and right as far as it can).
 A block-level element is an HTML element that begins a new line on a Web
page, and extends the full width of the available horizontal space of its parent
element.
 Can have margins and/or padding
 If no height is set, will expand naturally to fit its child elements (assuming
they are not floated or positioned).
 By default, will be placed below previous elements in the markup (assuming
no floats or positioning on surrounding elements)
Example Block-level Elements
<p>, <div>, <form>, <header>, <nav>, <ul>, <li>, and <h1>.
Inline & Non-Block Elements
An inline element does not start on a new line and only takes up as much width
as necessary.
 Flows along with text content.
 Will ignore top and bottom margin settings, but will apply left and right
margins, and any padding
 Will ignore the width and height properties
 If floated left or right, will automatically become a block-level element,
subject to all block characteristics
Examples of Inline Elements:
<a>, <span>, <b>, <em>, <i>, <cite>, <mark>, and <code>.
HTML Block and Inline Elements

More Related Content

PPT
Presentation on HTML
PPTX
HTML Text formatting tags
PPTX
Complete Lecture on Css presentation
PPT
Span and Div tags in HTML
PPTX
Html ppt
PPT
Css Ppt
PPT
CSS Basics
PPTX
Html5 tutorial for beginners
Presentation on HTML
HTML Text formatting tags
Complete Lecture on Css presentation
Span and Div tags in HTML
Html ppt
Css Ppt
CSS Basics
Html5 tutorial for beginners

What's hot (20)

PPT
PPTX
How to learn HTML in 10 Days
PDF
Intro to HTML and CSS basics
PPTX
Html images syntax
PPTX
Bootstrap 5 ppt
PPTX
Beginners css tutorial for web designers
PPTX
HTML (Web) basics for a beginner
ODP
Introduction of Html/css/js
PPTX
Basic HTML
PPTX
Html form tag
PPT
Web Development using HTML & CSS
PPTX
CSS Transitions, Transforms, Animations
PPT
PPTX
HTML, CSS, JavaScript for beginners
PDF
Bootstrap 5 basic
PDF
HTML CSS Basics
PPTX
Html ppt
ODP
How to learn HTML in 10 Days
Intro to HTML and CSS basics
Html images syntax
Bootstrap 5 ppt
Beginners css tutorial for web designers
HTML (Web) basics for a beginner
Introduction of Html/css/js
Basic HTML
Html form tag
Web Development using HTML & CSS
CSS Transitions, Transforms, Animations
HTML, CSS, JavaScript for beginners
Bootstrap 5 basic
HTML CSS Basics
Html ppt
Ad

Viewers also liked (14)

PPT
Html Ppt
PDF
3block inline
PPTX
inline block elements
PPTX
Html 5 few Features and Elements
PDF
Intro to HTML Elements and CSS Declarations
PPTX
1-04: HTML Elements
PPTX
Document object model
PPTX
Document Object Model
PPTX
Document object model(dom)
PPT
DOM ( Document Object Model )
PPTX
List and images in html
PPT
Document Object Model
PPT
Html ppt
PPTX
Slideshare ppt
Html Ppt
3block inline
inline block elements
Html 5 few Features and Elements
Intro to HTML Elements and CSS Declarations
1-04: HTML Elements
Document object model
Document Object Model
Document object model(dom)
DOM ( Document Object Model )
List and images in html
Document Object Model
Html ppt
Slideshare ppt
Ad

Similar to HTML Block and Inline Elements (20)

PPT
Css advanced – session 4
PPTX
Chapter 15: Floating and Positioning
PDF
ClaFundamentalsof Web Developmentss12 .pdf
PPTX
CSS tutorial chapter 3
PPTX
1 07-2-css floats-and_positioning
PPTX
CSS_Dibbo
PPTX
HTML and CSS part 3
PPT
Css Positioning Elements
PPTX
Html-Prabakaran
PPTX
Advanced CSS.pptx
PPTX
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
PPTX
Web Development - Lecture 4
PPTX
Displaying.pptx
PDF
Web Development 4 (HTML & CSS)
PDF
Web Development 4
PPTX
Empowerment Technologies Lecture 10 (Philippines SHS)
PPT
Css layouts-continued
PPTX
PPT
CSS Layout
Css advanced – session 4
Chapter 15: Floating and Positioning
ClaFundamentalsof Web Developmentss12 .pdf
CSS tutorial chapter 3
1 07-2-css floats-and_positioning
CSS_Dibbo
HTML and CSS part 3
Css Positioning Elements
Html-Prabakaran
Advanced CSS.pptx
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
Web Development - Lecture 4
Displaying.pptx
Web Development 4 (HTML & CSS)
Web Development 4
Empowerment Technologies Lecture 10 (Philippines SHS)
Css layouts-continued
CSS Layout

More from Webtech Learning (20)

PPTX
Benefits of Digital Marketing
PPTX
Digital Marketing Benefits
PPTX
Future Scope of Digital Marketing in India
PPTX
Css types internal, external and inline (1)
PPTX
Bootstrap webtech presentation - new
PPTX
Css presentation
PPTX
Client side &amp; Server side Scripting
PPTX
Software testing & Quality Assurance
PPTX
Shadows Effects in CSS
PPTX
Bs Typography
PPTX
Bootstrap grids
PPTX
Html formatting
PPTX
Css box-sizing
PPTX
Css position
PPTX
Css margins
PPTX
Css box-model
PPTX
Css Display Property
PPTX
Html media
PPTX
Css floats
PPTX
Html5 semantics
Benefits of Digital Marketing
Digital Marketing Benefits
Future Scope of Digital Marketing in India
Css types internal, external and inline (1)
Bootstrap webtech presentation - new
Css presentation
Client side &amp; Server side Scripting
Software testing & Quality Assurance
Shadows Effects in CSS
Bs Typography
Bootstrap grids
Html formatting
Css box-sizing
Css position
Css margins
Css box-model
Css Display Property
Html media
Css floats
Html5 semantics

Recently uploaded (20)

PPTX
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
PPTX
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
PPTX
Implications Existing phase plan and its feasibility.pptx
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
DOCX
actividad 20% informatica microsoft project
PPTX
HPE Aruba-master-icon-library_052722.pptx
PDF
SEVA- Fashion designing-Presentation.pdf
PDF
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
PPT
UNIT I- Yarn, types, explanation, process
PPTX
6- Architecture design complete (1).pptx
PPTX
Special finishes, classification and types, explanation
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PPTX
Media And Information Literacy for Grade 12
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PDF
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
PPTX
building Planning Overview for step wise design.pptx
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PDF
The Advantages of Working With a Design-Build Studio
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
Implications Existing phase plan and its feasibility.pptx
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
actividad 20% informatica microsoft project
HPE Aruba-master-icon-library_052722.pptx
SEVA- Fashion designing-Presentation.pdf
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
UNIT I- Yarn, types, explanation, process
6- Architecture design complete (1).pptx
Special finishes, classification and types, explanation
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
Media And Information Literacy for Grade 12
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
building Planning Overview for step wise design.pptx
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
The Advantages of Working With a Design-Build Studio

HTML Block and Inline Elements

  • 1. HTML Elements Block & Non-Block (In-Line) Level Elements
  • 2. Description • Every HTML element has a default display value depending on what type of element it is. The default display value for most elements is block or inline.
  • 3. Block-level Elements A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).  A block-level element is an HTML element that begins a new line on a Web page, and extends the full width of the available horizontal space of its parent element.  Can have margins and/or padding  If no height is set, will expand naturally to fit its child elements (assuming they are not floated or positioned).  By default, will be placed below previous elements in the markup (assuming no floats or positioning on surrounding elements)
  • 4. Example Block-level Elements <p>, <div>, <form>, <header>, <nav>, <ul>, <li>, and <h1>.
  • 5. Inline & Non-Block Elements An inline element does not start on a new line and only takes up as much width as necessary.  Flows along with text content.  Will ignore top and bottom margin settings, but will apply left and right margins, and any padding  Will ignore the width and height properties  If floated left or right, will automatically become a block-level element, subject to all block characteristics
  • 6. Examples of Inline Elements: <a>, <span>, <b>, <em>, <i>, <cite>, <mark>, and <code>.