HTML Knowledge Base
1. What is HTML? HTML (Hypertext Markup Language) is the standard markup language used to create the structure of web pages. It provides the "skeleton" of a website by organizing content such as links, images, and text.
2. Core HTML Elements:
-
html: The root element that wraps all the content on the page.
-
head: Contains meta-information about the document, such as titles and script links.
-
title: Specifies the title shown in the browser’s title bar or tab.
-
body: Contains the visible page content like headings, paragraphs, and media.
-
h1 to h6: Defines headings, where h1 is the most important and largest.
-
p: Defines a paragraph of text.
-
a: Defines a hyperlink to other pages or resources.
-
img: Used to embed images into the page.
3. Advanced HTML Features:
-
Semantic Elements: Tags like header, footer, and section describe the meaning of the content to both the browser and search engines (SEO).
-
Form Elements: Includes form, input, and textarea to collect and process user data.
-
Multimedia: Native support for audio, video, and graphics via the canvas element.
4. Relationship between HTML and CSS: While HTML defines the content and structure, CSS (Cascading Style Sheets) handles the presentation and layout. CSS allows you to apply styles, colors, and responsive designs to your HTML elements.
!DOCTYPE html
html lang="tr"
head
meta charset="UTF-8"
titleWeb Sayfası Başlığı / Page Title/title
/head
body
header
h1Hoş Geldiniz! / Welcome!/h1
/header
nav
ul
lia href="#"Ana Sayfa / Home/a/li
lia href="#"Hakkımızda / About/a/li
/ul
/nav
section
h2Makale Başlığı / Article Heading/h2
pİçerik buraya gelecek. / Content goes here./p
/section
footer
p© 2026 Web Sitesi. Tüm hakları saklıdır./p
/footer
/body
/html
Comments: