Help - Search - Members - Calendar
Full Version: "CENTER" not allowed here error
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Mike777
I am trying to correct my errors on www.texasmilitia.info
With the code below the flag gifs and text center in the webpage display correctly but this is the error code I get with https://validator.w3.org

Line 16, Column 8: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
<center><img src="images/TX flagbar.gif" width="468" height="25" alt="">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


Here is the source code :

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>texas militia</title>
6 <meta name="description" content= "militias are not illegal, join texas militia, texas militia training exercise, militias are authorized by US Constitution, training free of charge, east texas">
7 <meta name="robots" content= "index, nofollow">
8 </head>
9
10 <Body bgColor="#FFFFFF">
11
12 <table width="640" border="0" cellspacing="0" cellpadding="100" align="center"><tr><td>
13
14 <font face="Verdana" size="3" color="#0000FF">
15
16 <center><img src="images/TX flagbar.gif" width="468" height="25" alt="">
17
18 <h1>Texas Militia</h1>
19 <p><font face="Verdana" size="1" color="#0000FF"></p>
20 <img src="images/TX flagbar.gif" width="468" height="25" alt=""><br>
21
22 <h2>Texas Militia Training Exercise Saturday, May 14, </h2>
23
24 <p><b>Scroll down for more information & keep reading, it's all one long webpage.</b></p>
25
26 <font face="Verdana" size="3" color="#000000">
27
28 <img src="images/GC3.jpg" width="634" height="506" alt="">
29
30 <br>
31
32 <font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?<font face="Verdana" size="3" color="#0000FF"></p></center>
33


By having <center> on line 16 and the corresponding </center> on line 32 it makes the flag bar gifs and the text in between line 16 and line 32 correctly center but I get the error code above.

I have tried deleting the <center> on line 16 but it all did not center. Then I tried putting everything from line 16 to line 32 that I need to center have a its own <center> at the beginning and </center> at the end but it all did not center.

Can anyone tell me what the correct code should be?
pandy
QUOTE
CODE
14 <font face="Verdana" size="3" color="#0000FF">
15
16 <center><img src="images/TX flagbar.gif" width="468" height="25" alt="">


FONT is an inline element. Inline elements can only contain other inline elements, not block level elements. CENTER, as well as H!, H2, P and so on that come further down are block level.

It's better to stop to use FONT altogether and use CSS instead. But if you use FONT you need to repeat it for each block level element, inside that block level element. Yes, it's tedious, which is one of many reasons not use it anymore.

You can read about block and inline elements here.
https://htmlhelp.com/reference/html40/block.html

And, to make it clear, HTML are all about containers. Each element (mostly) has a start tag and a closing tag, right? It contains everything that's between those tags. So HTML contains the whole document, including HEAD and BODY. BODY contains everything that's visible on the page. Now you've made FONT contain H1, H2, P and maybe more (stopped reading there). It can't do that.

Also, please paste the markup in directly here without those numbered lines. It didn't matter for this, but if we need to look at it in a browser we don't want to have to edit those numbers away. wink.gif
Mike777
Thanks for the link about about block and inline elements pandy. Sorry about the numbered lines. I won't put them in any more. I included the URL in case you needed to see it in a browser and it is all one long page.

I don't know how to code CSS so I suppose I should stay with HTML.

Are you saying that to use HTML instead of CSS:
1. I should remove all the <h1>, </h1>, <h2>, </h2>, <h3>, </h3> code?
2. Then I should have <center> at the beginning and </center> at the end of everything I want centered?
Mike777
When I made the 2 changes listed above and I took the <p> and the </p> off of line
19 <p><font face="Verdana" size="1" color="#0000FF"></p>
That was a mistake. I did not intend to put paragraph code there.
so it became
19 <font face="Verdana" size="1" color="#0000FF">
I still got the same error message for line 16 when I used the validate by direct input option on the WC3 mark up validator.

Line 16, Column 8: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></cente…
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
pandy
PLEASE get rid of those line numbers!

You never close that FONT, there is no closing tag. Thus that FONT element contains the rest of the page and you have a lot of block level elements there.

As an example... You CANNOT do this.

CODE
<!-- This is wrong! -->

<font face="Arial">

   <h2>A heading</h2>

   <p>
   A paragraph...</p>
   <p>
   A paragraph...</p>

</font>


You must do it like this.

CODE
<h2><font face="Arial">A heading</font></h2>

<p>
<font face="Arial">A paragraph...</font></p>
<p>
<font face="Arial">A paragraph...</font></p>



Or, you could put this style block in HEAD.
CODE
<style type="text/css">
body   { font-family: Arial, sans-serif }
</style>


Which would keep your HTML clean like this.
CODE

<h2>A heading</h2>

<p>
A paragraph...</p>
<p>
A paragraph...</p>


That single line of CSS will be good for the whole page instead of repeating FONT for each block level element. If you use an external style sheet it can be good for a whole site, or several sites even.
Mike777
Thanks for the help pandy. I would be glad to go back and delete the line numbers but the time limit is up now so I can't go back to the first post and edit them out now.

I will study your last message tomorrow afternoon after church and see if I can figure out what changes I should make. I having trouble understanding exactly what to change to fix the code validator error messages.

Most of the text on the website is in blue, some it is in red and I used veranda font.

Here it is without the line numbers.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>texas militia</title>
<meta name="description" content= "militias are not illegal, join texas militia, texas militia training exercise, militias are authorized by US Constitution, training free of charge, east texas">
<meta name="robots" content= "index, nofollow">
</head>

<Body bgColor="#FFFFFF">

