Articles by HTML5 Doctor

How to Center Text in HTML: CSS Examples and Fixes

To center text in HTML, apply the CSS declaration text-align: center; to the block containing the text. For example, <p style=”text-align: center;”>Hello</p> centers that paragraph’s text horizontally. Use CSS for new work; the old center element is obsolete. The common source of confusion is what you want to move. Centering the words inside a box, […]

What Is HTML? A Beginner’s Guide with a Working Example

HTML stands for HyperText Markup Language. It gives a web page its structure and meaning. Which words are a heading? Where does a paragraph start? What does a link point to? HTML marks out those parts so a browser can put the page together. Wondering “what is HTML?” because you want to make a website? […]

How to Add SEO Keywords in HTML: A Practical Guide

To add SEO keywords in HTML, give the page a descriptive title, explain its subject in the main heading and opening paragraph, and use relevant wording in the rest of the content. Add an accurate meta description, link text, and image alternatives. Leave out the meta keywords tag: Google ignores it. Let’s say you're creating […]

HTML5 Video Not Properly Encoded: Causes and Fixes

When you receive the notice “HTML5 video not properly encoded”, your player is unable to use the video provided. The reason could be an unsupported codec or a corrupted file; however, a single notification does not confirm faulty encoding. First, verify that the video URL and server response are correct, and that the requested file […]