<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mustafa Batuhan Bayoglu on Medium]]></title>
        <description><![CDATA[Stories by Mustafa Batuhan Bayoglu on Medium]]></description>
        <link>https://medium.com/@bayoglubatuhan?source=rss-5f7f54ccc773------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EXIdudglshtTcpZ6abWB8g.jpeg</url>
            <title>Stories by Mustafa Batuhan Bayoglu on Medium</title>
            <link>https://medium.com/@bayoglubatuhan?source=rss-5f7f54ccc773------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 04:26:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bayoglubatuhan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What Is Keycloak? What Is Behind Of The Keycloak? How Does Keycloak Work?]]></title>
            <link>https://bayoglubatuhan.medium.com/what-is-keycloak-what-is-behind-of-the-keycloak-how-does-keycloak-work-d1be308d3227?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1be308d3227</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[keycloak]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Sun, 25 Jun 2023 14:22:41 GMT</pubDate>
            <atom:updated>2024-11-01T10:12:02.296Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all, As a Software Developers, we always aim to have clean, scalable and easy gains. By this reason, I wish this article will be <strong>covered by plain</strong> in your mind and have an well idea about Keycloak.</p><p>How it is going your identity and access management of your application? Are you suffering the deal with tokens, authentications, authorization and more ? Do you have third part login management? What would you think If I say there is a tool called Keycloak which have capability <strong>authenticate your users without coding.</strong></p><h3>What is the Keycloak?</h3><p>Keycloak is an open-source identity and access management tool which developed by <strong>Red Hat.</strong> Definition of Keycloak has mentioned in Red Hat blog as a</p><blockquote><em>single sign-on solution for web apps and RESTful web services. The goal of Keycloak is to make it easy for application developers to secure their apps and services. [1]</em></blockquote><p>Stian Thorgersen is one of the a Co-founder and team lead of the Keycloak project. He called Keycloak as allowing you to attend get users and <strong>securely invoke Rest API, Microservices with little coding</strong>. Furthermore , Keycloak is also able to pull users from number of different sources as well as number of different social networks like Google, Github, Facebook and Twitter. That’s all sounds really good, isn’t it? However, Before in order to understand how does Keycloak work? I need to shortly point out <strong>Single Sign On</strong></p><h3>Single Sign On</h3><p>I would you like to focus <strong>first word</strong> of the name before explain the <strong>Single</strong> Sign On Solution. I want to explain by example what does Single Sign On provide us. As you know that Google Workspace consist of so many products in as Gmail, Google Meet, Google Drive and so on. Imagine that for all of these products you have multiple login credentials for each one. As a user It is really hard managing to remember your credentials, update them securely and login, wouldn’t it?</p><p>On the other hand, As a company It would be really expensive development expense to have individual authentication and authorization services for each of product. However, when you want to login one of the these product, you login with <strong>single set of login credentials</strong>. That is simply what Single Sign On provides us.</p><p>SSO allows users login multiple applications and services by <strong>single set of login credentials.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*iEiw7ILGPTICCzxRtuGynA.png" /></figure><h3><strong>How Does Single Sign On Work?</strong></h3><p>I would like to explain Single Sign On process by example like login YouTube with Google. Also, I will try to do that as much as simple. Before given example I have to shortly identify two terminology;</p><p><strong>Service Provider</strong>: These are the application whose service users wants to access.</p><p><strong>Identity Provider</strong>: An <strong>identity provider</strong> (abbreviated <strong>IdP</strong> or <strong>IDP</strong>) is a system entity that creates, maintains, and manages identity information for <a href="https://en.wikipedia.org/wiki/Security_principal">principals</a> and also provides authentication services to relying applications within a federation or distributed network. [2] Briefly, Identity Provider offers user authentication as-a-service.</p><p>Let’s dive into Single Sign On Authentication work flow by example at below.</p><p><strong>Sign Sign On Authentication Flow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*9kMKnvxlZ_2T7zYGcrdmyw.png" /></figure><p>However, that is not at all Single Sign On work flow. What happens when we want to access another application that feeds on the same authentication after the authentication is complete. How does Single Sign On do this access?</p><p>There is a security standard that allows to manage access in a applicaiton to different applications, with the user authenticating once using Single Sign-On. That security standard is OAuth 2. OAuth 2 is shortly that give one application permission to access your data in another application without giving them your credentials.</p><p>Let’s consider an application that works with a Google account. This application requests access to the user’s Google account and completes the authentication process by following the above exampled SSO authentication flow. The authentication process responds with tokens and one of them is an access token. The access token is then used to make requests to the protected resource.</p><p>Then the application sends an authorization request with access token using the OAuth 2 protocol to get certain information from the user’s Google account. After the user confirms this authorization, the application can customize the experience using the requested information from the user’s Google account in the application. In this way, Single Sign On is the system that handles and provides a solution for a user’s access to an application using authorization standards, and authentication using authentication protocols.</p><p>In conclusion, there are more details with Single Sign On and OAuth 2 for sure. In order to check more detail about these solutions, I advice you to check out a <a href="https://developer.okta.com/blog/2019/10/21/illustrated-guide-to-oauth-and-oidc"><em>recourse </em></a>which I found out really beneficial. After mentioned about what SSO is and how it works, we can now checkout how Keycloak works.</p><h3>How Does Keycloak Work?</h3><p>Keycloak handles authentication and authorization steps using a combination of security protocols, mechanisms, and policies. Up until this point I did not mention detailly authentication protocols yet. We should have knowledge 2 more security protocol in order to understand Keycloak work flow. Keycloak supports several security protocols, including OpenID Connect, OAuth 2.0, SAML 2.0, and Kerberos. However, I point out OAuth 2.0 at above. Therefore, we will focus on more OpenID Connect and SAML 2.0 in this part.</p><p>OpenID Connect protocol is built on top of OAuth 2.0 framework and provides additional functionality. The OpenID Connect protocol is used for authentication of users. It provides a standardized way of authenticating users by exchanging JSON web tokens (JWTs) between the Keycloak server and client applications. The JWTs contain information about the authenticated user and are used to authorize access to protected resources.</p><p>Example of JSON web tokens (JWTs) between the Keycloak server and client applications:</p><pre>Header:<br>{<br> &quot;alg&quot;: &quot;HS256&quot;,<br> &quot;typ&quot;: &quot;JWT&quot;<br>}<br>Payload:<br>{<br> &quot;sub&quot;: &quot;1234567890&quot;,<br> &quot;name&quot;: &quot;Batuhan Bayoglu&quot;,<br> &quot;email&quot;: &quot;bayoglubatuhan@gmail.com&quot;,<br> &quot;iss&quot;: &quot;http://localhost:8080/auth/realms/demo&quot;,<br> &quot;aud&quot;: &quot;my-app&quot;,<br> &quot;exp&quot;: 1647658799,<br> &quot;iat&quot;: 1647658790,<br> &quot;jti&quot;: &quot;4e4b4d50-b61e-4e77-8b09-0547d0e71e35&quot;,<br> &quot;realm_access&quot;: {<br>  &quot;roles&quot;: [<br>   &quot;admin&quot;,<br>   &quot;user&quot;<br>  ]<br> },<br> &quot;client_roles&quot;: {<br>  &quot;my-app&quot;: [<br>   &quot;user&quot;<br>  ]<br> }<br>}<br>Signature:<br>HMACSHA256(base64UrlEncode(header) + &quot;.&quot; + base64UrlEncode(payload), secret)<br><br>Generated by ChatGPT :) </pre><p>SAML 2.0 is another protocol supported by Keycloak. It allows for cross-domain single sign-on and is commonly used in enterprise environments.</p><p>After all over the key points let’s see basically how does Keycloak work?</p><ol><li>The client application redirects the user to the Keycloak authentication server’s OIDC endpoint.</li><li>The Keycloak server authenticates the user.</li><li>Once the user is authenticated, the Keycloak server generates an OIDC token, which includes user information such as the user ID, email address, and name. This token is signed by the Keycloak server using its own private key.</li><li>The Keycloak server sends the OIDC token back to the client application.</li><li>The client application verifies the signature of the OIDC token using the Keycloak server’s public key.</li><li>The client application can then use the user information in the OIDC token to authorize the user’s access to resources and APIs.</li><li>After the user is successfully authenticated, Keycloak generates an authentication code and sends it back to the client application.</li><li>The client application with authentication code request an OAuth 2.0 Access Token from Keycloak.</li><li>Keycloak validates the authentication code and issues an Access Token to the client application.</li><li>This access token is used by the client application to access protected resources or APIs on behalf of the user.</li></ol><h3>Notable Features Of Keycloak</h3><h4>User Federation</h4><blockquote>Keycloak has support to connect to existing LDAP or Active Directory servers. Also, you can implement your existing relational database. [3]</blockquote><h4>Social Login</h4><blockquote>Without no code change in your application, Keycloak enable login with social networks. It is easy to add through the admin console. [3]</blockquote><h4>Admin Console</h4><blockquote>Through the admin console administrators can centrally manage all aspects of the Keycloak server. [3]</blockquote><h4>Customize</h4><blockquote>Keycloak provide customize login/register theme through your code. [3]</blockquote><p>In conclusion, I try to mention key points of Keycloak as much as I can. I hope that any part of this article help out you. Thanks for spending time to read this article.</p><p>Resources:</p><p>[1] <a href="https://www.redhat.com/en/blog/getting-started-keycloak-single-sign-operator#:~:text=Keycloak%20is%20a%20single%20sign,secure%20their%20apps%20and%20services.">https://www.redhat.com/en/blog/getting-started-keycloak-single-sign-operator#:~:text=Keycloak%20is%20a%20single%20sign,secure%20their%20apps%20and%20services.</a></p><p>[2] <a href="https://en.wikipedia.org/wiki/Identity_provider">https://en.wikipedia.org/wiki/Identity_provider</a></p><p>[3] <a href="https://www.keycloak.org/">https://www.keycloak.org/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1be308d3227" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Memoization— How to use React.memo()]]></title>
            <link>https://bayoglubatuhan.medium.com/react-memoization-how-to-use-react-memo-d8aeba11dc51?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8aeba11dc51</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react-memo]]></category>
            <category><![CDATA[memoization]]></category>
            <category><![CDATA[react-hook]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Wed, 22 Dec 2021 12:41:05 GMT</pubDate>
            <atom:updated>2021-12-22T12:50:52.987Z</atom:updated>
            <content:encoded><![CDATA[<p>In the beginning, to understand how to use React.Memo() in React applications, we should take a look at what is memoization.</p><h3>Memoization</h3><p>Where does memoization base on? The answer to this question is <strong><em>Dynamic Programming</em></strong>. Dynamic Programming simply means optimization of your code over plain recursion. The idea is to store the results of the sub-problem and reuse them later when needed to do the same calculations. Dynamic Programming makes its program more efficient by using memoization. Let’s take a simple example for better understanding of memoization. Let’s say we have an additional function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f4ff394185be22ec7f741e59c8acb88/href">https://medium.com/media/3f4ff394185be22ec7f741e59c8acb88/href</a></iframe><p>Basically addition function makes an addition operation as you can see above. The addition function takes two arguments. In this example 5 and 10 are passed addition function as an argument. After implementation of the logic operation of the function, it returns 15.</p><p>If we call this function using one of the memoization techniques, the value 15 corresponding to the values 5 and 10 is saved. Thus, if we call this function again with the same parameters since we already have the result corresponding to the parameters’s values, it returns the result directly to us and does not perform the addition operation again.</p><h3>React Unnecessary Re-render Component</h3><p>For understanding unnecessary re-render components let’s make a simple react application. Source structure of this application:</p><pre>/src<br> /components<br>   MyBestFriends.jsx<br>   Counter.jsx<br>App.js</pre><p>In the application there are two components are used. MyBestFriends component is used to list best friends and add new best friends. Another component which is Counter is used to print a counter and increase the counter by using a button. Both of these components are called in App.js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PtetWtmMnH04IOUguxQTAg.jpeg" /><figcaption>React Memoization Application</figcaption></figure><p><strong>App.js Source Code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d6e7cebd3d931d084ba0723bbce95f6/href">https://medium.com/media/8d6e7cebd3d931d084ba0723bbce95f6/href</a></iframe><p>In App.js consist of two states which are count and myBestFriendList. These states had been created for the pass to other components with their default values. Count state is responsible for Counter component in order to use for print counter and increase counter, myBestFriendList state is responsible MyBestFriendList component for print list of the best friends and adds new best friend.</p><p><strong>MyBestFriend.jsx Source Code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7dbe33c6baf112bd1c60d24e41ed415/href">https://medium.com/media/d7dbe33c6baf112bd1c60d24e41ed415/href</a></iframe><p>MyBestFriend component takes myBestFriendList state and its update function which is setMyBestFriendList. The goal of the myBestFriendList state is that print list of best friends. The goal of the setMyBestFriendList function is that add new best friend to list and update the state. Also MyBestFriend component has its own state which is newBestFriend to get new best friend name and use it for adding myBestFriendList state.</p><p><strong>Counter.jsx Source Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7dcc5415fca5a99902745de8c456f823/href">https://medium.com/media/7dcc5415fca5a99902745de8c456f823/href</a></iframe><p>Counter component takes count state and its update function which is setCount. The goal of the count state is that print count value. The goal of the setCount function is that increases the count value and update the state.</p><p>After the explanation of source codes, let’s see how application works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*uDWTMf0iK--mwXeFxCQ5-g.gif" /><figcaption>How application works</figcaption></figure><p>First of all, application works fine without any issue. It provides its requirements which are rendered count and increase the count value plus render the best friends and add new best friend. Let’s look at Console what happens in their first render.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q74ZsJDBLDTfe4A0rLMdag.jpeg" /><figcaption>First render of components</figcaption></figure><p>After that let’s check what is going on when we update count state by increasing button. As I mentioned above, count state is created in App.js and passed to Counter component. We expect that when count state is updated, App will re-render. Everything is fine up until this point. Let’s check what is happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbUjRUZHLIjBIJ4vsLaaXw.gif" /><figcaption>Count state update</figcaption></figure><p>Even if we do not make any changes to the MyBesFriends component, we can see that the MyBesFriends component is also rendered again because our App component is re-rendered by count state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ettarIEFJezz-ZZKlwkqTw.gif" /><figcaption>myBestFriendList state update</figcaption></figure><p>Also, there are the same situation for MyBestFriend component. When we update myBestFriendList state, even if we do not make any changes to the Counter component, we can see that the Counter component is also rendered again.</p><p>When we update the count state, there is no reason to have rerender for MyBestFriend component. It supposes to be just App.js and Counter component re-render. There is also the same situation in point of MyBestFriend component.</p><p>Although such situations do not seem like a problem in small applications, these seemingly minor problems can seriously affect the performance of your application as your application grows. Here is the point that everything begins. So we can be able to avoid this effect of performance loss by using React.memo().</p><h3>React.memo()</h3><p>If the functional component takes the same props and renders the same result, we can use the React.memo() to skip redundant re-renders. Let’s explain how React.memo() accomplished it. <br>React.memo() use the shallow comparison to compare the previous prop and the current prop. If the previous prop and the current prop are equal in the case of primitive types like string, numbers, and in the case of object it just checks the reference of the previous prop and the current prop. If the props are equal then the shallow comparison returns true otherwise false. After that, if the result of the shallow comparison is true, React.memo() skips the re-render due to the memoization of React.memo().</p><h3>How To Use React.memo() In Our Project</h3><p>Firstly, React.memo() is a higher-order component. We can wrap the functional component that renders the same result with the given same props. When we update the count state, to avoid re-render of MyBestFriends component we will wrap MyBestFriends component with React.memo(). In this way, even there is not any change on myBestFriendList state in App.js, we will prevent MyBestFriends component from re-render.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0a13d585daf1d40818230596562e8bbc/href">https://medium.com/media/0a13d585daf1d40818230596562e8bbc/href</a></iframe><p>So, React.memo() If the props values sent to the MyBestFriends component were the same as the previous props values when the component was rendered, rendering the component allowed us to skip. Thus, it prevented the MyBestFriends component from rendering again until the props values were sent to the component change. Let’s see the result by updating the count state again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mN2v10vMvasHHQOQovcYLw.gif" /><figcaption>Count state update and only re-render Counter component</figcaption></figure><p>As you can see from the above only Counter components re-render due to React.memo() memoization technique. The MyBestFriends component is not re-rendered because the previous props reference values of the MyBestFriends component are the same as the current props reference values. Let’s dive into implementing React.memo() for Counter component to avoid re-render Counter component because of myBestFriendList state update.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/64b4ab9df6b2582555b9d01314717a01/href">https://medium.com/media/64b4ab9df6b2582555b9d01314717a01/href</a></iframe><p>After that see the result when we update myBestFriendList state. We expect that only have re-render MyBestFriends component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kXjkuUvPkvVx6Ypq85ayCw.gif" /><figcaption>myBestFriendList state update and only re-render MyBestFriends component.</figcaption></figure><p>And we got the same result which only has re-render for MyBestFriends component.</p><h3>When We Use React.memo()</h3><p>1- If we have a functional component that takes the same props and renders the same output.<br>2- The component is redundant re-rendered, this affects the performance of your application as your application grows.</p><h3>When We Don’t Use React.memo()</h3><p>1- If the component is class-based then use the shouldComponentUpdate().<br>2- If we have a functional component that takes different props and renders different outputs.<br>3- If we wrap all functional components then it causes a performance issue.</p><p>Let’s think about it, we have 100 components and all of them take different props. Remember that, React.memo() uses shallow comparison to compare the results of the props. If the current props and previous props are equal ( for primitive type, for objects check the references) then the shallow comparison returns true otherwise returns false. But in this scenario, the rendered output is always different due to different props so we know the shallow comparison returns are always false. The shallow comparison runs 100 times for nothing. In the conclusion, using unnecessary React.memo() harms the app.</p><h3>Authors</h3><p>Gökhan Samet Albayrak: <a href="https://www.linkedin.com/in/g%C3%B6khan-samet-albayrak-3b1229152/"><em>Linkedln</em></a> — <a href="https://github.com/gokhansamet"><em>Github</em></a>—<a href="https://gokhanalbayrak43.medium.com/"><em>Medium</em></a></p><p>Mustafa Batuhan Bayoğlu: <a href="https://www.linkedin.com/in/mustafa-batuhan-bayoglu-0a9001176/"><em>Linkedln </em></a>— <a href="https://github.com/batuhanbay?tab=overview&amp;from=2021-12-01&amp;to=2021-12-20"><em>Github</em></a></p><blockquote><a href="https://github.com/batuhanbay/Medium-Projects/tree/main/Memoization/react-memo"><strong><em>Github Link For Example Project </em></strong></a><strong><em>Which Used In This Article</em></strong></blockquote><p>Lastly, I wrote this article with Gökhan and super thankful to him. We hope that this article make you have an idea about React.memo() and add value to you. We are fully open the feedback if there is any point you want to share with us.</p><blockquote><a href="https://gokhanalbayrak43.medium.com/react-memoization-react-memo-nas%C4%B1l-kullan%C4%B1l%C4%B1r-970d78edee58"><em>The Turkish version of the article</em></a></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3d4QE8r5sqsJ0UD5J1%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2F3d4QE8r5sqsJ0UD5J1&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2F3d4QE8r5sqsJ0UD5J1%2Fgiphy-downsized-large.gif%3Fcid%3D790b761189017f880aae1070fbf687741c4a6f07c23363af%26rid%3Dgiphy-downsized-large.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="321" frameborder="0" scrolling="no"><a href="https://medium.com/media/848ac5d6768ab05a7cdffde726b29f08/href">https://medium.com/media/848ac5d6768ab05a7cdffde726b29f08/href</a></iframe><h3>Resources</h3><ul><li><a href="https://www.w3schools.com/react/react_memo.asp">React Memo</a></li><li><a href="https://epicreact.dev/memoization-and-react/">Memoization and React</a></li><li><a href="https://www.educative.io/courses/grokking-dynamic-programming-patterns-for-coding-interviews/m2G1pAq0OO0">What is Dynamic Programming? - Grokking Dynamic Programming Patterns for Coding Interviews</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8aeba11dc51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selectors, Display Property, Position Property In CSS]]></title>
            <link>https://bayoglubatuhan.medium.com/selectors-display-property-position-property-in-css-c7b2040f95c1?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7b2040f95c1</guid>
            <category><![CDATA[website-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[html-css]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Sun, 13 Dec 2020 14:44:15 GMT</pubDate>
            <atom:updated>2020-12-13T14:44:15.304Z</atom:updated>
            <content:encoded><![CDATA[<h3>Selectors</h3><p><strong>Class Selector</strong></p><p>In this article I want to mention other things that you can use as selectors in order to make more specific changes to our web site by using CSS . We have been using tag selectors since we begin to use Internal and External CSS in our projects. For instance, We have 2 different images and we would like to have different background color. If we would use tag selector for style our images, What would have happened? Obviously, Both of our images would have same background color, wouldn’t it ? Therefore , We will use .class selector in order to avoid that problem. Okay than let’s see how it is doing. I have attached simple html component screenshot at below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UqukmfinVGiVjyfqVj20Uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*C5I-5SJ9CmSdQatEsOwsTg.png" /></figure><p>And this html component has stylesheet which name is “style” at left side of page. I have given some basic properties for our webpages. The goal of the .class selector is that select all elements which belong to a particular class attribute. To select the elements with a particular class, use (.) character with specifying class name in our stylesheet. And implement different css properties for that elements. I attached display of these 2 component at below in order to make it more clear before using .css selector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r8mq4YSemhhmYk2B274Wsw.png" /></figure><p>As we have mentioned that we would like to have different background color of images. We will add class = “ “ attribute in the elements which we want to select with a particular class. Obviously , we will add class attribute at our images element. Moreover, An element might be able to multiple class name for various styles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22EfnryWhQvjbRLgWeTuTg.png" /></figure><p>To access element which had class attribute , we have to use (.) character with specifying class name in our external css stylesheet. As you can see at below from screenshot there are two separate class name ( hamburger , pizza) and one common class name ( circular )at 2 of images element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*UtnCZs_7uG7kc3j8UtUrmw.png" /></figure><p>Class selectors stronger than tag elements. If you inspect your page, You will see that css style which from img tag selector, crossed out. Because Class selectors have more priority order compare to tag selectors. Okay than , We expect that hamburger images has black background color , pizza images has orange background color and both of our images have circular shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQQ5EotnfkNTmXk4NAXNag.png" /></figure><h4>Id Selector</h4><p>So use classes when we want to apply the same style to a group of related items. And use the id to apply a specific style to a single element on our web page. The <strong>ID selector</strong> matches an element based on the value of the element’s id attribute. In order for the element to be selected, it’s id attribute must match exactly the value given in the selector. You should think kind of like name versus passport where anybody can have the same name. However, there is only one person with particular passport number and that uniquely identifies to across all of the other humans in the world. So the similarities are they are both used to identify HTML elements that we want to style and CSS does not actually care what we use. Okay than , Let’s implement id selector to our project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9n3SbXNk8qExlO0weyJupw.png" /></figure><p>A CSS ID selector contains a “#” immediately followed by the ID value, which must be an identifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*vcIpdvgZ74FMhPcE3_7Egw.png" /></figure><p>And I attached display of the using all selectors at below. I highly recommend to try it out yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_rR_cQdBMp5Jz-3rEdiRBg.png" /></figure><h4>Display Property</h4><p>The Display property in CSS defines how the components(div, hyperlink, heading, etc) are going to be placed on the web page. As the name suggests, this property is used to define the display of the different parts of a web page. There are a few important values for display properties such as block, inline, inline-block etc.</p><p><strong>Display Block Property</strong></p><p>It is used to displays an element as a block element. And it always starts on a new line and takes up the full width available. Moreover, block element stretches out to the left and right as far as it can. Also, we can add padding, margin for all of the side of block element. There are bunch of elements which we have already used for our projects. Examples of that elements &lt;div&gt;…&lt;/div&gt;, &lt;h1&gt;…&lt;/h1&gt; — &lt;h6&gt;…&lt;/h6&gt;, &lt;p&gt;…&lt;/p&gt;,&lt;form&gt;…&lt;/form&gt; etc. How do they look when we used them in our projects. Let me show how they do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_UWtkuCR8WHj5jCCkWxPA.png" /></figure><p>As you can see from left side , there are heading , paragraph and form elements we have in our html page. The point that block element stretches out to the left and right as far as it can. I put style attribute on each element by using inline css in order to see more clear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9rqjgAK3FiYsMQSQ80hfw.png" /></figure><p>There is one point that is important as well. What if we would like to put our elements next to each other. Property of block-level elements can not be next to each other. However, we can figure it out with different display properties.</p><p><strong>Display Inline Property</strong></p><p>Displays an element as an inline element (like &lt;span&gt;). Any height and width properties will have no effect. Before showing display inline property, we should take look inline element. An inline element does not start on a new line and only takes up as much width as necessary. Now while we can have spans that are nested inside paragraph tags or h1s or whatever else it may be (block-level element), you can also have them as standalones. If we select our span element and we also give it a background color, then you can see that these elements are inline. Let me show it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckWyNxeTNt7vnfCO7u31pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lsbbV3v0wBEPrWAUIxk4uA.png" /></figure><p>As we mentioned that any height and width properties will have no effect. For example we cant give particular any height span element. Okay than , I have attached new example at below to see display inline property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*9MCLY_gWVtyAGt4dhhabqg.png" /></figure><p>I wanted to have 3 box by using basic Internal CSS. I have created my boxes by using &lt;div&gt;…&lt;/div&gt;( div tag is used to divide or section off content on a web page and is also block element). According to features of block elements I have given width, height properties, haven’t it? Than, I have set 2 of my boxes display property as inline and last my box is still block element. Do you expect to display of these boxes as a 200x200 pixels each of box and next to each other? Let’s see how do they display on the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_cMXIPUmC9sg1ULqZvrZg.png" /></figure><p>So we have 2 boxes(Box 1 and Box 2) which are inline element next to each other but does not have any width and height property. On the other hand, we have a box (Box 3) which has width and height property but not next to other boxes. What if we want boxes to give height and width property meanwhile be next to each other? How could we do that? At that point , Inline-Block Display property becomes our developer life.</p><p><strong>Display Inline-Block Property</strong></p><p>This property uses the both properties that I have mentioned at above , block and inline. So, this property aligns the elements inline but the difference is that it can put the height and the width of block. Basically, this will align the element both in block and inline fashion. Let’s head to see how do they do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*uXilL1HVgsqL5shAMx6N7g.png" /></figure><p>I wanted to have 3 box by using basic Internal CSS again . According to features of inline-block elements I have given width, height properties, haven’t it? Than, In order to display of these boxes as a 200x200 pixels each of box and next to each other , I set display property as inline-block on each boxes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Xy7fo-Mzz01-XQnZ7cctA.png" /></figure><p>In a conclusion , We have managed to have 3 boxes which can be set any width, height and next to each other.</p><h4>Position Property</h4><p>The position CSS property sets how an element is positioned in a document. Elements are then positioned using the top, bottom, left, and right properties. However, these properties will not work unless the position property is set first. They also work differently depending on the position value. There are five different position value</p><ol><li>Static</li><li>Relative</li><li>Fixed</li><li>Absolute</li><li>Sticky</li></ol><p>For this article we will cover static, relative and absolute values.</p><p><strong>Position: static</strong></p><p>This is the default value of position property. Static positioned elements are not affected by the top, bottom, left, and right properties. Furthermore, The element is positioned according to the normal flow of the document</p><p><strong>Position: relative</strong></p><p>The element is positioned according to the normal flow of the document, and then offset relative <em>to </em>itself<em> </em>based on the values of top, bottom, right and left. There are two important things that we have to remember when we are dealing with relative positioning. The first thing is that when we move an element that has a relative position, it does not affect the position of any elements on the screen. The second thing to remember is that when we change the coordinate properties (top, bottom, left or right ), we are taking the top of where that element used to be located. Let me show how it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*P4Fnzas8vYfsU-pCD0CFsw.gif" /></figure><p>I have set position of two boxes as static (Box 1 and Box 2) and position of last box as relative. When I set position as relative, it does not make any affect on 3rd box because of having not new value of coordinates. When I set to value of bottom and left properties. My box has moved new location according to new value of bottom and left properties. There were two important things that we should remember when we are dealing with relative position. As you can see that third box did not affect the position of any other box on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*Nv5C9xiVRnTso8qq8pyNOQ.png" /></figure><p>And Box 3 which relatively-positioned element moved to be adjusted away from its normal position</p><p><strong>Position: absolute</strong></p><p>The element which has absolute position , is removed from the normal document flow. And the element does not have space in the page layout. It is positioned relative to its closest positioned ancestor(parent element). If there is not any parent element , it is placed relative to the initial containing block. Same as positioning relative element ,Its final position is determined by the values of top, bottom , left and right. This values create a new stacking context when the value of z-index is not auto. The margins of absolutely positioned boxes do not collapse with other margins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*QG-aQLhG_w2bop_4Y2gXKg.png" /></figure><p>For example, I would like to have 3 boxes. One of box will be ground for other two boxes. In order to do this property, I will set position of ground box(Box 1) as relative. Than rest of my box’s(Box 2 and Box 3) position property needs to set as absolute. So, I will provide to have position relative the to its ancestor(parent element) which is Box 1. After that , I can be able to be positioned my Box 2 and Box 3 as much I want on the ground by using top, bottom ,left and right properties value. From our example which is at left side. Box 2 and Box 3 was set (0,0) coordinates of Box-1 . You can see display of this example at below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSIr8s-eMc6oXYypRQ-wTQ.png" /></figure><p>Okay than , What if we would like Box 2 and Box 3 to touch on their corner. There is just basic math calculation left to do it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*i2ilPQSjU0u4Itm31QJhlw.gif" /></figure><p>I hope that anyone who has read this article, enjoyed and catch some points from article. Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7b2040f95c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to CSS]]></title>
            <link>https://bayoglubatuhan.medium.com/introduction-to-css-85171b3458e2?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/85171b3458e2</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Wed, 09 Dec 2020 11:10:48 GMT</pubDate>
            <atom:updated>2020-12-09T11:27:36.591Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*2o0vmpMogg2AI0_8" /></figure><p>Now the problem really comes along when we start messing around with the layout using just HTML because as we have said in order to change our layout for our web site so that we can have text and images that exist side by side. At this point we have to use tables. And the problem with tables is that they are wordy. We have to write a lot of code in order to do something very simple which is displaying that image next to your h1 and your paragraphs, having it on the same horizontal level.</p><p>Moreover, If you started getting into more complex table layouts you had to embed tables within tables in order to get more columns and more rows and more flexible layout and the whole thing just became this horrible mess. So that is why we are going to have started using something called Cascading Style Sheets. After using CSS , Our websites will be more powerful for layout. As you can understand that we have used a couple of times layout. Because only purpose of CSS is that style our Mark-up Language in our web page.</p><h3>Adding CSS in our HTML Document</h3><p>CSS can be added to HTML documents in 3 ways:</p><ul><li><strong>Inline: </strong>By using the style attribute inside HTML elements</li><li><strong>Internal :</strong> By using a &lt;style&gt;…&lt;/style&gt; element in the &lt;head&gt;…&lt;/head&gt; element</li><li><strong>External: </strong>By using a &lt;link&gt; element to link to an external CSS file</li></ul><p>The most common way to add CSS, is to keep the styles in external CSS files. However, We will try to cover 3 of them.</p><h4><strong>Inline CSS</strong></h4><p>This kind of style is specified within an HTML tag using the style attribute. Additively, Inline CSS is used to apply so specific or unique style for element which would be heading , paragraph something like that. Let me show you how we implement to inline CSS in Web Pages</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*YE-_2EkNWw8u3iT13T3YIA.png" /><figcaption>Example 1</figcaption></figure><p>As you can see from screenshot which is at above, There are body element, heading element and paragraph elements. By using inline CSS in body of HTML elements, We have changed some properties such as color, background-color and font-size. You might be wonder how could I know different properties. I highly recommend you to read Documentation of CSS properties. That is How you can figure it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*TvlZmin_ROlzESPEokOZaw.png" /><figcaption>Display of Example-1</figcaption></figure><p>However, there is disadvantage to use inline CSS. As we have mentioned that Inline CSS is used to apply so unique style for element. What if we would be able to style repeatedly HTML elements. You would think that I can put style attribute for each repeatedly HTML element. But, It is really painful and is getting more complicated to style and when you have big project there is no way to control your stylish of web page. At this point Internal CSS becomes our Web Developer life.</p><p><strong>Internal CSS</strong></p><p>An internal CSS is used to define a style for a single HTML page. An internal CSS is defined in the &lt;head&gt;…&lt;/head&gt; element tags of our HTML page, within a &lt;style&gt;…&lt;/style&gt; element. By using Internal CSS we will set background color of our &lt;body&gt;…&lt;/body&gt; element , the text color of all the &lt;h1&gt;…&lt;/h1&gt; elements and the text color of all the &lt;p&gt;…&lt;/p&gt; elements on our page .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*6J9EQCpATE5tt5zQFIgWEA.png" /><figcaption>Example-2</figcaption></figure><p>As you can see from screenshot which is at above, There are head and body element.(You should be familiar boilerplate of HTML) In the body section there are heading element ,paragraph elements and list element. By using Internal CSS in head section of HTML document , We have changed some properties such as color, background-color and font-size and other properties. You might be able to think that Why Do we prefer to use Internal CSS instead of Inline CSS. The key is that We would have tons of repeatedly HTML elements and Anyone does not want to style one by one. In order to fully understand try it out one project by yourself and make practise regarding topic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jzCYzQ2PzokiCUh9cuf3g.png" /></figure><p>However, There is a disadvantage of Internal CSS as well. We have mentioned that We implement Internal CSS style for a single HTML page. What if we have Web Site project and web site consist of multiple pages? You might be think copy and paste &lt;style&gt;…&lt;/style&gt; into every each HTML page. Of course you could do this way but it does not recommended by Web Developers. Okay than, How do we manage to implement CSS to another HTML pages. At this point , External CSS becomes our developer life.</p><h4>External CSS</h4><p>An external style sheet is used to define the style for many HTML pages. In order to use an external style sheet, we must add a link to it in the &lt;head&gt;…&lt;/head&gt; section of each HTML page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*IjnWpAcVVZkrzqlWUNHxLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*eZBrNKPSgfiEfd3yQA0ejA.png" /></figure><p>CSS property written in a separate file with .css extension. Also CSS should be linked to the HTML documents using &lt;link&gt; tag. This means that for each selected element from developer , style can be set only once and that will be applied across HTML pages. From left side as you can see that we linked our External CSS index.html and contact.html</p><ul><li><strong>rel</strong> attribute specifies the relationship between the current document and the linked document. And it is required attribute for link element.</li><li><strong>href</strong> attribute is used to specify the location of the external style sheet file.</li></ul><p>The result of linked external CSS to our different html pages is provide beautiful website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9zPiD4HK6Z7pRdpywWuIA.png" /><figcaption>Display of index.html</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYAopXmacYBTZOyFFVG1lA.png" /><figcaption>Display of contact.html</figcaption></figure><p>In the following articles, we will take look more closer to CSS properties. Moreover. Articles is going to based on real projects. Thanks for reading my article.</p><p>Resources: <a href="https://www.w3schools.com/html/html_css.asp">https://www.w3schools.com/html/html_css.asp</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/CSS">https://developer.mozilla.org/en-US/docs/Web/CSS</a>, <a href="https://devdocs.io/css/">https://devdocs.io/css/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85171b3458e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML ELEMENTS AND MORE DETAILS]]></title>
            <link>https://bayoglubatuhan.medium.com/html-elements-and-more-details-42c9bffccf0b?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/42c9bffccf0b</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Fri, 04 Dec 2020 17:32:08 GMT</pubDate>
            <atom:updated>2020-12-09T11:23:11.465Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Anatomy of an HTML Tag</h3><p>As we already have been repeated that HTML is the foundation of Websites and other components besides HTML are generally used to describe a web page’s appearance/presentation (CSS)or functionality/behaviour (JavaScript).On the other hand, as we already have been mentioned that HTML is the Mark-up Language to annotate text, images, hyperlinks and other contents for display in our Web browser. We should pay attention on this point again and again .That mark-up language includes special “elements” such as &lt;head&gt;…&lt;/head&gt;, &lt;body&gt;…&lt;/body&gt;, &lt;footer&gt;…&lt;/footer&gt;,&lt;h1&gt; …&lt;/h1&gt;,&lt;br&gt;, &lt;a&gt; and many others.</p><p>If you take look these elements more closer according to their syntax . You should have realized that there is a few things common compare to each other. An HTML elements are set off from other texts by “tags”, which consist of the element name surrounded by “&lt;&quot; and &quot;&gt;&quot;. These tags make requests to the browser asking it to structure and display our plaintext in way that we wanted it to be shown. The name of an element inside a tag is case insensitive. It can be written in uppercase, lowercase, or a mixture. For example, the tag can be written as &lt;header&gt;….&lt;/header&gt;, &lt;Header&gt;….&lt;/Header&gt;, or &lt;hEAder&gt;….&lt;/hEAder&gt;, in any other way. Additively, the tag would be exist in 2 way. First way is that the tag consists<em> </em>opening tag<em> </em>and closing tag and the our plaintext is written between these 2 tag. You can see the example of this type at below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*kMVRmph65ha5LWzcutz9ZA.png" /><figcaption>Opening Tag and Closing Tag Illustration</figcaption></figure><p>Second way of consist tag is that consists<em> self-closing </em>tag. It is used to communicate lack of content in between the opening and closing tags such as &lt;br&gt;(stands for line break),&lt;hr&gt;( stands for horizontal rule).In order to make it more clear , I attached another image at below.</p><figure><img alt="Self-closing Tag illustraion" src="https://cdn-images-1.medium.com/max/671/1*lXrmBn-3TzhkSgXatEU7iA.png" /><figcaption>Self-Closing Tag Illustration</figcaption></figure><p>After all of this information , you would be able to think that how can I know which elements consists of opening tag and closing tag or self-closing tag. At that point , reading documentation becomes our developer life.</p><h3>Text Fundamentals</h3><p>One of main jobs of HTML is to give text structure and meaning also known as semantics so that a browser can display our text in way that we wanted it to be shown. We will take look the meaning of semantics for us. The way that <a href="https://developer.mozilla.org/en-US/docs/Glossary/HTML">HTML</a> can be used to structure a page of text by adding headings and paragraphs, emphasizing words, creating lists, and more.</p><p>Most structured texts consist of headings and paragraphs. Whatever you read , it does not matter. It might be magazines, newspapers, book etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Dllc3YTwTGWN4gP-" /></figure><p>The headings and paragraphs makes the reading experience easier and more enjoyable in our web pages. How do we do that by using HTML?</p><h3>Heading</h3><p>&lt;h1&gt;…&lt;/h1&gt;,&lt;h2&gt;…&lt;/h2&gt;,&lt;h3&gt;…&lt;/h3&gt;,&lt;h4&gt;…&lt;/h4&gt;,&lt;h5&gt;…&lt;/h5&gt;,&lt;h6&gt;…&lt;/h6&gt;</p><p>There are 6 elements to represents headings. You might be able to think why do we need 6 type of heading element in our web page. Answer of the question is super basic. Each element represents a different level of content in the document. &lt;h1&gt;…&lt;/h1&gt; represents the main heading, &lt;h2&gt;…&lt;/h2&gt; represents subheadings, &lt;h3&gt;…&lt;/h3&gt; represents sub-subheadings, and so on. It is recommended that we should only use &lt;h1&gt;…&lt;/h1&gt; one time for each page.</p><h3>Paragraph</h3><p>&lt;p&gt;…&lt;/p&gt;</p><p>The &lt;p&gt; tag defines a paragraph. Browsers automatically add a single blank line before and after each &lt;p&gt; element.</p><h3>Lists</h3><p>HTML lists allow web developers to group a set of related items in lists. We encounter lists in everywhere in web pages. We can say that there are 2 type of list. Frist one is Unordered List and Second one is Ordered Lists.</p><p>Unordered List: Starts with &lt;ul&gt;…&lt;/ul&gt;. Each items that we want to list , put between these tags by using &lt;li&gt;…&lt;/li&gt;. Let me give real example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*2Cx3-SO9ZGu0iM4SfqfC0A.png" /><figcaption>Example-1</figcaption></figure><p>As you can see from screenshot, there is heading element, paragraph element and unordered list element structed each other. Display of this code is at below. I want you to realize front of items there is bullet mark. That is why we called our list as unordered list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g89ukvjajvwoMW9D6xv1IA.png" /><figcaption>Display of Example-1</figcaption></figure><p>Ordered Lists: Starts with &lt;ol&gt;…&lt;/ol&gt;. Each items that we want to list , put between these tags by using &lt;li&gt;…&lt;/li&gt;. And the list items will be marked with numbers by default. Let me give real example as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*IxHSmTK9RuU5ehV_80aRWw.png" /><figcaption>Example-2</figcaption></figure><p>As you can see from screenshot, there is heading element, paragraph element and ordered list element structed each other. Display of this code is at below. I want you to realize front of items there are numbers. That is why we called our list as ordered list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvppaoMT7dgPjjou6ussrA.png" /><figcaption>Display of Example-2</figcaption></figure><p>Additively, It is totally appropriate to nest one list inside another list. It does not matter which type of lists that you want to nest each other. I have attached the code at below. You can be able to try it yourself and spend time on it. Than You would do your nested list by yourself!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*VeuhNj6XPoOBrVnTRvNehA.png" /><figcaption>EXample-3</figcaption></figure><h3>Emphasis</h3><p>In human language, we often emphasize certain words to alter the meaning of a sentence, and we often want to mark certain words as important or different in some way. In spoken language, we stress the certain word. In written language we tend to stress words by putting them in italics. HTML provides various semantic elements to allow us to mark up emphasize. However, we will take look &lt;em&gt;…&lt;/em&gt; (emphasis) element to mark up instances. When we use &lt;em&gt;…&lt;/em&gt; in our web page ,content will be recognized by screen readers and spoken out in a different tone of voice. Let’s try it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLQCVfhNTGa9yiqpihkuRQ.png" /><figcaption>Example-4</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXLcxbqe_N8IFN25RamTLA.png" /><figcaption>Display of Example-4</figcaption></figure><h3>Strong</h3><p>To emphasize important words, we tend to stress them in spoken language and <strong>bold</strong> them in written language as well. In HTML we use the &lt;strong&gt;…&lt;/strong&gt; element element to mark up our content . As well as making the document more useful, these are recognized by screen readers and spoken out a different tone of voice as well. Let me show you how we use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKcn4XweXBCY0ldZR0yUkQ.png" /><figcaption>Example-5</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqcNH4PAZvvdFBz8Mbg1vQ.png" /></figure><p>In conclusion, this article should have given you a good idea of marking up text in HTML. Additively, There are more semantic elements to cover in this Web World. We have covered some of important semantic elements at least. In the following article we will take look more closer to hyperlinks, images, tables and forms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42c9bffccf0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML-5 Fundamentals]]></title>
            <link>https://bayoglubatuhan.medium.com/html-5-fundamentals-f988194ba15e?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/f988194ba15e</guid>
            <category><![CDATA[markup-language]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[boilerplate]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html5-development]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Sat, 28 Nov 2020 13:42:46 GMT</pubDate>
            <atom:updated>2020-11-28T14:54:49.186Z</atom:updated>
            <content:encoded><![CDATA[<p>What you use as your browser doesn’t matter; it could be Chrome, Safari, or Firefox. They all have a single purpose, and that’s to interpret your files, such as your HTML files, CSS files, JavaScript files into a website that should be displayed. It’s important to remember that HTML is the foundation of all websites. Additionally, you won’t see websites created using just a CSS file or just a JavaScript file, but you can create websites using just an HTML file. To prove that, you can head to http://web-old.archive.org/ web site and take a look at 1990’s websites that consist of HTML and simple CSS components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/0*1jrb6EtapLG81Fjz.gif" /></figure><h4><strong><em>Introduction to HTML</em></strong></h4><p>Therefore, We need to take a look a little bit closer at the HTML. What does HTML stand for? Answers are that HTML stands for Hypertext Mark-up Language. However, the significant part is the word mark-up because there are many mark-up languages such as XML, GML. All of these languages share a common history. What is the meaning of Mark-up Languages? What Do They Provide Us? Essentially, In computer text processing, a mark-up language is a system for annotating a document in a way that is syntactically distinguishable from the text. Let me give an example when you read the text of the material book in the classroom; you have seen one of the bold words compared to other words. How would you read this word? You would read this word with stress reading, wouldn’t you? This is the same way of working Mark-up languages.</p><p><strong>STRUCT OF HTML FILE</strong></p><p>What is the HTML boilerplate? In Programming, we talk about boilerplates quite frequently, and it is similar to having a code template, something that we will reuse for different projects. Let’s take a look at this boilerplate line by line to understand what it all does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*76mYJfGBS4pOnuq659czvA.png" /><figcaption>Boilerpalte of HTML 5</figcaption></figure><p>&lt;!DOCTYPE html&gt; : In first line is where we declare the document type. And this tells the browser when it opens up this file, what is the version of HTML that we’re using. We work with latest version which is HTML 5. However ,if you would like to see previous version of HTML boilerplate. You should type html:4t than you would have HTML-4 Boilerplate.</p><p>&lt;html lang = “ eng”&gt;… &lt;/html&gt; : The next line in our code, it’s an HTML tag. And this tells the browser that everything in between the opening and closing tags is going to be HTML code. The lang =”en” attribute is used to identify the language of text content on the web. Okay than , what does that html tag consist of? &lt;head&gt;…&lt;/head&gt; and &lt;body&gt;…&lt;/body&gt; tags.</p><p>&lt;head&gt;…&lt;/head&gt; : Well, it consists of a head and a body. Now the head is the part of the HTML file that holds information about the webpage and it tells the browser how it should handle the page. In the head part there are some tags such as meta and title.</p><p>&lt;title&gt;…&lt;/title&gt; :<strong> </strong>Title tag in screenshot that tells the browser what is the title of this particular document or this particular page. In the screenshot as you can see , we have put title of the web site is <em>Here is the Title. </em>Let’s head to see how it looks in the page?<em> </em>Ignore that Here is the content of website. We will have covered that on later steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Re79URcoTlEaP4Mj2v89A.png" /></figure><p>&lt;meta ….&gt;: There is also this meta element. There are quite a few different meta elements, but the meta elements&#39; meaning gives extra metadata or associated data to your HTML document. And in this case:<br>&lt;meta charset=&quot; UTF-8&quot;/&gt;: when we declare the &quot;charset&quot; as &quot;UTF-8&quot;, we are telling our browser to use the UTF-8 character encoding, which is a method of converting your typed characters into machine-readable code.<br>&lt;meta name=”viewport” content=”width=device-width, initial-scale=1.0&quot; /&gt; : This gives the browser instructions on how to control the page’s dimensions and scaling. The width=device-width part sets the page’s width to follow the screen-width of the device (which will vary depending on the device). The initial-scale=1.0 part sets the initial zoom level when the browser first loads the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*76mYJfGBS4pOnuq659czvA.png" /></figure><p>&lt;body&gt;…&lt;/body&gt; : The &lt;body&gt; tag defines the document’s body. The &lt;body&gt; element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. From our screenshot, in between the opening and closing body tags, a heading tag is written: &quot;Here is the content of our website&quot; in-between heading opening and closing tags. Obviously, it will open up and display on our website, as you can see from the screenshot which t below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Re79URcoTlEaP4Mj2v89A.png" /></figure><p>After all, learning what the boilerplate of HTML 5 is. We will learn new element tags that we use in body tags for our websites&#39; content in the following articles. Moreover, We will try to cover them in detail.</p><p>References : <a href="https://www.w3schools.com/css/css_rwd_viewport.asp">https://www.w3schools.com/css/css_rwd_viewport.asp</a>, <a href="https://www.w3schools.com/tags/tag_body.asp#:~:text=The%20tag%20defines%20the,element%20in%20an%20HTML%20document">https://www.w3schools.com/tags/tag_body.asp#:~:text=The%20tag%20defines%20the,element%20in%20an%20HTML%20document</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f988194ba15e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Do Web Pages Work Exactly?]]></title>
            <link>https://bayoglubatuhan.medium.com/how-do-web-pages-work-exactly-dacac5395132?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/dacac5395132</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 11:46:35 GMT</pubDate>
            <atom:updated>2020-12-06T19:01:18.035Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>First of all, we have already learnt how does internet work exactly from previous article. What is the next topic that is getting closer to web programming ? Obviously, you will understand from the title of this article that we will learn how do the web pages work ? The most important part before becoming a web developer, is that we should have a knowledge about different topics which are related to integrity of the main topic. This is why we will take look closer to the process of web pages work before coding something.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*nazhsBNwRzTNY4Tk.gif" /></figure><p><strong>We all know that we need a browser to see web pages, don’t we? And this browser can be Chrome, Safari, Firefox etc . Those are all pieces of software that allow us to look up the IP address of our website and able us to receive data that it can render into beautiful websites that we can see. Now, the data that we receive from the server usually consists of three types of files(components). These are HTML, CSS, and JavaScript in order. And you would most likely have come across those types of files or those words before, because they are so common and there are so integral for how websites work. I attached the summary of the these 3 types of components and reflected them in the real world at the last table’s row in order to show what they are doing. After that, the following articles will dive us into more details of components, one by one.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*YbWln06g8KJmCsOcHhlnqA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dacac5395132" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fundamentals Web Programming]]></title>
            <link>https://bayoglubatuhan.medium.com/fundamentals-web-programming-abe66a23c114?source=rss-5f7f54ccc773------2</link>
            <guid isPermaLink="false">https://medium.com/p/abe66a23c114</guid>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mustafa Batuhan Bayoglu]]></dc:creator>
            <pubDate>Mon, 09 Nov 2020 09:51:45 GMT</pubDate>
            <atom:updated>2020-11-09T17:10:16.595Z</atom:updated>
            <content:encoded><![CDATA[<p>Well. Hi to everyone! Before starting to explain the topic I would like to introduce myself. I am Mustafa Batuhan Bayoglu and I am studying Computer Engineering as 3rd grade at Osmangazi University. Moreover, I would like to mentioned that I am always eager to share new knowledge to people as much as I can. Okay than let’s get start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jTPmSlGwiJ0S6Oqd" /></figure><p>First of all , Where should we start ? Should we get begin with coding directly? or Should We Cover Fundamentals of Web Programming? Of course the second choice makes more sense than the first, isn’t it ? So , What are the fundamentals of Web Programming? To begin, we should wonder how does internet work? A lot of people are thinking that internet is like a cloud , something that is hanging around in the sky. It is really complex and difficult to understand, but actually it is not a cloud at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*llG0MaztVD6i74mL" /></figure><p>Let me explain with and example that includes two steps. For instance, you are sitting on your seat and typing www.google.com on your browser. When you clicked on the search button or press the enter key , the device that you are using is sending a request to an Internet Server Provider (ISP is the general name given to companies that provide internet connection for personal users or workplaces for any fee such as Turk Telekom). After this, the Internet Server Provider relay a request to the Domain Name Server. You can think that DNS is essentially just a souped up phonebook. Then, the DNS server will look up in its database to know what is the exact IP address of that website that you are trying to access. And once the DNS server finds the IP address, it sends it back to your browser. So now, you know the exact address where you can find the Google homepage. Therefore we finished the first step process. You can see bellow the details of the different steps by order. It will help you to understand more easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*6Tr0Z1TxcNnHeQrvjnt_DA.png" /></figure><p>Afterward, the second step is going to get started. The next thing that happens, is that the browser will send a direct request to that address through your internet service provider. And this message will be delivered by the internet backbone. Bellow you can see all of the underwater cables that are powering the internet and spreading around the world thanks to submarinecablemap.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*Dq4_aFk-2bPPf1KH6g3FYA.png" /><figcaption><strong>Cable repairing which is one of the backbone cable in the ocean</strong></figcaption></figure><p>Via backbone, the message will head over to the server that is located at the address 216.58.210.46 . The computer that is located at that address is obviously the Google server. On the server there is all the files, such as HTML, CSS and JavaScript, that we need in order to see the Google homepage. Then, the server sends back all of those files through the internet backbone and we can see the Google homepage on the browser! I attached the details of second step by order bellow as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*9LvulM79vlOsjx0cd1e5dg.png" /></figure><p><strong>In conclusion the internet is made up of a huge sprawling masses of wires connecting all of the world’s internet users.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abe66a23c114" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>