Docsity

WEB Programming lectures, Lecture notes of Web Programming and Technologies

Partial preview of the text

Download WEB Programming lectures and more Lecture notes Web Programming and Technologies in PDF only on Docsity!

WEB ENGINEERING

Engr. Muhammad Umer Haroon

  • Lec

JavaScript makes HTML

pages more dynamic and

interactive.

The HTML

Examples of JavaSript

Changing HTML content

Changing HTML attributes

The HTML Tag

The tag is used to provide an alternate

content for users that have disabled scripts in their

browser or have a browser that doesn't support client-

side scripts:

HTML File Paths

  • Why and where do we use file paths?

Absolute File Paths

  • Example?

Relative File Paths

  • Example?

It is a best practice to use relative file paths (if

possible).

HTML Head

The HTML Element

The <title> element defines the title of the

document, and is required in all HTML/XHTML

documents.

The <title> element:

defines a title in the browser tab

provides a title for the page when it is added to

favorites

displays a title for the page in search engine

results

SYNTAX?

The HTML

The HTML Element

The element is used to specify which

character set is used, page description, keywords,

author, and other metadata.

Metadata is used by browsers (how to display

content), by search engines (keywords), and other

web services.

The HTML Element Cont’d

  • Define the character set used: -

  • Define a description of your web page: -

  • Define keywords for search engines: -

  • Define the author of a page: -

  • Refresh document every 30 seconds: -

Example of tags: