Docsity

HTML Lecture: Understanding Hyper Text Markup Language, Study notes of Mechanical Engineering

Toggle sidebar
bg1
Lecture 7
1
Lecture 7 – HTML
HTML – What is it?
• Hyper Text Markup Language
• Interpreted rather than compiled
• Browsers (e.g. Netscape, Explorer) used to interpret HTML code
• Stand-alone application e.g. documentation
• Cross-platform i.e. portable – just ASCII editor e.g. Notepad
• Evolving e.g. XML, JavaScript, VBScript, CGI, Databases
• Standard language features: links, some text formatting, images
• Extension exist but may not be portable
• Disadvantages: page breaks (not meant to be printed), static, mathematics
Example: Hello World
1. Open Notepad and compose the following HTML code
2. Save As – File Name: myFirstWebPage.html and Save As Type: all files
3. Netscape/Explorer: File – Open Page and browse to directory where .html file was saved
Explore
• Bookmark. Change title and bookmark again
• Different colors
• Different fonts:
<html>
<head>
<title>My First Webpage</title>
</head>
<body bgcolor=white text=black>
<body>
Hello World!
</body>
</html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body bgcolor=black text=white>
<body>
Hello World!
<p>
<!-- this is a comment and won't be displayed in browser -->
<!-- <p> means paragraph break -->
<center>
Hello World centered
</center>
<p>
<i>Hello world italized</i>
<p>
pf3
pf4

Partial preview of the text

Download HTML Lecture: Understanding Hyper Text Markup Language and more Study notes Mechanical Engineering in PDF only on Docsity!

Lecture 7 – HTML

HTML – What is it?

• Hyper Text Markup Language

• Interpreted rather than compiled

• Browsers (e.g. Netscape, Explorer) used to interpret HTML code

• Stand-alone application e.g. documentation

• Cross-platform i.e. portable – just ASCII editor e.g. Notepad

• Evolving e.g. XML, JavaScript, VBScript, CGI, Databases

• Standard language features: links, some text formatting, images

• Extension exist but may not be portable

• Disadvantages: page breaks (not meant to be printed), static, mathematics

Example: Hello World

1. Open Notepad and compose the following HTML code

2. Save As – File Name: myFirstWebPage.html and Save As Type: all files

3. Netscape/Explorer: File – Open Page and browse to directory where .html file was saved

Explore

• Bookmark. Change title and bookmark again

• Different colors

• Different fonts:

My First Webpage

Hello World!

My First Webpage

Hello World!

Hello World centered

Hello world italized

## Headings, lists and hyperlinks

The language provides markups for generating headings. This is appropriate for creating

documentation e.g. Section, sub-section headings.

Example: Headings

Hello world bold

Hello world underlined

Size 1 Arial font

Size 10 Arial font

Headings and Hyperlinks

Introduction Procedure Conclusion

Introduction HTML is a hypertext markup language popularized by the web Motivation The motivation to use HTML is that anyone on the net can view it History Began as military experiment in the 1960s

Procedure Generate HTML code in ASCII
Save it as filename.html
Open in a browser

Conclusion HTML is very easy to learn and one can create webpages quickly

## Tables – can be easily added as follows

Example: Tables

HTML resources:

  • http://www.htmlgoodies.com
  • World Wide Web Consortium: http://www.w3.org
  • IRT web page: http://www.drexel.edu/irt/websupport.html

Next Steps:

  • Upload HTML file to a web server e.g. Drexel’s dunx
  • Use WS_FTP type program, upload in ASCII to your public_html folder

Tables

This is a 3 column table and has a caption

TABLE 1: ISA BUS ADC PARTS PART DESCRIPTIONVENDORPART PC BUS PROTOTYPING CARDJAMECO21531 MAXIM MAX158 ADC CHIPDIGIKEYMAX158BCPI-ND