Posts

Showing posts with the label HTML

Html and Css Used in This Book

Image
HTML AND CSS USED IN THIS BOOK We will be using very simple HTML ( Hypertext Markup Language ) and styling it with a minimal amount of CSS ( Cascading Style Sheets ) in this book. Even if you have never created a webpage before, you should be able to get up to speed with this in a couple of minutes, so let’s take a quick look at what you need to know now. HTML HTML is the language used to create webpages. Here’s a bare minimum HTML document representing a webpage: <!DOCTYPE html> < html > < head > < title > My Fancy Website </ title > </ head > < body > < h1 > My Fancy Website </ h1 > </ body > </ html > You can save this in a file called  myFancyWebPage.html , using any text editor, and open it up in any web browser, and “Hey presto!”, you have a webpage! In the above example,  <!DOCTYPE html>  marks that we are starting a new HTML file. Next, insid...

How to avoid common mistakes while publishing Accelerated Mobile Pages

As  Accelerated Mobile Pages  (AMP) are building up momentum we’ve noticed the same mistakes happen again and again when publishing AMPs. Here is a list of steps you should take to avoid breaking your AMPs and ensure a great AMP experience to your readers. 1. Publish only valid AMP files One of the great things about AMP is that the runtime includes a built-in validator. The validator checks if your AMP file contains valid AMP HTML. If your page contains invalid AMP, it will not load correctly and third-party platforms might choose not to show your AMP page. This makes it a good idea to validate a representative subset of your AMP pages to make sure that all different variants are valid. Run the validator by adding “#development=1" to an AMP URL, for example: https://ampexample.com #development=1 You can view the validation result in the  Javascript console  of your browser: 2. Include correct metadata Adding metadata to your AMP files ...

Get Started With Accelerated Mobile Pages (AMP)

Image
Google is currently rolling out accelerated mobile pages in its mobile search results, but how can you get in on the action? Columnist Paul Shapiro explains how you can mark up your mobile pages for a better mobile user experience. Google’s Accelerated Mobile Pages (AMP) project is being launched today. Are you ready for it? In today’s column, I’ll give you an overview of the offering and show you how to get started with it. What Is AMP? This past October, Google announced Accelerated Mobile Pages (AMP), a very accessible framework for creating fast-loading mobile web pages. The open-source initiative is designed to enable publishers to easily improve speed (and consequently, the user experience) for their mobile readership without sacrificing any ad revenue that they may rely upon. Although experienced developers can often achieve similar results through intensive performance optimizations, publishers often neglect this due to resource constraints. AM...

Popular posts from this blog

How to download a file using command prompt (cmd) Windows?

The future of Artificial Intelligence: 6 ways it will impact everyday life

Angular 9 - User Registration and Login Example & Tutorial