Top Banner
1 Web Engineering Lecture 1
23
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

Introduction to computing

1Web EngineeringLecture 1HTML

Title of page

This is my first homepage.

Head ElementThe HEAD section of an HTML document is like a front matter of a book.

HEAD tag always keep behind the HTML tag.

Things are going in the HEAD section, consider to be META data content model these includes TITLE, META, LINK, STYLE, SCRIPT and BASE elements.

3Example

Title of page

This is my first homepage. This text is bold

4Title ElementThe TITLE element is used for setting title of a document.

Title element is required in HTML even its empty. There may be only one TITLE element in a web page.

Example: Title of page

5Link ElementLINK element is used to have relationship with other documents. LINK tag is used to add external style sheet. Link is also used to place a small image at title portion of the web page.

Example: Title of page

6Style ElementSTYLE element is used to embed style sheet on a same web page.Example: Title of page p { line-height: 1.2;}p.first:first-line { font-variant: small-caps;} 7Meta TagMETA tag is used to describe various aspects of your HTML page. META means its data about data. It helps search engine to categorize your page.

The data that can not be display on web page, but can be used by various process. Like web server deliver it or user web browsers.8Example Title of page

It describes the character being used by this document. So browser can display properly.

Second META tag will wait for 5 seconds and then redirect to this course web page. 9Search Engine OptimizationThe concept of search engine optimization is interesting widely misunderstood subject.

There are people who tell you that they can increase search ranking of your page. So your page show higher in search engine listing. But most part this is not true.

Any technique that can effectively submit search engine today will not work tomorrow because the engineers at search engine company update their algorithms to defeat those technique.1010Example

Keywords meta tag is originally designed to help the search engine by allowing content authors to categorize their contents.

But this feature is abused so badly, that search engine have stopped using it. So its largely ignored today by major search engines.

11Example

Bills Amazing New Page!- * - * - * -Amazing, New, Bill, Page, Web site,C++ Tutorials, blah blah blah

So, SEO focus start abusing the title tag by putting the same garbage in the title tag. Now search engine algorithms of course ignore this too.12The goal of search engine is to provide useful results to users. They want to categorize your page correctly and want to rank it according to its actual popularity.

The HTML5 have good set of tags for making it easier for search engines to read and understand your page.13Line Break TagNormally your browser will decide, where to break the line and paragraphs. You may force a line to break using the
tag.

Example:The attackers set about acquiring the control over the computers to be used in the attack.
By scanning using Sscan SW, a large numbers of computers attached to the Internet. Once a computer with a weak security scheme is identified, the attackers try a break-in.

14Font ElementSometimes you tell browser to show text something in a different way. Can of course use CSS for this often as best choice.

HTML does however provide few simple elements, case where you need something just simple. 15 Bold Italic Underline This is a subscript This is a superscript This is a small Strikeout Delete 16Highlighting TextHTML provides new inline element called MARK to highlighting text.

Example:The attackers set about acquiring the control over the computers to be used in the attack. By scanning using Sscan SW, a large numbers of computers attached to the Internet. Once a computer with a weak security scheme is identified, the attackers try a break-in.

17EXAMPLEExample:The attackers set about acquiring the control over the computers to be used in the attack. By scanning using Sscan SW, a large numbers of computers attached to the Internet. Once a computer with a weak security scheme is identified, the attackers try a break-in.

18Heading TagsHeading elements are available at six level. Heading is block level element.

Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6 19Quotations and Quote MarksExample:The attackers set about acquiring the control over the computers to be used in the attack. "By scanning using 'Sscan' SW", a large numbers of computers attached to the Internet. Once a computer with a weak security scheme is identified, the attackers try a break-in.20PRE-FORMATTED TEXTPRE tag is used for pre-formatting text and it is useful to display text in its natural format.Example:This text is preformattedand should be displayed in a particular way and shape without anyreformatting bythe browser.21ExampleExample:int main (int argc, char ** argv ) {printf("Hello World!\n");return 0;}

22ExampleExample: HTML preformatted Text HTML Preformatted Text

23