Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS Am I Right Here?

Sniper Man

New Coder
Is the following HTML code for displaying the top video of my blog's video pages correct? I am particularly interested in knowing if I have implemented the mainEntityOfPage itemprop tag of schema.org correctly.
HTML:
<meta itemprop="duration" content="PT1M33S">
       <meta itemprop="thumbnail" content="https://thuitamaina.com/video_thumbnails/33.jpg">
       <meta itemscope itemprop="mainEntityOfPage" itemtype="https://schema.org/VideoObject" itemid="https://thuitamaina.com/videos/33.mp4">
<video class="blog_images" poster="https://thuitamaina.com/video_thumbnails/33.jpg" controls controlsList="nodownload" oncontextmenu="return false">
      <source src="https://thuitamaina.com/videos/33.mp4" type= "video/mp4">
      </video>
 
Is the following HTML code for displaying the top video of my blog's video pages correct? I am particularly interested in knowing if I have implemented the mainEntityOfPage itemprop tag of schema.org correctly.
HTML:
<meta itemprop="duration" content="PT1M33S">
       <meta itemprop="thumbnail" content="https://thuitamaina.com/video_thumbnails/33.jpg">
       <meta itemscope itemprop="mainEntityOfPage" itemtype="https://schema.org/VideoObject" itemid="https://thuitamaina.com/videos/33.mp4">
<video class="blog_images" poster="https://thuitamaina.com/video_thumbnails/33.jpg" controls controlsList="nodownload" oncontextmenu="return false">
      <source src="https://thuitamaina.com/videos/33.mp4" type= "video/mp4">
      </video>
Here's my latest code for the video. Please ignore the one above and tell me whether the one below is right, especially if I've put the mainEntityOfPage itemprop on the right place:
HTML:
<span itemscope itemprop="mainEntityOfPage" itemtype="https://schema.org/VideoObject" itemid="https://thuitamaina.com/videos/34.mp4">
  <h2 itemprop="name">
    <font color="blue">
      <div align="left">O Lord My Love</div>
    </font>
  </h2>

  <div class="post_info">
    <div class="post_date">
      A Video
    </div>
    <div class="post_author" itemprop="author" itemscope itemtype="https://schema.org/Person ">
      <span itemprop="name">by <i>Thuita J. Maina</i></span>
    </div>
    <time itemprop="uploadDate" datetime="2022-09-06T00:00:00Z">
      <div class="post_comment">on Sep 6, 2022<br></div>
    </time>
    <center><i>Copyright &#169;</i></center>
    <div class="cleaner"></div>
  </div>

  <div class="post_body">
    <div class="container">
      <div></div>
    </div>
    <div>
      <span itemprop="duration" content="PT1M33S">
        <meta itemprop="thumbnailUrl" content="https://thuitamaina.com/video_thumbnails/34.jpg"/>
        <link itemprop="embedUrl" href="https://thuitamaina.com/videos/34.mp4" />
        <video class="blog_images" poster="https://thuitamaina.com/video_thumbnails/34.jpg" controls controlsList="nodownload" oncontextmenu="return false">
          <source src="https://thuitamaina.com/videos/34.mp4" type= "video/mp4">
        </video>
      </span>
      <i><figcaption></figcaption></i>
      <br><br>
      <span itemprop="description">
        In the video above is another hymn that I have produced. It's about asking God - who is our love, strength, tower, hope and joy - to heal our wounded minds and strengthen us with heavenly grace. I urge you to listen to the hymn and then send me your feedback on how to find it. Happy listening!
        <br />
        <br />
        *******************************
        <br />
        <font color="purple"><b>RECOMMENDATION:</b></font>
        If you've enjoyed listening to the hymn above, you might also enjoy another one on
        "<a href="https://www.thuitamaina.com/selected_video.php?Index=17">O Lord My God</a>"
        that I produced more than a year ago. Just click on that link in blue to dive straight into the hymn.
      </span>
    </span>
  </span>
 
Last edited by a moderator:
Hi there,
I know nothing about the mainEntityOfPage meta tag, so I can't tell you if it's correct or not.

Just by looking at your code I can already see that you seem to have used closing </span> tags instead of </div> closing tags toward the end of the code.
Putting your code in the W3C Validator highlights a lot more errors.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom