Posts

Showing posts with the label #coding

Learn with Kbdk: HTML Editors

Image
 HTML Editors Web pages can be created and modified by using professional HTML editors. However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML. Follow the four steps below to create your first web page with Notepad or TextEdit. Step 1: Open Notepad (PC) or  Open TextEdit (Mac) Step 2: Write Some HTML Example : < !DOCTYPE html > < html > < body > < h1 > My First Heading < /h1 > < p > My first paragraph. < /p > < /body > < /html > Step 3: Save the HTML Page Save the file on your computer. Select File > Save as in the Notepad menu. Name the file "index.htm" and set the encoding to UTF-8 (which is the preferred encoding for HTML files). Step 4: View the HTML Page in Your Browser Open the saved HTML file in your favorite bro...

Learn with Kbdk: AMP Introduction

Image
AMP or Amplify your mobile webpages The  Accelerated Mobile Pages  ( AMP ) Project is a  website  publishing technology developed by Google. Introduction An AMP HTML tutorial - learn the different building blocks of an AMP HTML file. AMP HTML is entirely built on existing web technologies. It achieves reliable performance by restricting some parts of HTML, CSS, and JavaScript. To make up for those limitations AMP HTML defines a set of custom elements for rich content beyond basic HTML. This sample shows what's necessary to create a valid AMP HTML file. The doctype declaration is required. <!doctype html> This tells everyone that this is an AMP file.  <html amp>  works too. < html ⚡ > Head The charset definition must be the first child of the  <head>  tag. < meta charset = "utf-8" > The AMP runtime must be loaded as the second child of the  <head>  tag. ...

Learn With Kbdk: (Python)Hello World Example

Image
Python is a very simple language, and has a very straightforward syntax. It encourages programmers to program without boilerplate (prepared) code. The simplest directive in Python is the "print" directive - it simply prints out a line (and also includes a newline, unlike in C). There are two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This tutorial uses Python 3, because it more semantically correct and supports newer features. For example, one difference between Python 2 and 3 is the  print  statement. In Python 2, the "print" statement is not a function, and therefore it is invoked without parentheses. However, in Python 3, it is a function, and must be invoked with parentheses. To print a string in Python 3, just write: "  print("This line will be printed.")  " The output will be like  This line will be printed. print    Statement  Examples :  Type this  "...