34 users online (1 members and 33 guests)  


Page 2 of 2 First 1 2
  Results 16 to 18 of 18

Related

  1. Template help    Forum: HTML Forum
    Replies: 8
  1. #16
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Trying to get swf into a template

    I am glad you were able to get it working between the two of you. However, I want to clear up some misconceptions as well.

    Quote Originally Posted by HTML View Post
    1 - images do not belong in header tags (h1) only text.
    Quote Originally Posted by urban View Post
    This is also the first time I have ever seen a img tag in a H1 style.
    There are no images (and there definitely is not an image tag -- <img> -- within the header tag). The only item within the tag is a link (discussed below). The header tag does, however, have a background set to it. This is not the same thing as having an image within it.

    The background-image style is very useful and can be applied to the vast majority of HTML elements. The way the code you gave us is used is to allow text to be changed easily within a database and be placed over an image. If you were to save the image, the text would not be included in the image. The <h1> allows for the text to be styled independently of everything as well.

    Quote Originally Posted by HTML View Post
    2- Hiding text is a huge no no, especially in a header tag. This could very well result in Google penalties.
    This statement is correct, however there is no "hidden text" in the code you gave us. The title attribute of an anchor tag is required for W3C validation. Text between the opening and closing anchor tags will be displayed unless CSS is set to hide it for some reason (Which it is not doing according to the code you gave us. To demonstrate, I will dissect it.
    <h1> <!-- Begin h1 tag -->
    <a href="http://www.uag.co.za/" title="Urban Aluminium &amp; Glass"> <!-- Anchor tag (also known as a link) begins. Anything between here and the end tag will show up. -->
    Urban Aluminium &amp; Glass <!-- This text will show up and provides area to actually click on for the link. -->
    </a> <!-- Anchor tag (also known as a link) ends -->
    </h1>

  2. #17
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    While I do agree with you on most points jthayne, I think you may have missed part of the discussion/problem. You are right, there were no img tags in the header as such, what there was, was usage od the "blogname h1" style, in that style there was an image tag. So everytime you used the h1 tag it was calling the image.

    Hope that made sense

  3. #18
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Trying to get swf into a template

    What you said makes perfect sense. And I did understand perfectly. What I was trying to point out is that the code does NOT make use of image tags in ANY WAY. What it does make use of is CSS styles. Those two are completely different. You are trying to say that CSS styles and HTML tags are one and the same. They are not and are treated differently by browsers, Google, etc.

    Yes, every time that particular h1 TAG was called, the background url STYLE was applied, and the image was loaded. All that needed to be done to stop the image from loading was to remove the background url STYLE from the CSS or the offending h1 TAG from the HTML. What I was trying to point out to anyone who references this post in the future is the difference between TAGS and STYLES.

    My post had nothing to do with your problem, but rather helping to clarify the language of the solution and hopefully help future visitors to have a better understanding.

    As a side note,
    ...in that style there was an image tag...
    Umm....no there wasn't. Instead, there was a background url that was calling an image. An image tag is completely different.



Page 2 of 2 First 1 2

Tags for this Thread