<table width="640" border="0" cellspacing="0" cellpadding="100" align="center"><tr><td>

<font face="Verdana" size="3" color="#0000FF">

<center><img src="images/TX flagbar.gif" width="468" height="25" alt="">

<h1>Texas Militia</h1>
<font face="Verdana" size="1" color="#0000FF">
<img src="images/TX flagbar.gif" width="468" height="25" alt=""><br>

<h2>Texas Militia Training Exercise Saturday, May 14, </h2>

<p><b>Scroll down for more information & keep reading, it's all one long webpage.</b></p>

<font face="Verdana" size="3" color="#000000">

<img src="images/GC3.jpg" width="634" height="506" alt="">

<br>

<font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?<font face="Verdana" size="3" color="#0000FF"></p></center>
pandy
The line numbers you've already posted are fine. Just stop doing it, please. biggrin.gif

Well, you need to learn HTML, so you can just as well learn basic CSS at the same time.

You could do it like this.

CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content= "militias are not illegal, join texas militia, texas militia training exercise, militias are authorized by US Constitution, training free of charge, east texas">

<title>texas militia</title>


<style type="text/css">
body      { color: #00f; background: #fff;
            font: 100% Verdana, sans-serif;
            text-align: center }
.standout { color: red; background: inherit }
</style>

</head>

<body>

<img src="images/TX flagbar.gif" width="468" height="25" alt="">

<h1>Texas Militia</h1>

<img src="images/TX flagbar.gif" width="468" height="25" alt="">

<h2>Texas Militia Training Exercise Saturday, May 14</h2>

<p>Scroll down for more information & keep reading, it's all one long webpage.</p>


<img src="images/GC3.jpg" width="634" height="506" alt="">


<p class="standout">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?</p>

</body>
</html>



I deliberately did not make some text so small as you had, because it was hard to read.

I did not make the page have a fixed width because it isn't necessary. If you don't use a fixed with the text will wrap. The lines won't be wider than the browser window. You may use some margins if you don't want the text to run all the way to the edges. I assume you are going to put longer pieces of text in there later?

The trick is to not control more than necessary, to let things adapt. It ain't paper.

I also didn't use the nofollow meta tag. I don't think you know why you have it. It will only make you unpopular. wink.gif
Mike777
Yes, Sir, Pandy, as you say I need to learn HTML and I need to learn basic CSS at the same time.

Since 2008 I wrote the website with AlleyCode text editor by just by trial and error since AlleyCode will preview the webpage in my browser as soon as I click the preview icon. Until I checked it with https://validator.w3.org a couple of weeks ago I thought it had no code errors at all. Now I am studying a book on HTML. I really appreciate y'alls HTML help forum.

I choose "nofollow" becasue there are not any other pages to follow. All links on it are only to other websites. The website is just all one very long page with the most important information first to avoid an information overload.

With no other pages to follow should I still choose "follow" meta tag?

Thank you very much Pandy, for the code you wrote for me. I looks and displays correctly with no errors.

However as soon as I put it with the rest of the code I have major problems I haven't figured out how to fix.

1. At

<i>"A well regulated militia being necessary to the security of a free State, the right of the People to keep and bear arms shall not be infringed."</i></b></p>

the text all starts going far wider than the approximately 640 pixel width I need. So it will be narrow enough to display on Android phones I need the text to be no wider than the images (about 640). The text never wrapped before. My website is all one long page at https://www.texasmilitia.info if you want to see what it looks like.

I won't putting in longer text. In my previous post I only posted my HTML code down to line 16 the first line I got a code error on to save space on the forum.

My HTML code runs 540 lines but it all would not fit on the forum so this time I snipped it at line 241 to fit into the forum.

2. Instead of left justifying all the text except captions below images and except for captions below embedded videos, now below this line of code:

<p><b>"All laws which are repugnant to the Constitution are null and void." Marbury vs. Madison 5 US (2 Cranch) 137, 174, 176, (1803) <br></b>
The United States Constitution is the supreme law of the land.</p>
<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>


all the text is centered when I need it left justified.

-----------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content= "militias are not illegal, join texas militia, texas militia training exercise, militias are authorized by US Constitution, training free of charge, east texas">

<title>texas militia</title>

<style type="text/css">
body { color: #00f; background: #fff;
font: 100% Verdana, sans-serif;
text-align: center }
.standout { color: red; background: inherit }
</style>

</head>

<body>

<img src="images/TX flagbar.gif" width="468" height="25" alt="">

<h1>Texas Militia</h1>

<img src="images/TX flagbar.gif" width="468" height="25" alt="">

<h2>Texas Militia Training Exercise Saturday, May 14</h2>

<p>Scroll down for more information & keep reading, it's all one long webpage.</p>

<img src="images/GC3.jpg" width="634" height="506" alt="">

<p class="standout">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?</p>

<p><b>Amendment II United States Constitution<br>

<i>"A well regulated militia being necessary to the security of a free State, the right of the People to keep and bear arms shall not be infringed."</i></b></p>

<p><b>"All laws which are repugnant to the Constitution are null and void." Marbury vs. Madison 5 US (2 Cranch) 137, 174, 176, (1803) <br></b>
The United States Constitution is the supreme law of the land.</p>
<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p>Militias are not in favor of having another revolution in America. We are for restoring a literal interpretation of the United States Constitution as the founding fathers intended with a strong emphasis on the bill of rights, states rights, and a limited federal government. Militias are not illegal. Militias are authorized by the US Constitution.</p>

<p>If you are a rifle owning USA Citizen who is willing to uphold and defend the United States Constitution against all enemies both foreign and domestic then you are militia.</p>

