1 / 11

Technologies for web publishing

Technologies for web publishing. Ing. Vaclav Freylich. Lecture 1. Brief content. Basic XHTML course HTML syntax elements formatting (using CSS) validation CSS formatting HTML elements positioning. Literature and sources. http://www.w3schools.com http://www.w3schools.com/css

dasha
Download Presentation

Technologies for web publishing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Technologies for web publishing Ing. Vaclav Freylich Lecture 1

  2. Brief content • Basic XHTML course • HTML syntax • elements • formatting (using CSS) • validation • CSS • formatting HTML elements • positioning TNPW1 - přednáška č. 1

  3. Literature and sources • http://www.w3schools.com • http://www.w3schools.com/css • http://www.htmlcodetutorial.com TNPW1 - přednáška č. 1

  4. Requirements • Project • personal website • valid XHTML 1.0 • at least 10 *.html files • using external CSS • Examination • presentation of the project • discussion about the project and the source code TNPW1 - přednáška č. 1

  5. HTML the tag and the element • HTML page consists of tags (elements) Pair tag: <body></body> non-pair tag (HTML): <br> non-pair tag (XHTML):<br /> • Tag with some content = element • Element can have attributes <ahref="product.htm">Link to the next page</a> TNPW1 - přednáška č. 1

  6. HTML page – basic structure <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="author" content="John Smith"> <title>My first page</title> </head> <body> <p>Hello world!</p> </body> </html> TNPW1 - přednáška č. 1

  7. XHTML – just a small difference <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="author" content="John Smith" /> <title>My first page</title> </head> <body> <p>Hello world!</p> </body> </html> TNPW1 - přednáška č. 1

  8. HTML - Plain text Paragraph <p class="basic_text">Some text here</p> The length of the paragraph text is not limited. We can set the text format in external CSS, inline CSS or using special HTML attributes Formatting by attributes is ordinarily not valid in XHTML 1.0 Strict! TNPW1 - přednáška č. 1

  9. HTML - headline Headline <h1>Main headline of the page</h1> There are six headline levels existing (h1 – h6). It is not suitable to jump across some levels. We should respect the semantic meaning of the page content and use the headlines according to this content. TNPW1 - přednáška č. 1

  10. HTML – phrase elements • Phrase elements Determine the semantic meaning of the text. Usually they are implicitly formatted by the browser. Frequently used <em></em> emphasis <strong></strong> highlighted text Other phrase elements <code></code> source code <samp></samp> output of some script or program <dfn></dfn> definition TNPW1 - přednáška č. 1

  11. HTML - quotation Element cite <cite>Shakespeare</cite>. Name of the author, quoted source, .. Elements <q> and <blockquote> <q>To be or not to be?</q> Used for short quotations. Browser should add the quotes to the text marked with this element. <blocquote><p>To be or not to be?</p></blockquote> Block element for longer quotations. It can contain only the block elements. TNPW1 - přednáška č. 1

More Related