Web Development

HTML

Hyper Text Markup Language

Most web sites are have html pages. A browser requests a web server using a HTTP request. The web server communicates to the browser using a HTTP response. 

HTTP - Hyper Text Transfer Protocol

Elements in a HTTP end-to-end request response cycle are,

  1. Web Browser
  2. Internet (or Intranet too), usually represented by a cloud symbol
  3. HTTP
  4. Web Servers

HTML Markup

Syntax

Contents

The above syntax is of the following format,

Opening_tag: Contents : Closing_tag

Example:

The following code displays HTML content with a bold tag,


In [1]:
from IPython.core.display import display, HTML
display(HTML('My first ipython HTML <b>bold</b> tag'))


My first ipython HTML bold tag
Example 2:

An example to show contents itlicized,


In [3]:
display(HTML('My first ipython HTML <em>italics</em> tag'))


My first ipython HTML italics tag
Debug 1: What happens if the end tag is not written

In [4]:
display(HTML('My first ipython HTML <em>italics tag'))


My first ipython HTML italics tag

All data after the starting tag is incuded in the function of the starting tag. Simply all data fter the starting tag is itlicized.

Attributes

Syntax:

<TAG ATTR="value"> Contents </TAG>

Example 1:

Anchor tag exmaple,

In [ ]: