Webdev Midterm Reviewer
Webdev Midterm Reviewer
MODULE 2
Paired Tags - These tags come in pairs. That is they have both opening(< >) and closing(</ >) tags.
<html> tag - the container for all other HTML elements (except for the <!DOCTYPE> tag).
<title> tag - defines the title of the document. The title must be text-only, and it is shown in the
browser's title bar or in the page's tab.
<head> element – A container for metadata (data about data) and is placed between the <html>
tag and the <body> tag.
<body> element - contains all the contents of an HTML document, such as headings, paragraphs,
images, hyperlinks, tables, lists, etc.
Adding text to our HTML page is simple using an element opened with the tag <p> which creates a
new paragraph.
There are a few different types of lists you can use, depending on the content you want to display.
• Un-ordered Lists
• a simple HTML list that you can use when the order of the items you’re listing isn’t
important, and rearranging the order wouldn’t cause confusion or change the
hierarchy of the list.
<ul>
<li>Item A</li>
<li>Item B</li>
<li>Item C</li>
</ul>
• Ordered Lists
• Ordered lists are used when the order of the items is important, for example, a list
of instructions that must be followed in order.
<ol>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ol>
• Nested Lists
• a little more complex, because it’s essentially a “list within a list” with a variety of
different indentations and bullet point types used to denote points and sub-points.
</ul>
HTML links - hyperlinks which allow the user to click and navigate to another page or document
<a href="https://tsu.edu.ph/">
</a>
<h2>Absolute URLs</h2>
<p><a href="https://tsu.edu.ph/">TSU</a></p>
<h2>Relative URLs</h2>
Use mailto - inside the href attribute to create a link that opens the user's email program
The <img> tag contains attributes only and does not have a closing tag <img src=“myprofile.jpg"
alt="Happy Student" width="450" height="200">
MODULE 4
table - an arrangement of data in rows and columns, or possibly in a more complex structure.
HTML table - defined with the “table” tag. Each table row is defined with the “tr” tag.
table header - defined with the “th” tag. By default, table headings are bold and centered.
border - set using the CSS border property. If you do not specify a border for the table, it will be
For borders to collapse into one border, add the CSS border-collapse property.
Cell padding - specifies the space between the cell content and its borders.
To make a cell span more than one column, we must use the colspan attribute.
To make a cell span more than one row, we must use the rowspan attribute:
HTML Forms - are required, when you want to collect some data from the site visitor.
• A form will take input from the site visitor and then will post it to a back-end application
such as CGI, ASP Script or PHP script etc.
</form>
o Single-line text input controls - This control is used for items that require only one
line of user input, such as search boxes or names.
o Password input controls - This is also a single-line text input but it masks the
character as soon as a user enters it.
o Multi-line text input controls - This is used when the user is required to give details
that may be longer than a single sentence.
o Checkboxes Controls - used when more than one option is required to be selected.
o Radio Box Controls - used when out of many options, just one option is required to be
selected.
o Select Box Controls - also called drop down box which provides option to list down various
options in the form of drop down list,
o File Select boxes - If you want to allow a user to upload a file to your web site, you will
need to use a file upload box, also known as a file select box.
o Button Controls - There are various ways in HTML to create clickable buttons. You can also
create a clickable button using <input>tag by setting its type attribute to button.
o Hidden Controls - used to hide data inside the page which later on can be pushed to the
server
MODULE 5
HTML supports <audio> tag - used to embed sound content in an HTML or XHTML document as
follows.
Transitions are a lot of fun, so let’s give them a whirl. When applying a transition, there are a few
decisions to make, each of which is set with a CSS property:
• Which CSS property to change (transition-property)
Transition-property - identifies the CSS property that we want to transition smoothly. In our
example, it’s the background-color.
Transition-duration - sets the amount of time it will take for the animation to complete in seconds
(s) or milliseconds (ms).
ease - Starts slowly, accelerates quickly, then slows down at the end. This is the default
value and works just fine for most short transitions.
linear - Speed stays consistent from the transition’s beginning to end.
ease-in - Starts slowly, then speeds up.
ease-out - Starts out fast, then slows down.
ease-in-out - Starts slowly, speeds up, then slows down again at the very end. It is
similar to ease, but with less pronounced acceleration in the middle.
cubic-bezier(#,#,#,#) - This is a function for defining a Bezier curve that describes the
transition acceleration. It’s super math-y and I can’t explain it all here.
step-start - This changes states in one step, at the beginning of the duration time (the
same as steps(1,start)).
step-end - This changes states in one step, at the end of the duration time (the same as
steps(1,end))
Transition-delay property - as you might guess, delays the start of the animation by a specified
amount of time.
Animation - lets an element gradually change from one style to another.
@keyframes rule - the animation will gradually change from the current style to the new style at
certain times
Extensible Markup Language (XML) - a markup language that defines a set of rules for encoding
documents in a format that is both human-readable and machine-readable.
MODULE 7
It uses the @media rule to include a block of CSS properties only if a certain condition is true.
A responsive grid-view often has 12 columns, and has a total width of 100%, and will shrink and
expand as you resize the browser window.
If you want to restrict a responsive image to If the width property is set to 100%, the
a maximum size, use the max-width video player will be responsive and scale up
property, with a pixel value of your choice: and down:
.responsive { video {
height: auto; }