Warship
Penjajap were galley-like warships used by several Austronesian ethnic groups in Maritime Southeast Asia armed with Lantaka swivel guns.
Q-ship, also known as Q-boats, decoy vessels, special service ships, or mystery ships, were heavily armed merchant ships with concealed weaponry, designed to lure submarines into making surface attacks. This gave Q-ships the chance to open fire and sink them.
Seaplane tenders were a type of ship used to carry seaplanes into the open sea. They are considered by some as the predecessor of the aircraft carrier.
Submarine chaser is a small warship used in anti-submarine warfare.
Ship of the line, a sailing warship capable of standing in the line of battle. A direct predecessor to the later battleship.
Sloop-of-war was a sailing vessel category later revived in WWII as a convoy escort ship.
Screw sloop was a propeller-driven sloop-of-wars used during the mid-19th Century.
Submarine, are ships capable of staying submerged for days. Modern submarines can stay underwater for months, with food supplies as the only limiting factor.
Cruiser submarine  were a type of a very large submarine designed to remain at sea for extended periods in areas distant from base facilities.
Coastal submarine or littoral submarine is a small, maneuverable type of submarine with shallow draft well suited to navigation of coastal channels and harbors.
Fleet submarine is a type of submarine with the speed, range, and endurance to operate as part of a navy's battle fleet.
Midget submarine is any submarine under 150 tons, typically operated by a crew of one or two but sometimes up to six or nine
Submarine aircraft carrier is a submarine equipped with aircraft for observation or attack missions. These submarines saw their most extensive use during World War II, although their operational significance remained small
Attack Submarine is a submarine with the purpose of attacking other submarines.
Ballistic Missile Submarine is a submarine capable of deploying submarine-launched ballistic missiles (SLBMs) with nuclear warheads.
Cruise missile submarine are submarines equipped with cruise missiles
Torpedo boat, are small, fast surface vessels designed for launching torpedoes.
Torpedo ram is a type of torpedo boat combining a ram with torpedo tubes.
Motor torpedo boat is a type of fast torpedo boat, especially of the mid 20th century.
War canoe was a kind of watercraft of the canoe type designed and outfitted for warfare using bow, spear and shield wielding warriors. During the gunpowder era a single brass or iron cannon was mounted on the bow or stern along with musketeers. These warships were used by many tribes and cultures all around the globe.

History and evolution of warships: 

First warships: The first evidence of ships being used for warfare comes from Ancient Egypt, specifically the northern Nile River most likely to defend against Mediterranean peoples. The galley warship most likely originated in Crete an idea which was soon copied and popularized by the Phoenicians. In the time of Mesopotamia, Ancient Persia, Phoenicia, Ancient Greece and the Ancient Rome, warships were always galleys (such as biremes, triremes and quinqueremes): long, narrow vessels powered by banks of oarsmen and designed to ram and sink enemy vessels, or to engage them bow-first and follow up with boarding parties. The development of catapults in the 4th century BC and the subsequent refinement of this technology enabled the first fleets of siege engine - equipped warships by the Hellenistic age. During late antiquity, ramming fell out of use and the galley tactics against other ships used during the Middle Ages until the late 16th century focused on boarding.

The Age of Sail: Naval artillery was redeveloped in the 14th century, but cannon did not become common at sea until the guns were capable of being reloaded quickly enough to be reused in the same battle. The size of a ship required to carry a large number of cannons made oar-based propulsion impossible, and warships came to rely primarily on sails. The sailing man-of-war emerged during the 16th century.
By the middle of the 17th century, warships were carrying increasing numbers of cannons on their broadsides and tactics evolved to bring each ship's firepower to bear in a line of battle. The man-of-war now evolved into the ship of the line. In the 18th century, the frigate and sloop-of-war – too small to stand in the line of battle – evolved to escort convoy trade, scout for enemy ships and blockade enemy coasts.

