Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Xhtml Issue

Featured Replies

The tag:"script" is not allowed within: "html" It is only allowed within: a, abbr, acronym, address, b, bdo, big, blockquote, body, button, caption, cite, code, dd, del, dfn, div, dt, em, fieldset, form. . ..[XHTML 1.0 strict]

I converted an HTML page to XHTML 1.1 in Dreamweaver. I received the error message above. The line of code creating the problem is below:

<script type="text/javascript">

I don't know how to rewrite the line so that it is valid xhtml.

Could anybody help?

There was just one more problem:

The tag: "br" doesn't have an attribute: "clear" in currently active versions.[XHTML 1.0 strict]

The line of code generating the problem is:

<br clear="all" />

I don't know much, but when I want a line break, I code it like this <br /> . Why not try it and see if you get the same result?

The tag:"script" is not allowed within: "html" It is only allowed within: a, abbr, acronym, address, b, bdo, big, blockquote, body, button, caption, cite, code, dd, del, dfn, div, dt, em, fieldset, form. . ..[XHTML 1.0 strict]

script tages are usually placed in the head or body:

<html>

<head>

<script ...>

</head>

<body>

...

</body>

</html>

from the error message it seems you may have something like:

<html>

<script ...>

<head>

...

</head>

<body>

...

</body>

</html>

bkkguy1970 is right about the script tag. It must be included between two other tags, not just after the html declaration. Best places are:

<head>

<script...></script>

</head>

or

<body>

<script...></script>

</body>

For your other problem, try using this instead:

<br style="clear: both;" />

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.