Help with inserting a logo

by 8 replies
10
Hello, I'm learning and making my first html site, I have started with html5. Well, what I want to do is to insert a logo using html5, how would be all the code needed? have I to use H1 to wrap the code?
#website design #inserting #logo
  • Any logo is an image, isn't it?

    Is the image code different in hmtl5 than earlier? Nope.

    Read (preferably, before asking) > HTML Images
    • [ 1 ] Thanks

  • <img src="url" alt="Add Text Here">
    • [ 1 ] Thanks
  • Thanks guys, and what about the h1? should it be there in some place?
    • [1] reply
    • You can use the h1 tag for the title or heading of the page <H1>Title or Heading</H1>
      • [ 1 ] Thanks
  • I personally like to use a <h1> tag on my websites for the logo/sitename, so i think i get what you mean.

    I do this by inserting my logo as an image and using the h1 tag for my site title e.g.

    <a href="#"><img src="logo.png" alt="nameofwebsite" class="logo"/><h1 class="title>Website name</h1></a>

    And then style everything with CSS,

    Obviously this does depend on your logo style, so if you are using just a image remember to include the alt tag for the search engines.

    Matt
    • [ 1 ] Thanks
  • You can wrap a H1 around an image (maybe use it with an image replacement technique of your choice).

    I personally do NOT use a H1 tag for a logo... I can not recommend it (bad SEO technique)
    • [ 1 ] Thanks
  • Hey guys and should I use h tags in all pages? let's say for example "contact page" "about" etc

    And the meta description and site title go in all pages on only in the home page?
  • You should use YouTube for this purpose because there are a lot of videos can help you to fix these kinds of miner and typical problems. It is not a big issues from videos you can learn easily and in right way.

Next Topics on Trending Feed

  • 10

    Hello, I'm learning and making my first html site, I have started with html5. Well, what I want to do is to insert a logo using html5, how would be all the code needed? have I to use H1 to wrap the code?