• Keine Ergebnisse gefunden

Html → Darstellung von Inhalten auf einer Internetseite

N/A
N/A
Protected

Academic year: 2022

Aktie "Html → Darstellung von Inhalten auf einer Internetseite"

Copied!
16
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Übersicht

(2)

Überblick

Html → Darstellung von Inhalten auf einer Internetseite

CSS → Gestaltung der Seite (Aufbau, Schrifttypen, Farben, etc.)

Javascript → Zur Steuerung der

Benutzerinteraktion

(3)

Aufbau einer HTML-Seite

Head → Metainformationen (Author, Inhalt der Seite, Link auf CSS-Datei,

Umlautkonvertierung, etc.)

Body → Eigentlicher Inhalt der Seite

(Überschriften, Text, Bilder, Aufzählungen,

Eingabefelder, Buttons, etc.)

(4)

Befehle in Html

Befehle werden zur Laufzeit vom Browser interpretiert und bestehen aus sog. TAGs

<..> ...</..>.

Befehle haben Attribute und Attributwerte.

Bsp.:

<img src="BILD.jpg" alt="Text unter dem

Bild" width="104" height="142">

(5)

Html Befehle

<h1>1. Überschrift</h1>

<h2>1.1 Überschrift</h2>

<h3>1.1.1 Überschrift</h3>

<p>Absätze</p>

<a href="www.bko-opladen.de">Ich bin einer Verknüpfung</a>

<img src="BILD.jpg" alt="Text unter dem Bild" width="104"

height="142">

<br> Zeilenumbruch

<hr> Horizontale Linie

(6)

Aufzählungen in Html

<p>An ordered list: (durchnummeriert) </p>

<ol>

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ol>

<p>An unordered list: (Spiegelpunkte)</p>

<ul>

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ul>

(7)

Html Zeichenformtierung

<b> </b>, <i> </i>, <strong> </strong>, etc

<p>This is <sup>hochgestellt</sup> text.</p>

<h2>HTML <mark>markiert</mark>

Formatting</h2>

Details:

http://www.w3schools.com/html/html_formatting.asp

(8)

Farben in CSS/Html

color: #A300A3 oder Namen aqua

im Hexadezimalsystem

je höher umso intensiver

Details:

http://www.w3schools.com/html/html_colorna

mes.asp

(9)

CSS

in header Verweis auf CSS-Datei:

<link href=“myStyle.css“ rel=“stylesheet“ />

---> relative / absolute Adressierung !!!!

oder <head> ….

<style>

#header { …. }

</style> </head>

(10)

CSS-Datei (1)

body {

background-color: #d0e4fe;

} h1 {

color: orange;

text-align: center;

} p {

font-family: "Times New Roman";

font-size: 20px;

}

→ Design einzelner Html-Elemente wird festgelegt.

(11)

CSS – Selektieren nach IDs

CSS: #kopf {background: yellow;

height: …...

font-size: ….

…...} ;

der ID-Selektor beginnt mit einem #

Html:

<p>My name is Donald.</p>

<p ID="kopf">Ducksburg.</p> → wie Absatzformatierung oder

<div ID="kopf"> …...</div> → ganzer Bereich wird gestaltet

(12)

CSS-Datei (2) - Klassen

CSS: .hometown {background: yellow;} ; der Klassenselektor beginnt mit einem Punkt Html:

<p>My name is Donald.</p>

<p class="hometown">I live in Ducksburg.</p>

oder

<h1 class="hometown">Ducksberg</h1>

→ vergleichbar mit Absatzformatierung

(13)

<!DOCTYPE html>

<html>

<head>

<style>

#header {

background-color:black;

color:white;

text-align:center;

adding:5px;}

#nav {

line-height:30px;

background-color:#eeeeee;

height:300px;

width:100px;

float:left;

padding:5px; }

#section {

width:350px;

float:left;

padding:10px; }

#footer {

http://www.w3schools.com/html/tryit.asp?filename=tryhtml_layout_divs

Beispiel: Aufbau einer Internetseite

(14)

<body>

<div id="header">

<h1>City Gallery</h1>

</div>

<div id="nav">

London<br>

Paris<br>

Tokyo<br>

</div>

<div id="section">

<h2>London</h2>

<p>

London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.

</p>

<p>

Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.

</p>

</div>

<div id="footer">

Copyright © W3Schools.com

</div>

</body>

</html>

(15)

Quellen

http://www.w3schools.com/

http:// www.html-seminar.de

http:// de.selfhtml.org/html/index.htm

(16)

Absolute & Relative URL

Referenzen

ÄHNLICHE DOKUMENTE

Using a high-resolution coupled biological-physical model of the North and equatorial Atlantic, it is demonstrated for standard central-difference advection (if a too coarse

“Big 10” food and beverage companies ― Associated British Foods (ABF), Coca-Cola, Danone, General Mills, Kellogg, Mars, Mondelēz International, Nestlé, PepsiCo and Unilever ―

Although we did not replicate our lines, we had replicate full-sib families within the lines, a situation that more real- istically mimics natural selection in a population of

Initially, the museum acquired photographs for its research from other museums and archives, but it soon started to work actively to document university life, events, buildings and

The system processor board, along with the interface boards, the Xebec controller, the disk drives, power supply and fan, are contained in the Main System

In order to analyze whether this surprise measure has an impact on spreads, we use regression analysis where as explanatory variables we include also raw traded volume, traded

In some bus specifications, the protocol is treated on an abstract level. · While this does allow a protocol to be defined in an application independent

These functions return the integer constant ,EOF at end .... Fgetc should be used instead.. Getgrgid searches from the beginning of the file until a numerical