Docsity

Introduction to HTML, Slides of Computer Programming

Partial preview of the text

Download Introduction to HTML and more Slides Computer Programming in PDF only on Docsity!

Introduction

1

More on HTML

  • (^) The features of HTML evolved over time, leading to HTML version 2

in 1995, HTML3 and HTML4 in 1997, and HTML5 in 2014. The

language was extended with advanced formatting in Cascading

Style Sheets (CSS) and with programming capability by JavaScript.

AJAX programming delivered dynamic content to users, which

sparked a new era in Web design, styled Web 2.0. The use of social

media, becoming common-place in the 2010s, allowed users to

compose multimedia content without programming skills, making

the Web ubiquitous in every-day life.

HTML stands for Hyper Text Markup Language.

  • Hypertext is^ text^ displayed on a computer display or other electronic devices with references (hyperlinks) to other text that the reader can immediately access.
  • Hypertext^ documents are interconnected by hyperlinks,^ which are typically activated by a mouse click, keypress set, or screen touch.
  • Apart from text, the term "hypertext" is also sometimes used to^ describe tables, images, and other presentational content formats with integrated hyperlinks.
  • Hypertext^ is one of the key underlying^ concepts^ of the^ World Wide Web , where Web pages are often written in the Hypertext Markup Language (HTML).
  • As implemented on the Web, hypertext enables the^ easy-to-use publication of information over the Internet.

To conclude:

● (^) HTML stands for Hyper Text Markup Language ● (^) HTML is the standard markup language for creating Web pages ● (^) HTML describes the structure of a Web page ● (^) HTML consists of a series of elements ● (^) HTML elements tell the browser how to display the content ● (^) HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc. let’s try it together: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro

What is HTML? HTML Text Displayed in Browser

Page Title

My First Heading

My first paragraph.

My First Heading My first paragraph. Tag Description Defines this document to be HTML and Defines an HTML document and

Provides information about the document and Provides a title for the document and

Describes the visible page content. to Defines header 1 to header 6

and

Defines a paragraph Using this description, a web browser will display a document with a heading and a paragraph. **HTML5** is the fifth and current version of the HTML standard. ****

What is HTML?

▪ HTML Tags
  • (^) HTML tags are keywords (tag names) surrounded by angle brackets : content goes here...
  • (^) HTML tags normally come in pairs like

    and

    .
  • (^) The first tag in a pair is the start tag , the second tag is the end tag.
  • (^) The end tag is written like the start tag, but with a forward slash inserted before the tag name.
  • (^) The start tag is also called the opening tag , and the end tag the closing tag.

feps.edu.eg > Crtl + U to view page source Activity

feps.edu.eg > Crtl + U to view page source Activity HTML!

Introduction

▪ The Declaration
  • (^) The **** declaration must only appear once , at the top of the page , before the **** tag.
  • (^) The **** declaration is not an HTML tag ; it is an instruction to the web browser about what version of HTML the page is written in.
  • (^) The doctype declaration is not case sensitive. All cases are acceptable:
 **Back to our First** **Example** 

Starting with HTML 4 5 6 7 You can use either .htm or .html as file extension. There is no difference, it is up to you. Set the encoding to Unicode Transformation Format- ( UTF-8 ) (which is the preferred encoding for web pages) In computers, encoding is the process of putting a sequence of characters (letters, numbers, punctuation, and certain symbols) into a specialized format for efficient transmission or storage. Ex. UTF-8 encoding will store "hello" like this (binary): 01101000 01100101 01101100 01101100 01101111