Web System
Web System
Hypertext
- a method for instant information
cross-referencing that support
communications on the web
- a way of organizing text that allows ● The <!DOCTYPE html> declaration
the reader to easily navigate and defines that this document is an
access related information HTML5 document
● The <html> element is the root
Markup Language element of an HTML page
- A computer language that is used to ● The <head> element contains meta
add structure and formatting to a text information about the HTML page
document ● The <title> element specifies a title
for the HTML page (which is shown
Web Design in the browser's title bar or in the
- refers to the process of creating and page's tab)
styling the appearance of a website ● The <body> element defines the
document's body, and is a container
HTML for all the visible contents, such as
- Hypertext Markup Language is headings, paragraphs, images,
used to structure and organize the hyperlinks, tables, lists, etc.
content on a web page ● The <h1> element defines a large
heading
CSS ● The <p> element defines a
- Cascading Style Sheets is a paragraph.
stylesheet language that is used to
style HTML documents. It specifies HTML Elements
how the elements of HTML look - Defined by a start tag, some content,
including their layout, colors, and and an end tag
fonts Empty Elements
- Do not have and end tag
JS (Example:<br>)
- JavaScript is a programming HTML Attributes
language that makes websites - Provide additional information about
interactive and dynamic HTML elements and specified in the
start tag
href Attribute <!DOCTYPE>
- The tag defines <a> hyperlink. The - An instruction to the web browser
href attribute specifies the URL of about what version of HTML the
the page the link goes to page is written in.
src Attribute <head>
- The <img> tag is used to embed an - Elements inside <head> can include
image in an HTML page. The src scripts, instructs the browser where
attribute specifies the path to the to find style sheets, provide meta
image to be displayed information, and more.
Absolute URL <title>
- Links to an external image that is - This element defines the title of the
hosted on another website. document
Relative URL HTML Headings
- Links to an image that is hosted - Defined with the <h1> to <h6> tags.
within the website. Here, the URL - <h1> is the largest
does not include the domain name. - <h6> is the smallest
width and height Attributes HTML Paragraphs
- The tag should also contain the - Defined with the <p> tag
width and height attributes, which Horizontal Line Tag
specify the width and height of the - Creates a horizontal line in an HTML
image (in pixels) page. The hr element can be used to
alt Attribute separate content
- The required alt attribute for the tag HTML Links
specifies an alternate text for an - A hyperlink (or link) is a word, group
image, if the image for some reason of words, or image that you can click
cannot be displayed. on to jump to a new document or a
HTML Page Structure new section within the current
document. Links are specified in
HTML using the <a> tag.
HTML Images
- Images are defined with the <img>
tag. The <img> tag is empty, which
means that it contains attributes
only, and has no closing tag. To
display an image on a page, you
need to use the src attribute, that
stands for "source". The value of the
src attribute is the URL of the image
HTML Basics
you want to display.
All HTML documents must start with a
HTML Comments
document type declaration: <!DOCTYPE
- Can be inserted into the HTML code
html>. The HTML document itself begins
to make it more readable and
with <html> and ends with </html>. The
understandable. <!-- This is a
visible part of the HTML document is
comment - ->
between <body> and </body>.
HTML Favicon - <p> and <div> commonly
- Small image displayed next to the used block elements
page title in the browser tab - <p> defines paragraph
HTML Tables - <div> defines a division or a
- Allow web developers to arrange section
data into rows and columns. B. Inline Elements
• Each table cell is defined by a<td> - An inline element does not
and a </td> tag. start on a new line. It only
• td stands for table data. takes up as much width as
• Everything between <td> and necessary. Note that an inline
</td> are the content of the table element cannot contain a
cell. block-level element
• A table cell can contain all sorts of
HTML elements: text, images, lists,
links, other tables, etc.
HTML Lists
- Allow web developers to group a set
The <div> Element
of related items in lists
- Often used as a container
Unordered List
- No required attributes but style,
- Starts with <ul> tag
class, and id are common
- Each item starts with the <li> tag.
- With CSS can be used to style
- The list items will be marked with
blocks of content
bullets by default
The <span> Element
Ordered List
- Inline container used to mark up a
- Starts with <ol> tag
part of a text, or a part of a
- Each item starts with the <li> tag.
document.
- The list items will be marked with
- No required attributes but style,
numbers by default
class, and id are common
Description List
- With CSS can be used to style parts
- A description list is a list of terms,
of the text
with a description of each term. The
HTML Classes
<dl> tag defines the description list,
- The class attribute is often used to
the <dt> tag defines the term
point to a class name in a style
(name), and the <dd> tag describes
sheet. It can also be used by a JS to
each term:
access and manipulate elements
HTML Block and Inline
- Can be used on any HTML element,
A. Block-Level Element
and the class name is case sensitive
- Always starts on a new line,
HTML ID
and the browsers
- The id attribute specifies a unique id
automatically add some
for an HTML element.
space before and after the
- Must be unique within the HTML
element. It always takes up
document
the full width available.
- Used to point to a specific style
declaration in a style sheet. It is also
used by JS to access and - Defines the field where the
manipulate the element with the user can enter data
specified id. - type- determines the type of
- Case sensitive input
- Must contain at least one character, - name - specifies the name of
cannot start with a number, and the input
must not contain white spaces b. <label>
- The syntax for id is: write a hash - Used to create a caption for
character (#), followed by an id a form element
name c. <button>
HTML Head - An interactive element that is
- Contains information about the activated by a user. It
HTML document performs a programmable
<title> action, such as submitting a
- Used to define the title of the form or opening a dialog
document which is displayed at the when clicked
browser title bar. - submit - submits the form
<meta> - reset - resets the balue of all
- Used to add metadata(information form elements
about data) about the document - button - JS is used to add
<link> functionality to such buttons
- Used to specify the relation between d. <select>, <option>, <optgroup>
the document and an external - <select> - used to create a
resource menu of options
<style> - Each of the options is
- Used to add CSS rules represented by the <option>
<script> tag
- Used to add JavaScript to the - We can also group option
document. We can also link HTML elements inside <optgroup>
documents with external JS files to create group of options
using the src attribute e. <textarea>
<base> - Used to define a
- Used to define the base URL for the customizable multiline text
document input field
- Refers to the common part of the f. <fieldset> and <legend>
URL across all the links in the - Fieldset is used to group
webpage similar form elements
HTML Form - Legend is used to give a
- A section of the document that caption to a fieldset
collects input from the user g. <datalist>
- <form> element to creat forms - Defines a list of pre-defined
Form Elements options for an input element
a. <input> - Used to provide
autocomplete options
h. <output> Various Types in HTML5
- Container element used to ● text - create a single-line text field
store the output of a ● button - creates button with no
calculation performed using default functionality
JS ● checkbox - creates a checkbox
- The for attribute of the output ● color - creates a color picker
tag accepts a ● date - creates a date picker
space-separated value of all ● datetime-local - creates a date and
the inputs time picker
Form Attributes ● email - creates an input field that
● action allows the user to input a valid email
- Define the action to be ● file - creates an input field that lets
performed when the form is the user upload a file or multiple files
submitted ● hidden - creates an invisible input
● method field
- Defines the HTTP method to ● image - creates a button using an
be used when the form is image
submitted ● month - creates an input field that
- post - used to send data to a lets the user enter month and year
server ● password - creates an input field
- get - used to request data that lets the user enter information
from a specified resource securely
- dialog - used when the form ● radio - creates a radio button. Let
is inside a dialog element. users pick one option out of a group
Using this method closes the ● range - creates a range picker
dialog and sends a ● search - allows user to enter their
form-submit event search queries
● Target ● submit - allows user to submit form
- Specifies where to display to the server
the response received after ● tel - defines the field to enter a
the form is submitted telephone number
● enctype ● time - creates an input field that
- Specifies how the form data accepts time value
should be encoded for the ● url - lets the user enter and edit a
request URL
● name ● week - lets the user pick a week and
- Specifies the name of the a year from a calendar
form
● novalidate Form Actions
- All validations in the form - Specifies how the data is sent to the
elements are skipped server
HTML Inputs
<input> tag defines the field where the user
can enter data
● Authorizing tools - software or tool
that people use to develop web
content
HTML Class
- An attribute that can be added to an
HTML element to give it a specific
class name
HTML Semantics
Multiple Classes in HTML
- Describe its meaning to both
- An element can have more than one
browser and developer
class
Semantic Elements
- Clearly define content
HTML Elements with Similar Class
Non-semantic Elements
Names
- Tells nothing about its content
- We can also provide the same class
name on multiple HTML elements.
HTML Semantic Elements
- It makes easier to apply the same
style to multiple elements
CSS Styles
Text Color
- Specify the color of the text
- Can be color names, hexadecimal
values, or RGB values Google Fonts
- (color: name/hex/rgb;) - A popular web font service that
provides a wide range of free and
Text Alignment open-source fonts
- Specify the horizontal alignment of Steps to use Google Fonts
the text within its container 1. Visit the Google Fonts website
- (text-align: 2. Browse the available fonts and
left/right/center/justify;) select the ones you want to use.
3. Click on the "+ Select this style"
Text Decoration button for each font style you want to
- Used to add decorative styling to include.
text 4. Once you've made your selections,
- (text-decoration: click on the "Family Selected" bar at
underline/overline/line-through;) the bottom of the screen.
5. In the "Embed" tab, you will find the
CSS Fonts and Web Typography HTML and CSS code snippets to
include in your website
Web fonts - refer to custom fonts that are
not commonly found on all devices or Fallback- used when the current font is not
operating systems available
CSS Colors
- CSS supports 140+ color names,
HEX values, RGB values, RGBA
values, HSL values, HSLA values,
and opacity.
RGBA Colors
- rgba( red, green, blue, alpha)
- Alpha- specifies the opacity, should
be between 0.0(fully transparent)
and 1.0(fully opaque)
HSL Colors
- Hue, Saturation, and Ligthness
- Hue is a degree on the color wheel(
from 0 to 360)
Relative Length - specify a length relative
to another length property