Assignment
Assignment
BY PAN THU
LEVEL – 3 BATCH – 11
PAN THU (LEVEL – 3 BATCH – 11)
Contents
P1 - How HTML files access CSS &.................................................................................................. 2
M1 - Assessing different implementation styles of CSS ............................................................... 2
P2 - The features of the box model for CSS .................................................................................... 7
P3 – The fundamentals of a scripting language ............................................................................. 8
M2 - How a scripting language can improve functionality ........................................................ 11
D1 – How web pages using scripts are implemented in different browsers ........................... 13
P4 – Designing a Web Page using Wire Frame Tools ................................................................. 15
M3 - Good practice in the design and implementation of web pages. ..................................... 17
P6 – Testing and Documenting the Webpages ............................................................................. 19
D2 - Evaluating the web pages and discussing improvements ................................................. 31
Reference Websites ........................................................................................................................... 40
1|Page
PAN THU (LEVEL – 3 BATCH – 11)
What is HTML?
HTML (stands for Hypertext Markup Language) is a computer language that
makes up most web pages and online applications. A markup language is a set of
markings that inform web servers of the style and structure of a document,
whereas a hypertext is a text that is used to reference other texts.
Files with the.html or.htm extension are HTML documents. Internet users
can examine the content of an HTML file by reading the file in a web browser and
rendering it.
What is CSS?
CSS is what’s called a Cascading Style Sheet language, and is used to stylize
elements written in a markup language such as HTML. It separates the website's
visual design from its content.
2|Page
PAN THU (LEVEL – 3 BATCH – 11)
HTML and CSS are intimately related to one another. They support each
other because HTML is a markup language (the basis of a website) and CSS
emphasizes style (all of the aesthetics of a website). Although CSS is not entirely
necessary, you probably wouldn't want to visit a site that solely uses HTML
because it would appear quite basic.
Inline Style
A CSS implementation style called inline style is used in the HTML section
of the code. This implementation style is stated in the code's tags, however it can
be used with any type of code. This style must be entered manually by the
developer into the HTML section of the code because it cannot be created using
3|Page
PAN THU (LEVEL – 3 BATCH – 11)
the style builder. If this style is needed elsewhere, it will need to be created again
because it can only be used for that particular part of the web page where it has
been used. When utilized, the inline style takes priority over the external and
embedded CSS implementation styles.
Advantages of Inline styles are –
It can be used in testing of the webpage because it is only functional on the
implemented code and won’t affect the other codes.
It is very easy and fast to add and edit.
Developers can easily find out the errors because it is short.
It reduces webpage loading time because it doesn’t need any extra files.
Disadvantages of Inline styles are –
It is harder to maintain and more work for the developer, especially when it
comes to it being utilized within a big project.
It cannot be used to style pseudo-elements and classed.
It could override certain part of the element which was not meant to be styled
4|Page
PAN THU (LEVEL – 3 BATCH – 11)
Internal Style
Another CSS implementation style, known as internal style, is essentially a
style that is written at the top of the code file. This internal style then styles all of
the tags included in the page where the internal style was included in. Internal
styles specify each and every style for the entire webpage at the head of the page.
Advantages of Internal style –
The styles only have to be declared once.
It can style the hover color unlike the Inline style.
The contents of the tags can be styled without the developer having to add the
style to each HTML element.
Disadvantages of Internal style –
It will take longer to load up compared to inline style.
Using this style will mean that this will have to be written on every page
created.
5|Page
PAN THU (LEVEL – 3 BATCH – 11)
External Style
Similar to internal style sheets, external style sheets function similarly. The
number of CSS styles that need to be replicated is decreased because each
individual style will be applied to any HTML tags that it applies to. The rules,
however, are written in a separate.css file rather than in the header of the
webpages. With this approach, the developer can modify just one file to alter the
entire website. If the website contains multiple webpages, this works by making
use of the CSS style file.
Advantages of External Style –
Using external CSS enables the developer to have full control of the structure
of the page
It can be reused on other HTML files.
Much lesser loading time because of the smaller file size
Disadvantages of External Style –
The download time is much longer, this is because this type of CSS is in a
separate file which means that the browser will have to request access from
the web server to get the CSS file
It won’t appropriate for small projects.
6|Page
PAN THU (LEVEL – 3 BATCH – 11)
Content
The "actual" content of the element, such as text, an image, or a video
player, is located in the content area, which is surrounded by the content edge.
The content width (or content-box width) and the content height (or content-box
height) make up its measurements. It frequently features a background color or
picture.
The width, min-width, max-width, height, and min-height values allow the
content area's size to be specifically specified when the box-sizing property is set
to content-box (the default) and the element is a block element.
Padding
The padding extends the content area into the area enclosed by the padding
area, which is bounded by the padding edge. The padding-box height and width
make up its measurements.
7|Page
PAN THU (LEVEL – 3 BATCH – 11)
Border
The padding area is extended to include the borders of the element by the
border area, which is bounded by the border edge. The border-box height and
width make up its measurements.
The border-width and shorthand border attributes control the border's
thickness. The width, min-width, max-width, height, and min-height properties
can be used to specifically determine the border area's size if the box-sizing
property is set to border-box. The border's outside edge is where the backdrop
(background-color or background-image) of a box extends (i.e. extends
underneath the border in z-ordering). With the background-clip CSS property, this
default behavior can be changed.
Margin
The border area is extended by the margin area, which is bounded by the
margin edge, to include a blank space intended to set the element apart from its
neighbors. The margin-box height and width make up its dimensions.
The margin-top, margin-right, margin-bottom, margin-left, and shorthand
margin attributes all affect how big the margin area is. Since margins are shared
between boxes when margin collapse happens, the margin area is not clearly
defined.
8|Page
PAN THU (LEVEL – 3 BATCH – 11)
commands the computer to find the product they are looking for while the
computer displays the results.
Static websites are only used for displaying fixed information; if it is
changed, the designer must update the code and upload the modified webpage
again to the web server. These types of websites are an old outdated method and
are rarely used in modern design because they take a lot of time to create.
Instead, modern users prefer dynamic websites since they can be easily updated
and usually include scripting languages or databases.
Types of Script
Client-Side Script: Client-side scripting is the process of executing scripts on
the client device, typically inside of a browser, such as JavaScript. Because
JavaScript is widely supported, any type of script may be written in JavaScript
and run on the client side. In order to use other scripting languages, the user's
browser must support them.
JavaScript
Many of the features of a programming language are present in JavaScript,
which is referred to as a scripting language. JavaScript includes a wide range of
programming tools, including loops, if statements, functions, and procedures.
Without the ability to use functions and sub procedures, JavaScript cannot be used
effectively. JavaScript is a client-side scripting language that is frequently used on
Web pages to show messages, drop-down menus, and other user interface
components as well as for diverse user experiences and interactivity on the
website. Online forms are a common way for websites to collect user information,
and JavaScript can help check entries.
9|Page
PAN THU (LEVEL – 3 BATCH – 11)
If else statement: Developer use this statement to execute some code if the
condition is true and another code, if the condition is false.
Loop: A loop is a code which is executed over and over again until it fulfills a
preset criterion.
For Loop: As an example, for loop will be executed while count is less than or
equal to five. Once count equals six, the loop will be excited and go on the next
statement.
While Loop: The while loop are used to repeat a block of code as long as a
specified condition is true.
Do While Loop: The do while loop is a variant of the while loop. This loop will
execute the code once, before checking if the condition is true, then it will
repeat the loop as long as the condition is true.
10 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Redirecting Users
JavaScript can be used to redirect a user to another website or webpage.
For a variety of reasons, this can enhance a website's functionality. Firstly, if your
website is not responsive, you risk having two versions of it—one for desktop users
and one for mobile users. Then you could refer everyone accessing your website
via a phone to a version of the site that is optimized for mobile devices. Because
the user has a better experience than they would if they were to use the desktop
version on a mobile device, this increases the site's functionality. You might also
decide to modify your website's URL (E.g. moving from .co.uk to .com if you
became a global business). Then, you can redirect users to your new website using
JavaScript.
11 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Checking/Validating Inputs
You can also use scripting languages like JavaScript to determine whether
the data entered into a form is in a valid format. When compared to server side
validation, this provides a few benefits. Firstly the user gets a much quicker
response to any validation errors, this is because the browser is able to validate
inputs in real time whereas a server would need to collect the inputs from the
client machine, process these to make sure they are valid and then return a result
to the user. Because they are receiving form responses more quickly, users will
have a better user experience.
The owner of the website can also benefit from client side validation since
fewer invalid forms are sent to the server as errors are captured by the client
before submitting. Due to the server not having to receive and deliver this data,
bandwidth is saved (and thus money). The server must handle less data as a
result of fewer submissions of invalid forms, which is another benefit of fewer
submissions overall. This is because only valid information should be getting
through to the server. Users will benefit from this as the server will be able to
reply to requests more quickly.
Form Handling
JavaScript can be used to improve forms on websites. First, real-time
calculations can be performed using scripting languages. Users may find this to
be quite advantageous when, for instance, filling out an online order form. This is
so that the user can see how adding extras to their purchase will affect the price.
The cost of the order can be calculated as the user selects options for their order
and then given to the user.
If a user makes a mistake, they can easily restart a form again by using
JavaScript to rapidly reset it to its default state. The user is spared the time of
having to go through the process of deleting what they have entered. A form can
also be submitted using JavaScript to the action page. This means that after user
input has been verified, the form data may be sent to another file to do additional
tasks. The website now has more functionality because an additional action can
be started using JavaScript.
12 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Maintaining Cookies
Cookies can be created on a client's devices using scripting languages.
Cookies are little text files that a user stores on their device and can utilize for a
number of different things. The information kept in a cookie can then be retrieved
and used later using JavaScript. For instance, a multilingual website might ask
about the user's preferred language. The server can obtain the cookie and
translate the webpage automatically the next time the user visits the website by
storing this option in a cookie. This is a more functional solution for the user as it
means they don’t need to specify their language each time they use the website.
Additionally, cookies can be used to save any accessibility preferences that a user
has specified, such as high contrast color schemes or bigger letter sizes. This again
improves functionality because it makes it simpler for people to navigate the
website who use accessibility settings. This is due to the fact that accessibility
settings do not need to be configured every time a user accesses a website.
13 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Browser Detection
The browser detection code is the most prominent example of a section of
code that behaves differently based on the browser you are using. This is because
the string that it returns will differ depending on the browser you are using to run
the script in.
The following screenshots demonstrate how each browser handles (and
styles) the alert box differently. I could move the alert box around in Chrome and
Internet Explorer, but in Firefox, the webpage was grayed out and I was unable
to do so. It became considerably more obvious as a result.
To determine which JavaScript features a specific browser can handle, use
browser detection. For instance, some of the more outdated browsers, such
Firefox 3, do not support the most recent JavaScript features. Therefore, if this
browser check indicates that Firefox 3 is being used, a developer will be aware not
to attempt to use these features. This means that while the website is still
compatible with older browsers, newer browsers benefit from the extra features
offered by JavaScript.
14 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Object Detection
Using object detection is another way to determine which JavaScript
features are accessible in the current browser. This determines whether the object
required to execute a specific function is present. For instance, the JavaScript
random function depends on the Math class. Before attempting to use any code
that depends on the class, this piece of code will first check to see if it is present.
Since a feature might not work with all browsers, this approach of feature
detection is preferable to just looking for the name of the browser. Before using a
JavaScript function, you can use object detection and perform just one check. It
would take longer to perform and complete a check for each incompatible browser
if you used browser detection.
The following are the screenshots for the pre-design of the Book Warehouse
website I created.
Home Page
15 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Product Page
16 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Clean Design
One of the most essential considerations when building a website is to
create a simple, eye-catching design. A good design is visually appealing, simple
to understand, and easy to navigate. Above all, visitors can concentrate on the
value of your brand and content with a clean design because they won't be
distracted by flashy visuals or dense amounts of text. Customers usually relate
the quality of a business or product with the appearance of its website. Therefore,
having a clean design is essential to offering a satisfying user experience that
motivates users to attract.
Functionality
When it comes to functionality, there are a few factors to consider. In other
words, does the website actually work as intended? There are any loading issues
17 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
or broken links? Do the site's security measures meet the needs of your business?
In addition to these operational issues, it's crucial to think about the features of
your website from the perspective of the user. Are the parts on your website for
customer feedback, surveys, and contact forms functional? A customer may quit
your site due to one or more of these functional issues.
Navigation
If visitors find your website difficult to use and unclear, they might leave
and never come back. To increase the effectiveness and appeal of your site's
navigation, carefully analyze it from the perspective of a brand-new visitor. Keep
track of the navigational streams that make sense and those that don't. One
approach to make it simpler for people to browse your website is by include a site
map. Additionally, enhancing the functionality of your brand's online presence by
streamlining navigation and eliminating ineffective or unnecessary pages may
shorten loading times.
Commenting
The use of commenting is essential especially in the case that another
person is trying to understand the code that you have created. What it is means
by commenting is that in some particular area of the code, you used some steps
that is quite confusing. Then you can leave comments to explain that you’ve done.
By applying ctrl+/ to that sentences you can created comments. By that way,
comments can make programmers more easier to understand the codes and make
the code more error free.
18 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Cammel Casing
Camel casing is the way of naming in programming. Most programmers use
camel casing to make it simpler and easier to read and comprehend the codes.
How camel casing is written is that the initial letter of each concatenated word is
capitalized, and the first letter of the identifier is lowercase. For examples,
tableLayout and imgStyle are the names that are written in camel casing. There
is no concerns or errors for the code since it is up to the user to use it or not. But
one thing that is for sure is that camel casing will make programming more easier.
Indentation
Indentation is a method of coding that programmers use to make the
structure of the codes more simpler and readability. The relationship between
control flow elements like selection statements or loops and the code inside and
outside of them is best represented by indentation. As indentation is automatically
performed in IDEs, it is not very difficult to follow this rule.
Color Coding
The same as indentation, IDEs will automatically color-code programs while
they are being developed. Green, which is used for comments, Blue which is used
for phrases like if else, loops, and functions and red which is used for user
input/output, are the most often used colors in IDEs like Visual Studio. By doing
so, the readers will understand the uses of the code and which part of the code
performs what function with just a glance.
19 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
20 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
21 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Screenshots
For Test No. 1
22 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
23 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
24 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
25 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
26 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
27 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
28 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
29 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
30 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
The following are the improvements and changes I have made according to
the user feedback.
31 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
32 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
33 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
34 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
35 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
36 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Good Points
The following are the good points of my website I created.
37 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
2. High Navigation
Users can go to any place as they like since there are too many links in all
of the pages.
38 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Bad Points
The following are the bad points of my website I created.
39 | P a g e
PAN THU (LEVEL – 3 BATCH – 11)
Reference Websites
https://www.theserverside.com/definition/HTML-Hypertext-Markup-Language
https://skillcrush.com/blog/css/
https://www.hostinger.com/tutorials/website/how-to-link-a-stylesheet-css-file-to-your-html-file
https://developer.mozilla.org/en-
US/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model
https://prezi.com/y9tcche-nqao/the-fundamentals-of-scripting-
language/#:~:text=Scripting%20languages%20like%20python%20and,user%20and%20computer
%20much%20shorter.&text=Operators%20are%20used%20to%20value,formula%20set%20by%
20the%20variables.
https://blog.hubspot.com/blog/tabid/6307/bid/30557/6-guidelines-for-exceptional-website-
design-and-usability.aspx
https://tillerdigital.com/blog/12-web-design-best-practices-for-2022/
40 | P a g e