<h3>To join our Texas Militia:</h3>
1. You must be a rifle owning USA Citizen who is willing to uphold and defend the United States Constitution against all enemies both foreign and domestic.<br>
2. You must be physically fit enough to patrol keeping up with us carrying at least your rifle, 6 spare loaded magazines, and two quarts of water.<br>
3. You must come out and train with us.</p>

<p>Militiamen realize, as did the founding fathers who threw off the tyranny of the British; that our rights come directly from God himself who is a higher authority than any government.</p>

<p>On April 19, 1775 when government troops marched on Lexington and Concord to begin gun confiscation it was militiamen who stopped them firing the shot against tyranny that was heard around the world which started the United States of America. Without the militia there never would have been a USA.<p>

<p>Militias are for enforcing the US Constitution and recognizing it as the supreme law of the land superior to any international treaties and superior to any Untied Nations rulings. Militias are the last line of defense against tyranny and invasion.</p>

<p>The Second Amendment is not about the right to keep firearms to go hunting. The Second Amendment is about the right of the people to keep and bear firearms to prevent a tyrannical government from infringing upon our God given rights and to ensure our ability to uphold and defend the constitution against all enemies both foreign and domestic.</p>

<p>Our Texas Militia is focused on small unit light infantry combat training not to support a corrupt government but to keep a corrupt government in check. Rather than just build up a local militia, we train men to start at least a 3 man fire team in their own neighborhood either now or for in the future in case of foreign invasion or gun confiscation.</p>

<p><font face="Verdana" size="3" color="#FF0000">Unlike some other militias in Texas we never charge for anything. We have no dues and no membership application fees. We do not require any background checks and we do not require you to have a concealed handgun carry permit. We do not have anyone sign up for FEMA/CERT training as we know the government considers patriots a threat and uses FEMA/CERT training (and any other contact with militias) to collect intelligence on them. As Mark Koernke says, "there are no pet puppies they eat their own."</p>

<p>We don't have any restaurant meetings and we don't do any meet and greets. We only meet for training. After training with us you will be able to train at least a 3 man fire team in your area.<FONT COLOR="#0000FF"></p>

<p>As an all volunteer force the militia differs from the military. All of our Texas Militia units are autonomous. No militia unit commands any other militia unit and we do not need a state militia commander or a centralized militia command which could be taken out or compromised. All patriots are encouraged to start at least a 3 man fire team in their neighborhood or area and build up from there. A good way to start a local militia is to have a neighborhood watch meeting to meet and screen the hard core patriots to recruit for a militia unit.</p>

<p>We want everyone trained and ready to start fire teams for force multiplication as masses of people wake up. If militiamen grouped up in large numbers we would be an easy target for the enemy to find and eliminate. Also realize that if the UN starts gun confiscation or if the Chinese or Russians invade that vehicular transportation and electronic communication will go down quickly. So we don't need a command structure any higher than the fire team or squad level since the only effective means of resistance for the militia would be that of many scattered neighborhood fire teams waging hit and run guerrilla warfare from a multitude of locations so the invaders would never know where, when, or from what directions they would be hit from next.</p>

<p><font face="Verdana" size="3" color="#FF0000">It is good if you have had some military training but realize that militia tactics differ from military tactics. <FONT COLOR="#0000FF">The goals of military tactics are to rapidly take and then hold ground while incurring acceptable losses. The militia has no need to rapidly take ground and no need to hold ground. Rather than incur acceptable losses the militia must minimize losses. The military has body armor, medevac, doctors, and hospitals. While the militia has no medevac, no doctors, no hospitals, and few have body armor. The military has re-supply and nearly all the ammo they want while militia resources are limited and our only re-supply would be what we could take from the invaders. The militia trains to fight an extended war of hit and run attrition until the invaders lose the will to fight. <font face="Verdana" size="3" color="#FF0000">The militia teaches guerrilla warfare modified military tactics not military sweep through with acceptable losses tactics.<FONT COLOR="#0000FF"></p>


<font face="Verdana" size="3" color="#FF0000">Rather than a top down command structure (which could be taken out or compromised) our Texas Militia is united by our common goal and standard operating procedure of maintaining our God given constitutional rights and upholding and defending the US Constitution against all enemies both foreign and domestic.<FONT COLOR="#0000FF"></p>


<p>Here is an excellent video illustrating the importance of the militia and our right to keep and bear firearms: "2A Today for The USA" <a href="http://www.jpfo.org/filegen-a-m/2a-today-download.htm" target="_blank"><font face="Verdana" size="3" color="#FF0000"> click here to watch <font face="Verdana" size="3" color="#0000FF"></a></p>

<p>We recommend this excellent documentary video you can watch for free here: <a href="http://archive.org/details/911theRoadtoTyranny" target="_blank"><font face="Verdana" size="3" color="#FF0000">9/11 The Road To Tyranny by Alex Jones <font face="Verdana" size="3" color="#0000FF"></a></p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p><font face="Verdana" size="3" color="#0000FF">If our freedom is attacked it won't matter much how well trained any one Texas Militia unit is if there are not enough militia units. We need as many militia units as we can get throughout Texas to keep any invaders or enemies of freedom bogged down on hundreds of simultaneous fronts to ensure our victory.<font face="Verdana" size="3" color="#FF0000"> We encourage all patriots to train with us and then start at least a 3 man fire team in their neighborhood or area. <FONT COLOR="#0000FF">All patriots need to be combat trained force multipliers ready for the day when vast numbers of Americans (who have been pushed too far) are ready join with the militia in defense of our God given constitutional rights.</p>