Steel, steam and shellfire: During the 19th century a revolution took place in the means of marine propulsion, naval armament and construction of warships. Marine steam engines were introduced, at first as an auxiliary force, in the second quarter of the 19th century. The Crimean War gave a great stimulus to the development of guns. The introduction of explosive shells soon led to the introduction of iron, and later steel, naval armour for the sides and decks of larger warships. The first ironclad warships, the French Gloire and British Warrior, made wooden vessels obsolete. Metal soon entirely replaced wood as the main material for warship construction.
From the 1850s, the sailing ships of the line were replaced by steam-powered battleships, while the sailing frigates were replaced by steam-powered cruisers.
The armament of warships also changed with the invention of the rotating barbettes and turrets, which allowed the guns to be aimed independently of the direction of the ship and allowed a smaller number of larger guns to be carried.
The final innovation during the 19th century was the development of the torpedo and development of the torpedo boat. Small, fast torpedo boats seemed to offer an alternative to building expensive fleets of battleships.

Pre-dreadnought era: Pre-dreadnought battleships were sea-going battleships built between the mid- to late- 1880s and 1905, before the launch of HMS Dreadnought in 1906. The pre-dreadnought ships replaced the ironclad battleships of the 1870s and 1880s. Built from steel, protected by case-hardened steel armour, and powered by coal-fired triple-expansion steam engines, pre-dreadnought battleships carried a main battery of very heavy guns in fully-enclosed rotating turrets supported by one or more secondary batteries of lighter weapons. The role of corvettes, sloops and frigates were taken by new types of ships like destroyers, protected cruisers and armoured cruisers.

Since 1906: 

The dreadnought era: Another revolution in capital warship design began shortly after the start of the 20th century, when Britain launched the Royal Navy's all-big-gun battleship Dreadnought in 1906. Powered by steam turbines, it was bigger, faster and more heavily gunned than any existing battleships, which it immediately rendered obsolete. It was rapidly followed by similar ships in other countries. The Royal Navy also developed the first battlecruisers. Mounting the same heavy guns as the dreadnoughts on an even larger hull, battlecruisers sacrificed armour protection for speed. Battlecruisers were faster and more powerful than all existing cruisers,  but much more vulnerable to shellfire than contemporary battleships. The torpedo-boat destroyer was developed at the same time as the dreadnoughts. Bigger, faster and more heavily gunned than the torpedo boat, the destroyer evolved to protect the capital ships from the menace of the torpedo boat.
At this time, Britain also introduced the use of fuel oil to power steam warships, instead of coal. Oil produced twice as much power per unit weight as coal, and was much easier to handle. Tests were conducted by the Royal Navy in 1904 involving the torpedo-boat destroyer Spiteful, the first warship powered solely by fuel oil. These proved its superiority, and all warships procured for the Royal Navy from 1912 were designed to burn fuel oil.

Obsolescence of battleships: During the lead-up to the Second World War, Germany and the United Kingdom once again emerged as the two dominant Atlantic sea powers. The German navy, under the Treaty of Versailles, was limited to only a few minor surface ships. But the clever use of deceptive terminology, such as Panzerschiffe deceived the British and French commands. They were surprised when ships such as Admiral Graf Spee, Scharnhorst, and Gneisenau raided Allied supply lines. The greatest threat however, was the introduction of the Kriegsmarine's largest vessels, Bismarck and Tirpitz. Bismarck was heavily damaged and sunk/scuttled after a series of sea battles in the north Atlantic in 1941, while Tirpitz was destroyed by the Royal Air Force in 1944. The British Royal Navy gained dominance of the European theatre by 1943.

The Second World War brought massive changes in the design and role of several types of warships. For the first time, the aircraft carrier became the clear choice to serve as the main capital ship within a naval task force. World War II was the only war in history in which battles occurred between groups of carriers. World War II saw the first use of radar in combat. It brought the first naval battle in which the ships of both sides never engaged in direct combat, instead sending aircraft to make the attacks, as in the Battle of the Coral Sea.