HTML - Headers - Which Way Is Best?
Hi everyone. Was just wondering out of interest, what everyone's preferred method for their website headers is.
Which of these do you prefer? 1. Setting background attributes for a #background div via your css file. 2. Having the image and anything else in an include file and using php includes. 3. Placing the code directly within your header div in the main code page. Of these three, no.3 is one I generally just don't do. The other two are both good options I think. With 1, a problem that arises is you are unable to use the alt attribute for any images set via your CSS file, which obviously falls down on the accessibility side. With 2, you can set an alt attribute for any images, I therefore prefer this method. Similar TutorialsHello Everyone, I have had a continuing problem where I have a small to midsize gap in my header on my site, The Final Fight.com. I also have the same problem with my forums, which the gap became apparent when I made a new forum skin that matches our homepage. Any Help with this problem would be GREATLY appreciated. Thanks, MAYH3M why doesnt ebay use headers? h1 h2 ect.. I viewed the source and was surprised not to find a h1, h2 or h3 ect.. I am just wondering if anyone knows why eBay isn't web standards compliant? I am going to do my first website, and I need headings at the top of the page with , Home, Products, Services and Contact headings at the top but I need them to be inside a rectangular tab with round edges. So I need help in information on whether I have to format or style the headings with css eg. h1.one font-family etc etc. and then on the header <h1 class="one"> etc etc. I might be wrong but is there way I can get the headers I want to be round edged? I am new to html so my answer might have been totally wrong just using my own assumptions. Thanks for help and if someone has ideas for other type of header styles I could use I will appreciate the info. Code: <h1>Kookaburras from<br /> The Margaret River Rock</h1> I need to align that but i don't know how. Since h1 doesn't have an align attribute in XHTML and I'm not experienced in it at all. Thanks. If I have an image on my web server how do I monitor the requests made for that image? i.e record the ip address and browser that made each request. Thanks Hi, I have just started to manage a website on Wordpress. There is a header at the top of every page. It used to say the name of the website, but for some reason it has changed to the name of a post that was made a long time ago. Does anyone know how to change this header? Thank you very much. I know this is very rudimentary, but Im having trouble getting the header and footer of my site to bleed off the page. Right now I have it contained, and you can see that there is negative space around these elements. See here http://sassnyc.com/stage/andrewsass.com/ I'm trying to figure out how to fix this, and I know its simple... Alright, this is an admittedly novice question but I haven't been able to figure it out yet and would love some help. I'm currently coding a website (my first, clearly) that will ultimately have a large number of pages. I understand the value of writing semantic code and pairing it with an external style sheet to make changes in design quick and easy across a website. My question is, how do you code common elements across the website (ie headers, navigation bars, footers, etc) so that making a change only once (such as adding a tab to the navigation bar) will change it across the site, without having to change the code on each individual page? I understand that you can do this with php, but it doesn't seem to be the common solution. Is there another way to accomplish this without php? Thanks in advance everybody! Just getting my feet wet. using XMLSpy stylesheet designer to help guide. I'm converting XML to HTML, which is Microsoft's recommended way of controlling the import of XML into Excel. I've got the stylesheet below in productive use. However, I want to make one key change. I want the name of XML elements to become the text column headings so I can deal with files that have dynamic column names. Suggestions appreciated. Here is typical XML: <NewDataSet> <Table> <Name>Linda Britt</Name> <RFQCount>324</RFQCount> <RFQResponseCount>556</RFQResponseCount> </Table> </NewDataSet> Here is the stylesheet. See comments regarding what I'm trying to change. <xsl:template match="/"> <html> <head></head> <body> <xsl:for-each select="NewDataSet"> <xsl:for-each select="Table"> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><table border="0"></xsl:text> </xsl:if> <xsl:if test="position()=1"> <thead> <tr> <td > <span>Buyer Name</span> COMMENT: I want this to be "Name" from element name. </td> <td > <span># RFQs</span> COMMENT: I want this to be "RFQCount" from element name. </td> <td > <span># Responses</span> </td> </tr> </thead> </xsl:if> <xsl:if test="position()=1"> <xsl:text disable-output-escaping="yes"><tbody></xsl:text> </xsl:if> <tr> <td> <xsl:for-each select="Name"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="RFQCount"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="RFQResponseCount"> <xsl:apply-templates/> </xsl:for-each> </td> </tr> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></tbody></xsl:text> </xsl:if> <xsl:if test="position()=last()"> <xsl:text disable-output-escaping="yes"></table></xsl:text> </xsl:if> </xsl:for-each> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet> Hi: I am new to this group and to html programming .. sort of. I am trying to find a way to display http headers from an html file (index.html) The scenario is that I can display the http header variable and value information in my apache access.log file by setting the logformat in the httpd.conf file; and I need to verify that these are all available in the launched index.html file And recommedations greatly appreciated. Ron |