<p>Our militia training exercises require physical exertion such as patrolling with a rifle, at least 4 to 6 loaded spare magazines, a load bearing vest or web gear to carry the magazines, a camelbak or a canteen, and other essential battle gear.</p>

<p>To participate in the militia and to be combat effective you do not have to have an expensive semi-automatic rifle. If you need to save money you could get by with a military surplus bolt action rifle and military surplus gear. To see how to equip yourself on a budget <a href="http://web.archive.org/web/20130918132229/http://www.michiganmilitia.com/budget/budget.htm" target="_blank"><font face="Verdana" size="3" color="#FF0000">Click Here<font face="Verdana" size="3" color="#0000FF"></a></p>

<center><p><img src="images/4th Armor of God mod 7.jpg" width="634" height="800" alt=""></p></center>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p><b><FONT face="Verdana" size="4" COLOR="#FF0000">Texas Militia Training Exercise<br>
Saturday, May 14, 2022<br>
Location: near Colmesneil, Texas - East Texas<br>
<FONT "Verdana" size="2"COLOR="#0000FF"><br>
To See Where Colmesneil, TX is <a href="https://www.google.com/maps/place/Colmesneil,+TX+75938/@30.885427,-94.2564573,10z/data=!4m2!3m1!1s0x8638549dd6b77fef:0xc9023813874e6811" target="_blank"><font face="Verdana" size="3" color="#0000FF"><font face="Verdana" size="3" color="#FF0000">Click Here<font face="Verdana" size="3" color="#0000FF"></a></b></p>

<p><b><font face="Verdana" size="3" color="#0000FF">ATTENTION MILITIAMEN: The Texas Militia is having a by invitation only training exercise on private land for rifle owning patriotic USA Citizens starting at 8 am Saturday, May 14, 2022. Do not come on to the training area property until after we unlock the gate at 8 am Saturday, May 14th. You can camp out with us Saturday night to continue training with us Sunday morning or you can go home Saturday night.</p></b>

<p>We will have live rifle and pistol fire on steel reactive targets so eye protection is mandatory.</p>

<p>We will have militia small unit light infantry combat training and force on force combat simulations using blank ammunition. After each battle we will have a debriefing to go over what we have learned from each combat simulation. Because our goal is to learn it doesn't matter which team wins each battle. The true winners are those who have learned something. We will have blanks on hand in .223, 7.62x39, and .308 for all participants in the combat simulations. You are welcome to bring your own blanks or we will have some we can sell you at our cost. If you don't have a blank adapter you can cycle your rifle by hand after each shot.</p>

We are not meeting just to sit around and talk. All men attending our training exercises must be physically fit enough to patrol with a rifle, web gear, canteen or camelbak, and at least 4 to 6 loaded spare magazines. No news media or journalists of any kind will be allowed. No alcohol, drugs, or illegal weapons will be allowed. Cell phones and cameras must remain in your vehicle. No one under 18 years of age is allowed at our training exercises. Anyone you bring with you except for your wife or girlfriend must email us for a separate invitation.
</p>

<p>Our militia training is free of charge. Our training is focused on small unit light infantry combat tactics. If you have to drive very far you can pack the night before, go to bed early, and then get up at 4 or 5 am that morning to head out.<FONT COLOR="#0000FF"> </p>

<p>We will practice ambushes, counter-ambushes, and patrolling. We will also have class room type training so bring a note book and a pencil too. Our force on force small unit light infantry battle training with blanks will be conducted as combat simulations to learn from not as games. </p>

