Skip to main content


Showing posts from October, 2015

Error: Element Style is Missing Required Attribute Scoped

A professional web developer always ensures if his website has any HTML error before delivering it to the client. I do it once the coding is finished. This post explains one error code I received while validating the HTML code. As I progress HTML validation with my websites, I met a new error "Error: Element style is missing required attribute scoped". Validator showed the lines where this error present. While checking the code I found the following lines.

<style >blockquote{clear: both;font-style: italic;margin-left: 10px;margin-right: 10px;position: relative;border: 0px;font-size: 20px;line-height: 200%;font-weight: light;width: 100%;font-family: 'Source Sans Pro',Helvetica,Arial,sans-serif;text-align: center;}</style>

The screenshot of the error message is shown below.

<style> is considered as part of CSS and anything written in it will be applied to the whole document. However, if we use the attribute scoped, the style applies only to its parent …

Element div not Allowed As Child of Element Span in this Context

Today morning I tested some of my websites using W3 validator ( to check whether they have any HTML errors. They were developed by a freelance HTML developer hired online. One website showed an error - "Error: Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree)". This is one of the easiest error we can fix and it happens by a web developer who doesn't follow the basic rule of never put block-level elements inside inline elements. While testing the code I found the following lines which created the error.

<span class="mob-menu-toggle" data-target="#navbarCollapse" data-toggle="collapse"> <div id="nav-icon" > <span></span> <span></span> <span></span> <span></span> </div> </span>
Here, the block level element …

Prevent Malicious User Inputs In PHP Form

A professional website always must have a way to receive user inputs either in the form of a comment column or in the form of a user input form. It is a must for successful websites to receive feedback from their users but some malicious persons use this option to inject malicious scripts to the website. If the data entered by the user is directly inserted into the database, the situation is very critical. Luckily, PHP has some built-in functions to validate the data inserted by a user using the user input form. Before explaining those functions, it is better to understand the effects of tricky external credentials.

Effects of Malicious User Inputs on a Website
Though a PHP address form is intended to receive user details like name, address etc, it will take every string submitted unless we don't implement strict validation. If someone enters a script instead of name, it is possible that the form will accept it unless there is a validation. It will be extremely dangerous if we us…

Cloud Computing Advantages and Disadvantages

The buzzword of the moment is “cloud computing,” and competition is stiff to attract users to the variety of cloud services available. Simply put, cloud computing is the idea of accessing data storage and applications at a remote site over the Internet, rather than from a local network. In this article, we look at the major advantages and disadvantages of using cloud computing for a company. We cannot avoid the importance of cloud computing and we know it is the future. At the same time we must of aware of the risks in using cloud computing to store sensitive data of a company or institution. Final decision to use cloud computing for a company should fully depend on the detailed analysis of the risks and advantages of this new technology.

According to Gartner, one-third of all consumer data will be in the cloud by 2016, compared to 7% today.1 Microsoft has predicted that 74% of small and medium-sized businesses will use at least one cloud service by 2014.2

Most consumers have had a t…

About Author

My photo
Alex George
Alex George has Engineering graduation in Computer Science and an MBA in Finance. He had been working as a senior Network Engineer for ten years. His specialization is in Cisco products. Traveling is one of his hobbies and visited various places as part of his onsite work. He visited different places as part of his onsite work like New York, Dubai, London, etc. Right now Alex is a director of one of the leading career development firms in India, which trains students for UPSC, SSC, and PSC examinations. He guides a lot of students to get selection for various prestigious institutions like CBI, Income Tax Department, etc. Alex George is a stock market investor and a very active intraday trader. Engineering Background: He has a B.Tech in Computer Science and Engineering and passed different network and security courses like CCNA, CCNP (Security), CEH, and various Microsoft certifications. Finance Background: Alex has an MBA in Finance. He is an active intraday trader and a Share Market Investor. Webmaster Skills: Alex is a blogger since 2004. He has a working knowledge of HTML, CSS, PHP, and JavaScrip.


Show more