HTML - Non Standard Html Tags And Attributes
Hi People.
I am hooked onto AJAX based apps these days. Instead of using JS to create html using strings. What I did was create a structure in html and clone it to repeat the structure using JS. But, to prevent DOM from being corrupted, I had to append a unique number to the ID of each element (and I had to attach the data to the element anyway). So, instead what I did was remove the ID of the element while cloning and used my own 'data' attribute to attach the data to the element. But, this would violate the W3 standards, right? Or it Wont? What is a better solution? Similar TutorialsMy website home page has no h1 tag, only a h3 tag, and that was used to create a heading of a certain font size. My spider simulator reports there in no h1 tag, suggesting that isn't good for SEO. Should I make sure there is a h1 tag somewhere, and can that be anywhere on the page? (It's not a heading as such). I want a certain sentence to be the h1 tag as it contains several of the keywords. Can I make these changes and dump the h3 tag, leaving only one h1 tag? And can it be done locally rather than in a css file? My website uses the Woo Canvas theme in Wordpress. I've searched all over the place, but can't find any documented HTML coding standard. I'm looking for something that I can use as a guideline for my developers to use. Some kind of a document along the lines of: - how layouts should be designed without using tables - when to use div's and when to use span's - how to properly control text flow - only using CSS for formatting - avoiding inline styles - using inherited CSS classes - etc... I have an enterprise-level .Net application written in C# and using XML for content parsing. We already have a standards guide for C# and XML is pretty self explanatory (in our setup at least), but nothing for HTML. I looked on W3C and other similar sites, but they don't have any actual "standards documents". Did anyone ever have to write something like that? Any help or a link would be appreciated. Hi. What officially is supposed to be the difference between th "id" and "name" attribute according to HTML?? I know Javascript and CSS make a distinction between the two but as far as I can see the 4.01 spec makes no attempt to explain the difference, explanations of both seem like they do the same thing: both are supposed to be global unique, the spec even says they "share the same name-space" implying collisions implying they do the same thing. But I know name is not a valid attribute to alot of elements. Is it historical? Ive been challenged with coming up with 50 tags and fifty attributes. Tags Im ok with but cant for the life of me find the attributes now most of them are in css. Yelp, help? Hello Im new to html and css. Im creating a menu using a css using the <a> tag. when I use the <a> tag later in my code it uses the css. How do I uses the <a> tag in multiple places on the page and without using the css? Here is an example of the css code used. HTML Code: a:link,a:visited { display:block; font-weight:bold; color:#FF0; background-color:#03F; text-align:center; padding:12px; text-decoration:none; text-transform:uppercase; } a:hover,a:active { background-color:#FF0; color:#03f; } I have gone back from scratch in HTML but this time creating my own tutorial as I go along and have covered a few items before right here on this forum before and now I just can't seem to remember and understand the bleepety-bleep-bleep-BLEEP things no matter how many tutorials I read a million times on the net, so really freaking frustrating, my head is about to explode, sorry got to vent somewhere before I run amok! Ok, [I'm taking a few deep breaths here......], let me start with "linking to a location on the same page", I see the anchors Quote: <a href="#myanchor">Go to anchor</a> <a name="myanchor">My Anchor</a> Using my text here as an example, I want to use the word in the first line "gone" to link directly to the word "million" in the 5th line from the top, how do I do this please? I am using the following css <style type="text/css"> #testbar{ position:absolute; background-color: transparent; width: 730px; height: 94px; visibility: hidden; z-index: 100; } </style> then some java script then Html div tag to show the id <div id="testbar"> <a>Close</a> <script src="/testjs.js"></script> </div> The <a>close</a> following the code as i give in js but the testjs.js is not following the specifications produced by that some java script i used this one working in IE but not in firefox3.5 what might be the problem? can u give the solution ________________________ Hello Everyone, I have just started learning html and I am facing a problem. I have wrote the following code in notepad: Code: <h3> HTML Images - The <img> Tag and the Src Attribute </h3> <p> The <img> tag is empty, which means that it contains attributes only, and has no closing tag.<b/><br/> When I open this html file in browser, text "<img>" does not display correctly. Please help me asap. Thanks! For as long as I've been validating web pages, I never realized that the closing </head> tag was optional in HTML. I feel as if I've missed the boat at times. While I'm all for trimming excess code, I just cannot for the life of me strip out closing tags because they are optional in HTML. I'd be concerned that something, somewhere would not parse the document correctly if I removed the closing </head> element. Are my concerns unfounded? Hello HTML Forum, I am having a slight problem. I want to include the tag in my string of letters, to be printed out to the user, but it keeps putting the tags into format. Example: Code: the <h1> tag will create a "header" size "1" tag. Which validates the rest of the code as style: <h1> So how can I show my readers what tag i'm using, without initializing that tag? -Jeff I work as a product manager for a company and one of my responsibilities is to update pricing on our website and I've just recently taken to making cool tables to reference similar products on select product pages. However, with each reference in a description field, the more search results get convoluted and the harder it is to get what you are searching for the come up because our website search tool lists searches alphabetically rather than by relevance. So my question is this: are there any HTML tags that bypass the way search tools organize its listings and let the webmaster specify, "I want this product to show up first in a search." For example, one of our product numbers is P992. We sell similar products, like P993, P994, etc. and I reference P992 on each of these other product pages, but with each product I mention P992 on, that product shows up when you search for P992 on our site, as well. Most of the time the actual product that is searched for is buried somewhere in the middle, depending on where it stands alphabetically, and I can't figure out how to get it to show up at the top of the page. Anyone have any suggestions? I'd rather not spend money on a more advanced search tool and would much rather manually tell our search engine to list the actual product, P992, first and then all other products that mention P992 in their description field to be listed after that. Thanks for any help. For as long as I've been validating web pages, I never realized that the closing </head> tag was optional in HTML. I feel as if I've missed the boat at times. While I'm all for trimming excess code, I just cannot for the life of me strip out closing tags because they are optional in HTML. I'd be concerned that something, somewhere would not parse the document correctly if I removed the closing </head> element. Are my concerns unfounded? Hello Are there any valid HTML tags that you can embed in a page that do not display content on the page? I am looking to store data that a RSS feed can retrieve on a news page, but I don't want the content to display on the news page, only be pulled for the RSS feed. Paul I know that notepad is effective for using HTML tages and save notepad as [save as: name.html] and then it appears like a webpage. I don't know how to do the same with (wordpad, microsoft office word) When I add HTML tages to wordpad or microsoft office word and [save as :name.HTML] it doesn't appear as webpage, when I write an ordinary content in wordpad or microsoft office word how to open and edite the content with HTML tages For as long as I've been validating web pages, I never realized that the closing </head> tag was optional in HTML. I feel as if I've missed the boat at times. While I'm all for trimming excess code, I just cannot for the life of me strip out closing tags because they are optional in HTML. I'd be concerned that something, somewhere would not parse the document correctly if I removed the closing </head> element. Are my concerns unfounded? I am having problems with putting HTML code into an RSS 2.0 description tag. If I escape the HTML using <![CDATA[, the HTML shows up fine when the feed is viewed with Firefox 2.0, IE7, and various feed readers. The problem occurs when browsers like IE6 and Netscape view the .xml feed, as these do not support native RSS. To allow the latter browsers to easily display the feed, I use XSL to transform the XML into something much nicer. However, the escaped HTML shows up as literal characters (code) in the feed when viewed with IE6 and Netscape. How can I show HTML in the description tag of an XML feed using XSL? I also get literal characters when trying entity-encoded HTML. For some reason, on my homepage (http://www.projectdisobey.com/disobeyclothing/) an extra '</div> <!-- content #end -->' is being created in the page source, AFTER the closing 'body' and 'html' tags. There is no mention of '</div> <!-- content #end -->' in my 'footer.php' file, so why does this show up in the page source? Please see the attachment. If anybody could point me in the right direction as to why this might be occurring, and how I might fix it, I would be eternally grateful! Thanks! i'm looking for a cheap way out of making collapse/expand code. i've learned a lot of 'ghetto' techniques n thought mayb i can use something similar to the html tricks i've learned in the past. the theory i have is.. i use the title of the collapse/expand text as a link to the text below it to open and close by using the navigating tags: Code: <a name="content">opening/closing text here</a> and the title above the content: Code: <a href="#content">Title</a> to open the area of text. now my idea of a shortcut around the whole css/html/javacript combo is to make the text below it use a Code: <font size=0>content</font> at default and have the href title link change the font size to the default 9pt but I don't know if that's even possible. Is it possible with the Code: <div> tags? and if so, using that, would i still b able to make a link like that? Hi all, I have build a website and i am now trying to respect every HTML standard and optimise the site for all kind of configuration and browser. I am trying .. My first question is about font. My whole website is build using TAHOMA font. I don't even know if it is a standard font for every OS and browsers. Is it ? Also, if not, should i test the site using another font and specify this alternate font somewhere? If yes, which one and how ? You can have a look at my page ( french page, for my girlfriend who is a musician ) The whole website is running but i am changing many things so my test link here for you would be <link removed> The bottom line of the page appear on 2 separates lines on Firefox and Conqueror. I am using browsershot.org for testing. See link : http://browsershots.org/website/http...envenuet1.html Something makes this line separate in 2 but why... Thanks for your input. Bob |