Lecture 14
Lecture 14
Fall 2023
XML
Definition
XML. Is defined as a declarative interpreted special-purpose programming
language designed to store and transport data (you can also, superfecially,
call it a markup language, just like you might refer to HTML).
Definition
XML. Is defined as a declarative interpreted special-purpose programming
language designed to store and transport data (you can also, superfecially,
call it a markup language, just like you might refer to HTML).
Definition
XML. Is defined as a declarative interpreted special-purpose programming
language designed to store and transport data (you can also, superfecially,
call it a markup language, just like you might refer to HTML).
CSS code can be embedded into HTML code following three different ways:
1 Inline. This approach consists of additing CSS properties to HTML
tags to customize the background, color, position ... of the item (head-
ings, paragraphs, sentence, etc) specified between the HTML tag.
2 Internal. This approach consists of defining CSS properties within
the head section of an HTML document. These properties are defined
within <style>...</style> tags.
3 External. This approach consists of defining CSS properties within an
external file with extension *.css. The file is then included into the
HTML file using the <link> tag.
Selectors are called selectros because they select the concerned HTML
element and apply the properties on it. They can select by:
Name: The selector will use the name of the HTML tag, e.g., if you want
to apply special styles to a paragraph, then in the CSS file there will be a
selector named with letter “p” (because of the HTML p-tag):
In the HTML file <p>ABCD</p> and in the CSS file p{...}
ID: The HTML tag will have an ID, which is the one of the selector, e.g., if
you wanted to apply special styles to a specific paragraph ABCD, then you
would first give an ID to the HTML paragragh tags of that paragraph, and
create a selector with that ID as a name preceeded by a ♯ sign:
In the HTML file <p id="para">ABCD</p> and in the CSS file ♯para{...}
Class: The HTML tag will have class with a value. The class name will be
the name of the selector preceeded by a period, e.g., if you wanted to apply
special styles to a specific paragraph XYZ, then you would first give a class
ID to the HTML paragragh opening tag of that paragraph, and create a
class selector with the name of the class ID preceeded by a period:
In the HTML file <p class="para">XYZ</p> & in the CSS file .para{...}
You may want to apply different styling properties for the same tag. You
could then add identityes to each tag that you want to customize, and define
those in the CSS file using ♯ sign:
You can change the font of your text to whatever you want:
You can customize the background of your HTML elements and use images:
You can customize the background of your HTML elements and use images:
You can customize the background of your HTML elements and use images:
You can customize the background of your HTML elements and use images:
You can customize the background of your HTML elements and use images:
Float property are used to position elements with respect to other elements.
You could use this for example to wrap an image with text:
Float property are used to position elements with respect to other elements.
You could use this for example to wrap an image with text:
Float property are used to position elements with respect to other elements.
You could use this for example to wrap an image with text:
Emails
Emails
You may have sent thousands of emails in your life, but did you send them
correctly?
Emails
Emails
You may have sent thousands of emails in your life, but did you send them
correctly?
End.