Validate Your Website Code

Rahul Sharma
Updated on 04-Oct-2019 12:20:03

290 Views

Website development included writing code in HTML, CSS, JavaScript and the platform you’ve chosen. Your website may look correct, responsive and developed with website standards, but it may have some internal issues.Tools are provided by W3C, to validate your website code:Validate HTML5Validator.nu is a validator, which validates HTML5, ARIA, SVG 1.1 and MathML 2.0. It checks the complete document and points out where the markup isn’t following the doctype.W3C Markup ValidatorIt checks the HTML doctype and the markup. This validator is for those who are using HTML4 or XHTML1.x doctype. It also validates HTML5, but Validator.nu is considered far better since ... Read More

Use the Link Tag to Define a Relationship to an External Resource

Johar Ali
Updated on 04-Oct-2019 11:59:36

246 Views

The tag is used in HTML to define a relationship to an external resource. It is used to link external style sheets. It gets added inside the … tag, but does not have a closing tag. Define your external CSS file in it.The CSS file created separately will have all the CSS code inside it. The href attribute adds the css file link.You can try to run the following code to include external CSS in HTML. The HTML file is here, with a link to CSS file style.cssExampleLive Demo                 ... Read More

Create Valid HTML Document Without Head Element

Amit Sharma
Updated on 04-Oct-2019 11:58:09

472 Views

With HTML, the essentials are doctype declaration, and . But, you will be amazed to know that a valid HTML document can work without the element. The doctype declaration will come always since it tells and instructs the browser about what the page is about.Let’s see an example; here we won’t use the tag. Still, the HTML Document is valid and will work correctly like any other valid HTML DocumentExampleLive Demo    Title of the document           This is heading 1       This is demo text.    

Comparison of I/O Port Chips and Memory Chips in 8085

Arnab Chakraborty
Updated on 04-Oct-2019 11:15:03

362 Views

In this section we will see the basic comparisons between I/O port chips and the memory chips in 8085 microprocessor.Information is also stored in an Input Output port chip similar to a memory chip. Information of 1 byte are stored in an Input Output port chip on the other hand information of few bytes are stored in the Input Output port chips. An example to be cited as only 1 byte of information is stored in Intel 8212 I/O port chip, but 3 bytes of information are stored in Intel 8255 chip. Moreover, a large number of memory locations like ... Read More

What is a Computer Language

Arnab Chakraborty
Updated on 04-Oct-2019 11:09:46

13K+ Views

To communicate with the computers, we need some languages. These are computer languages.There are mainly three different languages with the help of which we can develop computer programs. And they are –Machine Level languageAssembly Level Language andHigh Level LanguageMachine Level LanguageComputer can understand only the language of Digital Electronics. Digital Electronics deals with presence and absence of voltages. Within the computer there are two logics can play their role. These logics are –Positive Logic – Here presence of voltage will be denoted by 1 and absence of voltage will be denoted by 0Negative Logic – Here presence of voltage will be ... Read More

Biggest Reuleaux Triangle Inscribed in a Square and Equilateral Triangle in C

sudhir sharma
Updated on 04-Oct-2019 11:05:58

146 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.To construct a Reuleaux ... Read More

MySQL Query for Grouping and Summing Values Based on Specific Records

AmitDiwan
Updated on 04-Oct-2019 08:42:26

104 Views

Use GROUP BY to group records, whereas SUM() function is used to add. Let us first create a table −mysql> create table DemoTable (    Name varchar(40),    Subject varchar(40),    Marks int ); Query OK, 0 rows affected (2.89 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('Chris', 'MySQL', 76); Query OK, 1 row affected (0.32 sec) mysql> insert into DemoTable values('Sam', 'MongoDB', 86); Query OK, 1 row affected (0.39 sec) mysql> insert into DemoTable values('Mike', 'MySQL', 98); Query OK, 1 row affected (0.46 sec) mysql> insert into DemoTable values('David', 'Java', 93); Query OK, ... Read More

Update Table by Calculating Sum and Displaying Result as Last Column Value

AmitDiwan
Updated on 04-Oct-2019 08:39:35

671 Views

Use a variable to store SUM(total) and update it with the UPDATE command. Let us first create a table −mysql> create table DemoTable (    Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    Value int ); Query OK, 0 rows affected (0.61 sec)Insert some records in the table using insert command −mysql> insert into DemoTable(Value) values(70); Query OK, 1 row affected (0.10 sec) mysql> insert into DemoTable(Value) values(100); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable(Value) values(150); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable(Value) values(250); Query OK, 1 row affected (0.14 sec) mysql> ... Read More

Return Nearest Record from a Table in MySQL

AmitDiwan
Updated on 04-Oct-2019 08:36:23

176 Views

Let us first create a table −mysql> create table DemoTable (    CustomerId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    ProductAmount int ); Query OK, 0 rows affected (0.61 sec)Insert some records in the table using insert command −mysql> insert into DemoTable(ProductAmount) values(5000); Query OK, 1 row affected (0.13 sec) mysql> insert into DemoTable(ProductAmount) values(6000); Query OK, 1 row affected (0.08 sec) mysql> insert into DemoTable(ProductAmount) values(7000); Query OK, 1 row affected (0.26 sec)Display all records from the table using select statement −mysql> select *from DemoTable;This will produce the following output −+------------+---------------+ | CustomerId | ProductAmount | +------------+---------------+ | ... Read More

Biggest Reuleaux Triangle Inscribed in a Square within a Semicircle in C

sudhir sharma
Updated on 04-Oct-2019 08:33:33

151 Views

A Reuleaux triangle is a shape formed by using intersection of three circle, in such a way that each having its center on the boundary of the other two circles. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the ... Read More

Advertisements