1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Published byModified over 5 years ago
Presentation on theme: "1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some."— Presentation transcript:
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some like,, are single. Words in tags can be in upper or lowercase.
2 HTML Document Parts Every HTML document needs at the start. at the end. They usually have a header and a body. They have …header … They have …body…
3 HTML Comments Comments look like Comments make HTML code easier to read. They explain what the parts do. They break up the code into smaller pieces. You should use comments in complex HTML documents.
4 HTML Whitespace Whitespace is essentially ignored by HTML interpreters like web browsers Having many spaces between words, or tabs, or many newlines do not affect the appearance of the text. The symbol makes a space The tag makes a newline.
5 HTML Headers -- enclose header info. -- Text here sent to top of browser. -- These single tags go in the header. –Eg: Frame information.
6 HTML Body The main data goes into the body. …Body of Page… Text typed here will be displayed in a big chunk without formatting by whitespace such as tabs or newlines or extra spaces. …text… preserves whitespace.
7 Body formatting …body of the document… –The numbers are 6 hexadecimal digits –RRGGBB where each letter is 0-9 or A-F –Picture is some.gif or.jpg or some other image. It gets tiled in the background.
8 HTML Links (Anchor tag) …text or image… URL can be –A webpage –A file to download –An email address to mail to. The text or image is the thing you see on the actual page that takes you to the link.
9 HTML Text Formatting Some features include – -- makes a line break. – -- makes a horizontal line. – -- makes a space. –These can be used multiple times. …text… -- paragraph format. …data… Centers the objects inside the tags.
10 HTML Fonts 1 …text… -- makes text bold. …text… -- makes text italicized. …text… -- emphasize text. –Not always well-defined. …text… through …text… -- Different sizes of text. h1 is biggest.
11 HTML Fonts 2 …text… -- let you specify more detailed information. -- pick size. –Number can be a difference like +2 or –3. -- pick color. –Color is a 6-digit hexadecimal number. –RRGGBB, each is 0-9 or A-F.
12 HTML Lists Lists -- tags to begin and end the lists. –Ordered lists … –Unordered lists … Each element in the list is a list item. The tag is used at the start of an item to put it into the list. The closing is optional.
13 HTML Tables … -- tags that enclose a table. …row data… -- enclose a single row. (Table Row) …data… -- enclose a single piece of data. (Table Data) … makes a border.
14 HTML Tables 2 A or tag can be aligned. –Eg., … tags for headers (first row). –They appear bolder and larger. A tag just contains HTML. It can be text, images, links, etc… rowspan lets elements be bigger.
15 HTML Images –SRC gives the location of the image. –URL can be a local file or a remote file. –Browser knows how to work with standard formats like.jpg,.gif. –ALT=“message” shows a text message.
16 HTML Links Use the … tag. Can link to local pages (files). This lets the page owner split up the data. Each piece of data can be seen separately. The items can be images or files to download.
17 HTML Templates Get the basic structure of a webpage given to you. For example, mytemplate.html. –You will use a file like this in a project. –Every person’s page will be different in detail. –Every person’s page will be similar in structure. –You use the template and add details as needed.
18 HTML Frames Split the page into rows or columns. – … Can do more than 2 rows/columns. The percents don’t have to add up to 100. Things after are shown if your browser can’t see frames.
19 HTML Frames 2 The data goes in the header. Within use a series of – –There are no quotes around the name and the URL. Each tag fills in a frame. They fill in from left to right, top to bottom.
20 CGI Common Gateway Interface Programs that let HTML pages interact with the viewers Programs can send specific information. Programs get information from users. Written in C/C++, Java, Perl, UNIX scripts.
21 Forms …form data… Method attribute: post or get –Get gives a URL where the script can get data. –Post sends the data to the program. Action attribute: The URL of the program that will process the data being sent. –This could also be a mailto so the data just gets sent in an email.
23 More Forms Each input has a “name” attribute telling what type of data is entered there. Each input also has a “value” that gets sent in the form info. makes an area where you can enter a block of data.
24 Java Applets Place and tags in the html document. tags surround the whole applet. tags are used to input parameters (or data) to tell the applet what to do. The.class file must be in the same directory as your html file.