<p>Bring your rifle, handgun, ammo, battle load, web gear, camelbak or canteen, camping gear (if you are camping out with us), folding or camp chair (if you don't want to sit on the ground), entrenching tool/folding shovel, toilet paper, drinking water, flashlight, what you want to eat and rain gear in case of rain. So we will have more time for training you should bring food that is already cooked that only needs to be warmed. Wear camouflage BDUs if you have them or you can wear hunting camo if you don't have BDUs or you can even wear dark earth toned street clothes if you don't have camo. If you don't have it all, bring what you can and collect what you don't have over time. Adapt, improvise, and overcome.</p>

<p>For recommended militia gear and how to set it up <a href="http://web.archive.org/web/20090419093755/http://kissata.homestead.com/equipmentlist.html" target="_blank"><font face="Verdana" size="3"
color="#FF0000">click here.<FONT COLOR="#0000FF"></a></p>

<p>We only meet for training and you must be physically fit to train with us.</p>

<p>We don't care if you have a permit to carry a concealed handgun or not and we don't do criminal history background checks but you must own and bring a rifle larger than a .22 rimfire. </p>

<p><b>Email us at </b><font face="Verdana" size="3" color="#FF0000"><b> Contact-Texas-Militia@protonmail.com <FONT COLOR="#0000FF">if you can train with us on Saturday, May 14, 2022 near Colmesneil, TX. </b>Tell us about yourself, your age, and what city in Texas you live in or live closest to.</p>

<p><font face="Verdana" size="3" color="#FF0000">Some e-mail service providers are anti-militia and are falsely calling all of our e-mails spam so if you e-mail us be sure to put us on your address list, safe list, or send to list, also check your spam folder for our reply. If you don't get a reply from us try emailing us with a different email provider.</p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p><FONT COLOR="#0000FF">"At least once every human should have to run for his life, to teach him that milk does not come from supermarkets, that safety does not come from policemen, that 'news' is not something that happens to other people. He might learn how his ancestors lived and that he himself is no different--in the crunch his life depends on his agility, alertness, and personal resourcefulness." -- Robert A. Heinlein</p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p>The militia/patriot movement backed down the gun hating Clintonista's in the 1990's but traitors in the government are still trying to sign the US on to the United Nations Small Arms Treaty to ban all private firearm ownership in the US.</p>

<p>On December 31, 2011 Obama signed the National Defense Authorization Act (NDAA) into law in total violation of our God given constitution rights saying that US Citizens in the US can be arrested in secret, never given a trial, and can be secretly imprisoned for the rest of their lives in FEMA Concentration Camps.</p>

<p>Freedom is not free it comes at a price. If we did not have militias to ensure our God given constitutional rights then traitors in the government would not hesitate to ban firearm ownership by signing on to the United Nations Gun Ban Treaty, start door to door gun confiscation, and try to put patriots in FEMA Concentration Camps. </p>

<p>Your first mistake on a battlefield could be your last mistake. We all need to train and we need to train often. Most men are already proficient with a rifle. What you can learn training with us are small unit light infantry combat tactics, how to fight as a team, the art of fire and maneuver, and how to train a local defense group to fight as a team. </p>

<p>This is why you should train with a militia; if a group of 12 hunters with no small unit light infantry military or militia experience fought against an equally equipped invading foreign military 12 man long range reconnaissance patrol the group of hunters would be wiped out 9 times out of 10 because the hunters do not know the art of fire and maneuver and they do not know how to coordinate their efforts to fight as a team. The small unit light infantry training we provide militiamen will make them highly effective force multipliers and they will be better able to implement Mark Koernke's 5/10 plan (the 5/10 plan is for all militiamen who can to store firearms, ammunition, and equipment to outfit 5 to 10 additional militiamen). </p>

<p>If World War III starts or if FEMA's priority Red List arrests start and communication and transportation goes down you might not be able to link up with your existing fire team but you can quickly train patriots you meet if you have learned how to fight as a team from our militia training. If you are not familiar with "The Red List" please see the article THE RED LIST - FEMA's Priority Red List Arrest Plans further on down this web page.</p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p>It is up to each fire team to decide which camouflage pattern and colors are best for their area of operation. We do not require militiamen to wear Multicam BDU's. Mulitcam is good for West Texas but Army Woodland BDU's and Marine Woodland Digital BDUs are much more effective than Multicam in East Texas and they cost less than Multicam. Multicam is too light a color and to brown to blend in well in East Texas 90 percent of the time where the predominant color is green until we occasionally get into winter brown out conditions. Olive drab is also good and it does not fade out like camo. Hunting camo can work well in the fall and winter. Dark earth tone street clothes (dark greens and browns) also work well and sometimes (such as if you have to travel during martial law) could be better than camo since camo immediately identifies you as a combatant. ACU stands our everywhere. Black BDU's are not recommended either. Black BDU's stand out because black is not a predominant color in nature and even during the night they are darker than the skyline. Nazi Storm Troopers started the back uniform nonsense just to intimidate people.</p>

<p>Do not wash your BDU's in laundry detergent since all laundry detergent contains UV dyes and brighteners which stands out to the naked eye and to night vision devices. Only wash BDU's with baking soda, dish soap, sports wash, or bar soap shavings and wash them in a bucket by hand since all washing machines never drain out all the water but retain water for ballast. Then hang your BDU's out to dry to avoid the UV dye left in clothes dryers.</p>

<p>For recommended militia gear <a href="http://web.archive.org/web/20090419093755/http://kissata.homestead.com/equipmentlist.html" target="_blank"><font face="Verdana" size="3"
color="#FF0000">click here <FONT COLOR="#0000FF"></a></p>

<p>For recommended militia rifles <a href="http://web.archive.org/web/20090629112653/http://kissata.homestead.com/RifleEvaluations.html" target="_blank"><font face="Verdana" size="3"
color="#FF0000">click here <FONT COLOR="#0000FF"></a><br>

<p>To get firearms for the least amount of money it is best to buy them from a part time gun dealer (FFL holder) who is not trying to make a living selling guns like a gun store owner is. Buy them on a cost plus basis from a part time dealer to save money. You purchase a money order to send to the gun seller or the gun wholesaler the amount he is going to charge the gun dealer for the gun paying for it in advance. Mail the money order for the gun with a signed copy of the gun dealer's FFL license to the seller. Then when the gun arrives at the gun dealer you pay the gun dealer the set rate you had him agree upon (often it is just $25 or $30) to transfer the gun to you. You can find such gun dealers here <font face="Verdana" size="3"color="#FF0000"></a><a href="https://www.gunbroker.com/ffl/index" target="_blank"><font face="Verdana" size="3"
color="#FF0000"> Gun Broker.Com Dealer List <FONT COLOR="#0000FF"></a> just enter your location and it will list the gun dealers that are willing to do firearm transfers for you in your area.</p>

<p>Ammunition can be hard to find sometimes but it can be found quickly with ammo search engines like this one <a href="http://ammoseek.com" target="_blank"><font face="Verdana" size="3"
color="#FF0000">http://ammoseek.com <FONT COLOR="#0000FF"></a>
and with most free checking accounts you can get a free MasterCard or Visa debit card then you can order ammo and hard to find equipment over the Internet and get it shipped to you immediately before it becomes out of stock.</p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<center>
<p><img src="images/larger waco church burning.jpg" width="597" height="450" alt=""><br>
Remember The Waco, Texas Church Massacre<br>
</center>

<center>
<p><img src="images/reno & fire.png" width="504" height="399" alt=""><br>
US Attorney General Janet Reno said the raid on the <br>Branch Davidian's church in Waco "was for the children."
</center>

<center>
<p><img src="images/burnt child at waco.jpg" width="510" height="390" alt=""><br>Then she had 23 children, 2 un-born babies, <br>34 women, and 19 men living at the church burnt to a crisp. See: <a href="http://web.archive.org/web/20090403014635/http://www.wizardsofaz.com/waco/picturethis.html" target="_blank"><br><font face="Verdana" size="3" color="#FF0000">Waco, A Senseless Slaughter<FONT COLOR="#0000FF"></a></center></p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p> Do not believe the major news media. It's fake news.<br>
We recommend these sites for news:<p/>

<p><A href="http://www.infowars.com" target="_blank"><font face="Verdana" size="3"color="#FF0000">Info Wars<FONT COLOR="#0000FF"></a> There's a war on for your mind!</p>

<p><A href="https://naturalnews.com" target="_blank"><font face="Verdana" size="3"color="#FF0000"> Natural News with Mike Adams<FONT COLOR="#0000FF"></a> Defending health, life, and liberty!</p>

<p><A href="https://www.conspiracycastle.live" target="_blank"><font face="Verdana" size="3"color="#FF0000"> Conspiracy Castle with Alex Stein<FONT COLOR="#0000FF"></a>
Take the Red Pill if you dare!</p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p>We recommend these websites with excellent information for militiamen:</p>

<p><A href="http://tireironscorner.blogspot.com" target="_blank"><font face="Verdana" size="3"color="#FF0000">Tire Iron's Corner,<FONT COLOR="#0000FF"></a> Tactical lessons for militiamen from a former US Marine Special Forces Operator.</p>

<p><A href="http://www.tireironblog.com" target="_blank"><font face="Verdana" size="3"
color="#FF0000">Tire Iron's Blog<FONT COLOR="#0000FF"></a></p>

<p><A href="https://www.americanpartisan.org" target="_blank"><font face="Verdana" size="3"
color="#FF0000">American Partisan,<FONT COLOR="#0000FF"></a> Analysis, information, and tools for preserving Western Civilization.</p>

<p><a href="http://web.archive.org/web/20080702221648/www.colddeadhands.addr.com/misstate.htm" target="_blank"><font face="Verdana" size="3"
color="#FF0000"> Patriot War College<FONT COLOR="#0000FF"></a></p>

<p><a href="http://web.archive.org/web/20120213123533/http://kissata.homestead.com" target="_blank"><font face="Verdana" size="3"
color="#FF0000">KISS ANTI-TERRORIST ALLIANCE <FONT COLOR="#0000FF"></a></p>

<p><a href="http://mountainguerrilla.wordpress.com" target="_blank"><font face="Verdana" size="3"
color="#FF0000">Mountain Guerrilla,<FONT COLOR="#0000FF"></a> tactics by a former Special Forces Operator</p>

<p><a href="http://www.awrm.net/forums/ubbthreads.php?ubb=cfrm" target="_blank"><font face="Verdana" size="3"
color="#FF0000">A Well Regulated Militia<FONT COLOR="#0000FF"></a> (a militia discussion forum)</p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<center>

<p>The embeded videos below play in Firefox Browser. <br>They might not show in other browsers.</p>

<p><object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/MnUKzJzdw_Y?fs=1&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MnUKzJzdw_Y?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object><br>We Have The Right To Defend Freedom</center></p>

<center>
<p><object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/3GIxusWzkN0?fs=1&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3GIxusWzkN0?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object><br>You Are The Resistance</center></p>

<center>
<p><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/WpeCHu4DhcU?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WpeCHu4DhcU?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="640" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object><br>Freedom Is Not Free - Be Ready For Red Dawn</center></p>

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p>We support OATH KEEPERS an association of Active Duty US Military, Veterans, and Police who will honor their oaths to uphold and defend the US Constitution against all enemies both foreign and domestic and who promise not to obey any unlawful orders:<br>
1. We will NOT obey orders to disarm the American people.<br>
2. We will NOT obey orders to conduct warrantless searches of the American people.<br>
3. We will NOT obey orders to detain American citizens as unlawful enemy combatants or to subject them to military tribunal.<br>
4. We will NOT obey orders to impose martial law or a state of emergency on a state.<br>
5. We will NOT obey orders to invade and subjugate any state that asserts its sovereignty.<br>
6. We will NOT obey any order to blockade American cities, thus turning them into giant concentration camps.<br>
7. We will NOT obey any order to force American citizens into any form of detention camps under any pretext.<br>
8. We will NOT obey orders to assist or support the use of any foreign troops on U.S. soil against the American people to keep the peace or to maintain control.<br>
9. We will NOT obey any orders to confiscate the property of the American people, including food and other essential supplies.<br>
10. We will NOT obey any orders which infringe on the right of the people to free speech, to peaceably assemble, and to petition their government for a redress of grievances.<br></p></p>

snipped here to save space on the forum

<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center></font></td></tr></table></body></html>
Mike777
QUOTE
My website is all one long page at https://www.texasmilitia.info if you want to see what it looks like.


I apologize for the above error I should have left out the "s" on https. It won't let me edit the post now to correct my typo.

The correct url to my website that I am trying to correct all the code errors on is:
http://www.texasmilitia.info
I need to keep the text no wider than the images as it displays there now.

pandy
QUOTE(Mike777 @ Mar 27 2022, 11:38 PM) *

With no other pages to follow should I still choose "follow" meta tag?


You can leave that meta tag out completely. Links will be followed without you saying so. The nofollow is for when you don't want SE robots to follow external links. Why wouldn't you want that? If another site links to yours you want SEs to follow that link, right? In the same way you should allow them to follow your links to other sites.

NOFOLLOW is used here at the forum. That's to make it less attractive to spammers. Spammers put hidden or open links in their posts to sites that sell things or they just want more visitors and better SE ranking. Or they have a link in their sig and make a lot of posts just to display that link. By using NOFOLLOW they gain nothing by doing so. Google et al won't follow their link and their google ranking won't increase. But this is a foum where spammers my post. YOU have no reason to not let sites you link to get that advantage.

QUOTE
Thank you very much Pandy, for the code you wrote for me. I looks and displays correctly with no errors.

However as soon as I put it with the rest of the code I have major problems I haven't figured out how to fix.

1. At

<i>"A well regulated militia being necessary to the security of a free State, the right of the People to keep and bear arms shall not be infringed."</i></b></p>

the text all starts going far wider than the approximately 640 pixel width I need.


That's because I didn't use any width. You don't need it.

QUOTE

So it will be narrow enough to display on Android phones I need the text to be no wider than the images (about 640).


Nope. The text will wrap to fit the window. Make a browser window as small as you want and you'll see that. You may want to limit the width a little to make it look nicer on big screens though.



QUOTE
I won't putting in longer text. In my previous post I only posted my HTML code down to line 16 the first line I got a code error on to save space on the forum.


What? That's the fist time I've heard that. Are you sure? I'm sure I've posted a lot longer texts myself.

I'll look at your page in a while. Must make breakfast. And yes, I realize now you don't want all text center aligned. wink.gif
pandy
Well, one error that is repeated many times is that you don't close FONT properly, that is not at all.

Here's an example.

CODE
<font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?<font face="Verdana" size="3" color="#0000FF"></p></center>

<p><b>Amendment II United States Constitution<br>


You skip the closing tag for FONT and instead use a new start tag and you use that wrongly too.

You need to use the closing tag for FONT and then the new start tag needs to go inside the following P. Like this.

CODE
<font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center>

<p><font face="Verdana" size="3" color="#0000FF"><b>Amendment II United States Constitution<br>
Mike777
I wrote: "I won't putting in longer text. In my previous post I only posted my HTML code down to line 16 the first line I got a code error on to save space on the forum."

pandy wrote: "What? That's the fist time I've heard that. Are you sure? I'm sure I've posted a lot longer texts myself."

I apologize, pandy, I meant that I won't be putting in any text longer than the 527 lines of code I already have at http://www.texasmilitia.info

Thanks for the advice pandy, about "nofollow." Even though my website is just all one long page with no other pages to follow I will change it to "follow" in case "nofollow" could hurt SEO.

Thank for the code pandy:
<title>texas militia</title>
<style type="text/css">
body { color: #00f; background: #fff;
font: 100% Verdana, sans-serif;
text-align: center }
.standout { color: red; background: inherit }
</style>
</head>

But it makes my pages far wider than my images.

So, I had better keep this code that specifies overall width:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>texas militia</title>
<meta name="description" content= "militias are not illegal, join texas militia, texas militia training exercise, militias are authorized by US Constitution, training free of charge, east texas">
<meta name="robots" content= "index, follow">
</head>
<Body bgColor="#FFFFFF">
<table width="640" border="0" cellspacing="0" cellpadding="100" align="center"><tr><td>
Since it keeps the width no wider than my images.

Thanks for the code this pandy:
pandy wrote: "You need to use the closing tag for FONT and then the new start tag needs to go inside the following P. Like this.:

CODE
<font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center>

<p><font face="Verdana" size="3" color="#0000FF"><b>Amendment II United States Constitution<br>


But when I put it into website code and delete the previous code the text validator says about it:
Line 32, Column 136: end tag for element "P" which is not open

…To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
Error Line 32, Column 145: end tag for "FONT" omitted, but its declaration does not permit this

…To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center>

You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.

The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.
pandy
QUOTE(Mike777 @ Mar 28 2022, 11:32 PM) *

Thanks for the advice pandy, about "nofollow." Even though my website is just all one long page with no other pages to follow I will change it to "follow" in case "nofollow" could hurt SEO.


You don't need the tag at all. If you use follow it doesn't make any difference if you have it or not. It's just bloat.

You misunderstand. It has nothing to do with if you have internal links or not. NOFOLLOW is used to so other sites won't benefit from your external links




QUOTE

Thanks for the code this pandy:
pandy wrote: "You need to use the closing tag for FONT and then the new start tag needs to go inside the following P. Like this.:

CODE
<font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center>

<p><font face="Verdana" size="3" color="#0000FF"><b>Amendment II United States Constitution<br>


But when I put it into website code and delete the previous code the text validator says about it:
[i]Line 32, Column 136: end tag for element "P" which is not open


You have an opening tag for P in the markup you posted. I just didn't copy all of it.
Mike777
I included all of my code down to line 44 with you correction and I still got the above error code for line 32.
pandy
I can't say without seeing it. I think I got the markup from your site, and there there is a P before that snip. But you have many more error. This specific error is repeated all over, several tens of times IIRC. You won't get a clean bill until you've nuked all the errors. A tip is that when you find an error, like this one, see if you have repeated it. Another tip is to start with just the first section on the page and make that right, meaning copy everything to a new document then delete everything except the top bit, start fresh so to speak. Then you can repeat the markup you know is good for the rest of the page.
Mike777
OK thanks pandy, I will try it again. I really appreciate your help.
Below is my new test document from the start just down to line 42.
The 2 lines you already corrected for me are in bold.
Below that are all the error codes I get down to line 42.
If you can please get part of the code correct for me then I can follow your example and correct the rest myself.

I need to keep this line of code to keep the text no wider than my images.
<table width="640" border="0" cellspacing="0" cellpadding="100" align="center"><tr><td>
--------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>texas militia</title>
<meta name="description" content= "militias are not illegal, join texas militia, texas militia training exercise, militias are authorized by US Constitution, training free of charge, east texas">
<meta name="robots" content= "index, follow">
</head>

<Body bgColor="#FFFFFF">

<table width="640" border="0" cellspacing="0" cellpadding="100" align="center"><tr><td>

<font face="Verdana" size="3" color="#0000FF">

<center><img src="images/TX flagbar.gif" width="468" height="25" alt="">

<h1>Texas Militia</h1>
<font face="Verdana" size="1" color="#0000FF">
<img src="images/TX flagbar.gif" width="468" height="25" alt=""><br>

<h2>Texas Militia Training Exercise Saturday, May 14, 2022</h2>

<p><b>Scroll down for more information & keep reading, it's all one long webpage.</b></p>

<font face="Verdana" size="3" color="#000000">

<img src="images/GC3.jpg" width="634" height="506" alt="">

<br>

<font face="Verdana" size="3" color="#FF0000">United Nations Door To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center>

<p><font face="Verdana" size="3" color="#0000FF"><b>Amendment II United States Constitution<br>

<i>"A well regulated militia being necessary to the security of a free State, the right of the People to keep and bear arms shall not be infringed."</i></b></p>

<p><b>"All laws which are repugnant to the Constitution are null and void." Marbury vs. Madison 5 US (2 Cranch) 137, 174, 176, (1803) <br></b>
The United States Constitution is the supreme law of the land.</p>
<center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></center>

<p>Militias are not in favor of having another revolution in America. We are for restoring a literal interpretation of the United States Constitution as the founding fathers intended with a strong emphasis on the bill of rights, states rights, and a limited federal government. Militias are not illegal. Militias are authorized by the US Constitution.</p>

snipped here
--------------------------------------------------

From: https://validator.w3.org/check

Validation Output: 13 Errors

Error Line 16, Column 8: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <center><img src="images/TX flagbar.gif" width="468" height="25" alt="">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 22, Column 4: document type does not allow element "H2" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <h2>Texas Militia Training Exercise Saturday, May 14, 2022</h2> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 24, Column 3: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
<p><b>Scroll down for more information & keep reading, it's all one long webpag… The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 32, Column 136: end tag for element "P" which is not open …To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center> The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. If this error occurred in a script section of your document, you should probably read this FAQ entry.

Error Line 32, Column 145: end tag for "FONT" omitted, but its declaration does not permit this …To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center> You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

Info Line 26, Column 1: start tag was here <font face="Verdana" size="3" color="#000000">

Error Line 32, Column 145: end tag for "FONT" omitted, but its declaration does not permit this…To Door Gun Confiscation<br>Is this a vision of our future?</font></p></center> You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

Info Line 19, Column 1: start tag was here <font face="Verdana" size="1" color="#0000FF">

Error Line 34, Column 3: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <p><font face="Verdana" size="3" color="#0000FF"><b>Amendment II United States …The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 36, Column 160: end tag for "FONT" omitted, but its declaration does not permit this… right of the People to keep and bear arms shall not be infringed."</i></b></p> You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

Info Line 34, Column 4: start tag was here <p><font face="Verdana" size="3" color="#0000FF"><b>Amendment II United States …

Error Line 38, Column 3: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <p><b>"All laws which are repugnant to the Constitution are null and void." Mar…The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 40, Column 8: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <center><img src="images/TX flagbar.gif" width="468" height="25" alt=""></cente… The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 42, Column 3: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag <p>Militias are not in favor of having another revolution in America. We are fo… The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Error Line 42, Column 357: end tag for "FONT" omitted, but its declaration does not permit this… Militias are not illegal. Militias are authorized by the US Constitution.</p> You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

Info Line 14, Column 1: start tag was here <font face="Verdana" size="3" color="#0000FF">

Error Line 42, Column 357: end tag for "TABLE" omitted, but its declaration does not permit this… Militias are not illegal. Militias are authorized by the US Constitution.</p> You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.

Info Line 12, Column 1: start tag was here <table width="640" border="0" cellspacing="0" cellpadding="100" align="center">…

Mike777
I tried it differently. For each line and image I wanted centered, I tried putting in <p><center> then whatever the image or text was, then and at the end I put </p>,</center> but the validator https://validator.w3.org/check is still calling it error even though it still displays correctly in my HTLM preview in browser.

I thought <p><center> would start the line and </p>,</center> would close the line. I must be missing something.
Christian J
QUOTE(Mike777 @ Mar 30 2022, 03:32 AM) *

I thought <p><center> would start the line and </p>,</center> would close the line. I must be missing something.

When HTML elements are nested you must close the open tags in the correct order, like this:

CODE
<center><p>text</p></center>

--tags can never "overlap" like this:

CODE
<center><p>text</center></p>

Also, not all elements are allowed to be nested inside each other. For example, you're not allowed to put CENTER inside P:

CODE
<p><center>text</center></p>

See the HTML reference about rules for individual elements:

https://www.htmlhelp.com/reference/html40/block/p.html
https://www.htmlhelp.com/reference/html40/block/center.html



Mike777
Thanks Christian J. Now I understand that it should be <center><p>text</p></center>.

I found some more errors from links I went to from a web search for "website test."
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.