473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Tags Organization

Hello,

Can I have <h1>, <pand <spantags inside a <ptag?

What should be the best tag to encapsulate all other tags? <div>?
What are the limitations of using <pand <spanin this?

Where can I find some information on this?

Thanks,
Miguel

Mar 30 '07 #1
2 1307
Els
shapper wrote:
Can I have <h1>, <pand <spantags inside a <ptag?
<span>: yes. <h1and <p>: no.
What should be the best tag to encapsulate all other tags? <div>?
Depends why you want to do that. <bodyis really all you need, but if
you need more divisions, than <divis good, yes.
What are the limitations of using <pand <spanin this?
<pis the element you use for a paragraph, and <spanis what you use
if you want to apply some style rules for no particular important
reason to a portion of text inside a paragraph. If you'd want to make
some text bold, think about the reason - do you want to emphasize it?
Use <em>.
Where can I find some information on this?
http://www.w3.org/MarkUp/Guide/

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Mar 30 '07 #2
On 30 Mar, 16:42, "shapper" <mdmo...@gmail.comwrote:
Can I have <h1>, <pand <spantags inside a <ptag?
No. You can have <spanin there, but not the others. You could put
all three inside a <div>
What should be the best tag to encapsulate all other tags? <div>?
Yes, but I start to get worried making recommendations like this
blindly, without seeing what you're trying to achieve!
What are the limitations of using <pand <spanin this?

Where can I find some information on this?
It's not easy to find information on this. Most authoring guides
ignore it, or get it wrong.
It's often discussed in here though - search for "block" and "inline"

The definition is from the HTML DTD (which is hard to read at first)
http://www.w3.org/TR/REC-html40/sgml/dtd.html

Some explanation has been posted in the past
http://groups.google.co.uk/group/com...d232d58d400ff1

http://groups.google.co.uk/group/alt...a65f912f6e8458

Mar 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Donald Firesmith | last post by:
Are html tags allowed within meta tags? Specifically, if I have html tags within a <definition> tag within XML, can I use the definition as the content within the <meta content="description> tag? ...
18
by: Robert Bowen | last post by:
Hello peeplez. I have an odd problem. When I put the ANSI symbol for "less than" ("<"), the word STRONG and then the ANSI symbol for "greater than" (">") in my web page, followed by some text, then...
1
by: Steven T. Hatton | last post by:
I think Danny was one cup of coffee shy of full consciousness when he wrote this, but the gist of it makes sens to me: "C++ Project Organization Guidelines Last updated May 26, 2005....
5
by: John Saunders | last post by:
Is this ok? I haven't seen any examples of it, but it looks like it should work: <asp:requiredfieldvalidator id="valreqUserName" runat="server" controltovalidate="txtUserName"...
17
by: The Numerator | last post by:
I know a lot about HTML, but all this time I don't know what the <LINK> tags in the head do. There are those that call a stylesheet, favicon, etc. But what about those that state the contents of...
8
by: Philip Ronan | last post by:
Hi, I recently discovered that Google's mobile search robot doesn't understand the "robots" Meta tag. Here's an example: ...
4
by: Andy Dingley | last post by:
Can anyone please suggest (ideally with references) what the language codes or tags (ISO or IETF) ought to be to represent: * English, as spoken in Northern Ireland (by either or both...
3
by: Max58kl | last post by:
Hi I am currently trying to create a FAQ webpage. At the moment the code I have lets me click on the Questions which successfully shows and hides the <DIV> tags containing the Answers. But...
5
by: Candoer | last post by:
All I have the following meta tags on every page of my web site (www.candoer.org). Are they necessary on every page or only on the index page? <meta name="robot" content="noindex; nofollow">...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.