search | site map

Scott Granneman

panorama-177.jpg
  • Writing
    • Books
    • SecurityFocus
    • Linux Magazine
    • Others
    • Swings & Misses
  • Presentations
    • Interviews
    • Ladue Chapel
  • Teaching
    • Current Courses
    • Student Evaluations
    • Washington University
    • Webster University
    • St. Louis Community College
    • Archives
  • Web Development
    • Becoming a Web Developer
    • Coding
    • Programming
    • Editors
    • Web Browsers
    • Domains
    • Hosting
    • Graphics & Multimedia
    • Content
  • Tech Info
    • Background
    • Tools
    • Intellectual Property
    • Security
    • Email
    • Networking
    • Blogs, Podcasts, RSS
    • Search
    • Linux
    • Windows
    • Education
  • Personal
    • Work
    • Movies
    • Music
    • Reading
    • Poetry
    • Prose
    • Photos
    • Journals
    • Commonplace Book
    • Our Home
    • Opinions & Editorials
Home > Web Development > Coding > Block-Level & Inline HTML Elements

Block-Level & Inline HTML Elements

HTML 4.01 consists of 91 elements that tell the web browser about the webpage’s structure & appearance.

Structure Appearance
p b
h1 strong
table em
ul a
li img

Start with that idea in order to understand a key way to divide HTML elements: as either block-level or inline.

Block-level Inline
Describes structure Describes appearance
Begins on a new line Within a line
Defines large section of webpage Defines smaller section inside another
Can contain block-level & inline elements Can only contain inline elements
Ex’s: p, h1, ul, li, table Ex’s: a, b, em, font, img

As you're coding, this distinction will be important. You can't, for instance, put block-level elements inside inline elements. If you do, your code will not validate.

Contact

Email scott@granneman.com
Voice 314-780-0489
Address
39 Summit Place
St. Louis, MO 63119
United States

Work

For work info, see WebSanity.

All content, unless under a Creative Commons license, is © 1997-2011 Scott Granneman.

(Take a look around—a lot of content is licensed under a Creative Commons license, which gives YOU a lot of freedom to reuse my work.)

facebook_32.png Facebook   twitter_32.png Twitter
linkedin_32.png LinkedIn   friendfeed_32.png FriendFeed
flickr_32.png Flickr   lastfm_32.png Last.fm
youtube_32.png YouTube   rss_32.png RSS