From 7c2bccb8c50ca4baa63e8d34c424d4f48fbac02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fuhan=20=C4=B0lter?= Date: Thu, 11 Jan 2024 13:00:58 +0300 Subject: [PATCH] form basics Turkish translation --- .../forms/form_basics.md | 228 +++++++++--------- 1 file changed, 113 insertions(+), 115 deletions(-) diff --git a/content/odin/intermediate_html_css/forms/form_basics.md b/content/odin/intermediate_html_css/forms/form_basics.md index d5c76564..57a7da53 100644 --- a/content/odin/intermediate_html_css/forms/form_basics.md +++ b/content/odin/intermediate_html_css/forms/form_basics.md @@ -1,33 +1,31 @@ -### Introduction +### Giriş -Forms are one of the most critical parts of your site. They are your user's gateway into your backend – the user provides data in a form, and you do stuff with it. +Formlar, sitenizin en kritik bölümlerinden biridir. Kullanıcılarınızın backend'inize giriş kapısıdır – kullanıcılar bir formda veri sağlar ve siz de bu veriyle işlemler yaparsınız. -You need to specify the proper types of inputs for each possible data item since there are often multiple ways to collect a piece of data, but only one way is easiest for your user. +Her olası veri öğesi için uygun giriş türlerini belirtmelisiniz, çünkü genellikle bir veri parçasını toplamanın birden fazla yolu olabilir, ancak kullanıcılarınız için en kolay olan tek bir yol vardır. -In this lesson, we will explore the basics of HTML forms and some of the different types of inputs available to you. +Bu ders kapsamında, HTML formlarının temellerini ve size sunulan çeşitli giriş türlerini keşfedeceğiz. -### Learning outcomes +### Öğrenme çıktıları -By the end of this lesson, you should be able to: +Dersin sonunda şunları yapabilmelisiniz: -- Create forms with HTML -- Have a basic idea of how to style forms +- HTML ile formlar oluşturabilmek +- Formları nasıl stilize edeceğiniz konusunda temel bir fikre sahip olmak -### The form element +### Form öğesi -The form element is a container element like the div element we learned earlier in the curriculum. The form element wraps all of the inputs a user will interact with on a form. +Form öğesi, önceki müfredatta öğrendiğimiz div öğesi gibi bir konteyner öğesidir. Form öğesi, bir formda kullanıcının etkileşimde bulunacağı tüm girişleri sarmalar. -The form element accepts two essential attributes; the first is the `action` attribute which takes a URL value that tells the form where it should send its data to be processed. -Later in the curriculum, we will learn to hook backend systems up to frontend forms using this attribute. For now, it's only essential to know what the `action` attribute is used for. +Form öğesi iki temel özellik kabul eder; ilki, formun hangi URL'ye verilerini işlemek üzere göndermesi gerektiğini belirten `action` niteliğidir. Müfredatın ilerleyen aşamalarında, bu niteliği kullanarak backend sistemlerini frontend formlarına bağlamayı öğreneceğiz. Şu anda sadece `action` niteliğinin ne için kullanıldığını bilmek önemlidir. -The second is the `method` attribute which tells the browser [which HTTP request method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) it should use to submit the form. -The GET and POST request methods are the two you will find yourself using the most. +İkinci olarak, tarayıcıya formu göndermek için hangi [which HTTP request method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods)nin kullanılacağını belirten `metot` niteliğidir. En çok kullanılan iki yöntem GET ve POST istek yöntemleridir. -We use GET when we want to retrieve something from a server. For example, Google uses a GET request when you search as it *gets* the search results. +GET'i bir şeyi sunucudan almak istediğimizde kullanırız. Örneğin, Google bir arama yaptığınızda *arama sonuçlarını alması* için GET isteği kullanır. -POST is used when we want to change something on the server, for example, when a user makes an account or makes a payment on a website. +POST, sunucuda bir şeyi değiştirmek istediğimizde kullanılır; örneğin, bir kullanıcı bir hesap oluşturur veya bir web sitesinde ödeme yaparsa. -The markup for creating a form element looks like this: +Form elementi oluşturmak için işaretleme şu şekildedir: ~~~html
@@ -35,15 +33,15 @@ The markup for creating a form element looks like this:
~~~ -### Form controls +### Form kontrolleri -To start collecting user data, we need to use form control elements. These are all the elements users will interact with on the form, such as text boxes, dropdowns, checkboxes and buttons. In the following few sections, we will explore some of the form controls you will use most commonly. +Kullanıcı verilerini toplamaya başlamak için form kontrol elemanlarını kullanmamız gerekiyor. Bunlar, kullanıcıların form üzerinde etkileşimde bulunacağı tüm elemanlardır; metin kutuları, açılır menüler, onay kutuları ve düğmeler gibi. İlerleyen birkaç bölümde, en sık kullanacağınız bazı form kontrol elemanlarını keşfedeceğiz. -### The input element +### İnput öğesi -The input element is the most versatile of all the form control elements. It accepts a `type` attribute which tells the browser what *type* of data it should expect and how it should render the input element. +Input öğesi, tüm form kontrol elemanları arasında en çok yönlü olanıdır. Tarayıcıya ne tür veri bekleyeceğini ve input öğesini nasıl render etmesi gerektiğini söyleyen bir `type` niteliğini kabul eder. -A text input looks like this: +Bir metin girişi şu şekildedir: ~~~html
@@ -51,13 +49,13 @@ A text input looks like this:
~~~ -Text inputs accept any text input. For example, you would use it to collect things like users' first and last names. +Metin girişleri, herhangi bir metin girişini kabul eder. Örneğin, kullanıcıların ad ve soyadı gibi bilgileri toplamak için kullanabilirsiniz. **Labels** -An input on its own isn't very useful since the user will not know what kind of data they are supposed to provide. Instead, we can give our inputs a label to inform users what type of data they are expected to enter. +Tek başına bir input pek kullanışlı değildir çünkü kullanıcı, hangi türde veri sağlamaları gerektiğini bilemeyecektir. Bunun yerine, kullanıcılara girmeleri beklenen veri türünü bildirmek için inputlarımıza bir etiket ekleyebiliriz. -To create a label, we use the `