These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:24 pm Advanced search

What is the default display type for HTML5 elements?

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

What is the default display type for HTML5 elements?

Postby Yvar » Wed Oct 07, 2009 9:26 am

The one thing I cannot distill from the spec is what the (default) display type is for all the elements.
In theory I think Phrasing Content should be inline, and Flow should be block, right? But the problem with this is, that ALL Phrasing Content is also Flow Content. It also doesn't work to look explicitly at the Content as ABBR for example can only contain Phrasing (and could be inline as it was in HTML4), but P and PRE can also only contain Phrasing, and those could be block (as it was in HTML4)

So how does one determine the display type?
Yvar
<h6>
 
Posts: 1
Joined: Wed Oct 07, 2009 9:19 am

Re: What is the default display type for HTML5 elements?

Postby valkyr » Sun Oct 18, 2009 1:34 am

Yvar wrote:So how does one determine the display type?


Using CSS :roll:

Browsers will determine the default, which you can over-ride.
valkyr
<h5>
 
Posts: 16
Joined: Sun Oct 18, 2009 1:30 am

Postby zcorpan » Sun Oct 18, 2009 9:17 am

Phrasing and flow has nothing to do with how it's displayed. The content model is about how elements are allowed to be nested.

How it's displayed by default is discussed in the rendering section:
http://www.whatwg.org/specs/web-apps/cu ... #rendering
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby DaveSpencer » Wed Jan 06, 2010 12:52 pm

Has that link been taken down because all I get is a blank page, or is it just my computer.
DaveSpencer
<h6>
 
Posts: 2
Joined: Wed Jan 06, 2010 11:50 am

Postby rekk1986 » Thu Jan 07, 2010 9:36 am

the link is died please replace another link. Thanks
rekk1986
<h6>
 
Posts: 5
Joined: Wed Jan 06, 2010 1:33 am

Postby zcorpan » Thu Jan 07, 2010 1:34 pm

Works for me. Maybe you're viewing the "Hide UA text" version of the spec?

Here's another link:
http://dev.w3.org/html5/spec/the-xhtml- ... #rendering
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests