Home
Search results “Span id style javascript”
CSS Tutorial for Beginners - 27 - The SPAN element
 
03:50
In this video we take a look at the SPAN element.
Views: 89921 EJ Media
HTML video tutorial - 82 - html span tag vs div tag
 
14:36
HTML div tag vs HTML span tag: div tag is a paired tag span tag is a paired tag div tag is a block level tag span tag is a inline level tag Inline tags should exist in context with block level tags. In modern html every html element should be meaningful. h1 indicates heading, p indicates paragraph, b indicates bold etc. we supposed to use right element for right purpose. When there is no meaningful tag present for what we want to achieve then we use div tag. For example there is no tag used to create divisions in the page hence we use div tag. span tag is used to enclose inline contents like text images etc. ======================================================== Follow the link for next video: https://youtu.be/hL93pLKLSLs Follow the link for previous video: https://youtu.be/YwJgtVjG2pg ========= For more benefits & Be up to date =================== Subscribe to "chidres tech tutorials" channel: it's free Visit to Chidre's Tech Tutorials website: https://www.chidrestechtutorials.com Like the Facebook fan page: https://www.facebook.com/ManjunathChidre ======================================================== ========== HTML Questions & Answers ====================== ========================================================
Views: 26542 Chidre'sTechTutorials
Learn HTML code: span
 
01:57
Learn to use the span tag in HTML http://www.technoblogical.com/web-design/ Providing training since last Tuesday http://www.technoblogical.com Thanks for watching!
Views: 47864 Chris Walker
JavaScript: Show and hide DIV's
 
08:06
A video tutorial showing you how to show and hide a div tag using java script Follow us on Twitter: http://www.twitter.com/abell12youtube
Views: 51014 abell12
Видеокурс HTML & CSS. Урок 4. Теги div и span.
 
14:39
Промокод на скидку 15% на все курсы ITVDN- H94BCAB Полный видео курс: http://itvdn.com/ru/video/html-and-css-renewed?utm_source=yb_promo_htmlcssren На видео будет рассмотрен слой в HTML, создание слоев, тег div, размеры слоя, вложенные слои, позиционирование, обтекание, отступы, атрибуты тега div, особенности тега span, форматирование и создание уникального стиля для любого кусочка текста на странице, основы современной верстки страниц. Рекомендованная литература - "Изучаем HTML, XHTML и CSS" Элизабет Фримен Купить на Ozon: http://www.ozon.ru/context/detail/id/22205119/?partner=itvdn_11&from=bar Благодарим всех за лайки, перепосты, добавление в избранное! http://itvdn.com – видеопортал по обучению технологиям Microsoft. А также подписывайтесь на нас в социальных сетях: https://vk.com/itvdn https://www.facebook.com/ITVDN.EDU https://twitter.com/ITVDN/media?lang=ru https://www.linkedin.com/company/6387921?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A6387921%2Cidx%3A1-1-1%2CtarId%3A1438852143751%2Ctas%3Aitvdn https://plus.google.com/u/0/b/105095275137897914412/+ItvdnEDU/posts Свои предложения присылайте на почту: [email protected]
Views: 22823 ITVDN
Divs vs Spans
 
03:39
This video explains the semantic and visual difference between divs and spans in HTML. Code GIST: https://gist.github.com/prof3ssorSt3v3/4e25c75c6e2ff53202a54806e6bccc2e
Views: 665 Steve Griffith
HTML5 and CSS3 beginners tutorial 18 - div and span
 
07:07
In this tutorial I explain the difference between the div and span tags show you how to use them. Don't forget to subscribe: http://www.youtube.com/user/QuentinWatt Social links: ------------------------------------------------------------- Add me on twitter: http://www.twitter.com/QuentinWatt facebook group: https://www.facebook.com/quentin.watt -------------------------------------------------------------
Views: 104883 Quentin Watt Tutorials
HTML div tag Example and Tutorial using CSS
 
09:06
http://www.LittleWebHut.com This video demonstrates how to use the HTML / XHTML div tag and how to style it with CSS. The examples will cover the basic usage for the div tag and demonstrate the CSS color, text-align, background, float, and width properties.
Views: 467424 tutor4u
Курс HTML/CSS. Структура сайтов, теги div, span и другие
 
08:34
Из этого видео вы узнаете: - тег div, тег style - что такое class в HTML, чем отличается class от id - синтаксис CSS - как раскрасить блок - тег span - как понять разницу между блочным и неблочным элементом ********************************************************** С чего начать изучение веб-программирование новичку? Какие НАВЫКИ программирования освоить в ПЕРВУЮ очередь, чтобы получить практические результаты и заказы? узнайте здесь https://fructcode.com/ru/blog/how-to-start-learning-programming-step-one-html-css/?utm_source=yt&utm_medium=yt_fc&utm_campaign=yt_fc ПОЛНЫЙ КУРС ПО РАЗРАБОТКЕ САЙТОВ от новичка до профи - ПРОФЕССИЯ ВЕБ-ПРОГРАММИСТ. Курс построен из шести взаимосвязанных модулей, подходит и для начинающих: 1. HTML/CSS. Адаптивная верстка сайтов. Основные HTML-теги, CSS-стили и создадите верстку сайта Киномонстр. 2. Верстка на фреймворке Bootstrap. Фреймворк - это по сути конструктор, с помощью которого, вы сможете создавать верстку любого веб-сайта в разы быстрее, чем в с помощью классического HTML/CSS. 3. Язык программирования PHP и база данных MySQL. Базовый фундамент для профессионального программиста. 4. Основы операционной системы Linux и контроля-версий кода GIT. Знания необходимые для командной работы. 5. Фреймворк Codeigniter. Запрограммируйте ваш веб-сайт + адаптивная верстка на Bootstrap. 6. Язык программирования Javascript и библиотеки jQuery. Как сделать сайт более оживленным и быстрым. Программирование - увлекательное занятие, которое может освоить каждый! Узнайте подробнее здесь https://fructcode.com/ru/?utm_source=yt&utm_medium=yt_fc&utm_campaign=yt_fc
Views: 912 FructCode
Javascript Siblings - Add Remove Class - Set Active DIV [ With Source Code ]
 
08:03
Javascript Set Active DIV Source Code: https://1bestcsharp.blogspot.com/2017/07/javascript-add-active-class-to-div.html Javascript Tutorials For Beginners ➜ http://bit.ly/2k7NMWq Javascript Course ➜ http://bit.ly/2IvBCFC visit our blog https://1bestcsharp.blogspot.com/ subscribe: http://goo.gl/nRjPKk In This Javascript Tutorial we will see How To Add A Class To an HTML DIV element And Delete the class From The Other DIV Elements Siblings On DIV Element Click And Make It Active Using JS In Netbeans Editor . Javascript Tutorials : How to get value of selected radio button https://www.youtube.com/watch?v=uzwUBDQfpkU How to append Value to an array https://www.youtube.com/watch?v=KVdY8n6lCy4 javascript images slider 1 https://www.youtube.com/watch?v=QkcemPr4xaU Convert String To Number https://www.youtube.com/watch?v=JMfZG7o_QtE JavaScript Show And Hide Input Password Text https://www.youtube.com/watch?v=Cmo9sjx5eFE change div class name in js https://www.youtube.com/watch?v=X_SDJxKI6HE using checkbox with js https://www.youtube.com/watch?v=yFYEHSh2iTQ get And Set Value To An Input https://www.youtube.com/watch?v=AfRHl3soLDg calculate two numbers https://www.youtube.com/watch?v=oDUjP4N_MtQ Search Element In Array https://www.youtube.com/watch?v=LIsjSMr9bJU Add Search Remove Array Element https://www.youtube.com/watch?v=ppLbuVWf6zM Add HTML Table Row https://www.youtube.com/watch?v=FVSfp8yT8lA Get Mouse Position https://www.youtube.com/watch?v=LVi5DN2vtdo Show Text Letter By Letter https://www.youtube.com/watch?v=dbdYazO4IZ4
Views: 10917 1BestCsharp blog
HTML Tutorial - Difference between div and span tag
 
06:43
To Know more details on HTML and CSS visit our website : https://www.bestdotnettraining.com/html-css-online-training-videos ------------------------------------------------------------------ BestDotNetTraining is an MS.NET portal providing high end quality online training courses.We have all topics of MS.NET like C#, ASP.NET, MVC, WPF, WCF etc., covered in-depth. ASP.Net MVC Online training for beginners .Net Online Training for C# tutorial HTML, CSS, Javascript C Programming language please visit our channel: https://www.youtube.com/user/Deccansoft123 This video explains the difference between div and span tag. ’div’ tag is a block level tag which plays a big role in groups various other HTML tags and applying CSS for a group of elements. ’span’ tag is an inline element and it can be used to group inline-elements in an HTML document. This tag also does not provide any visual change on the block but has meaning when it’s used with CSS. For complete playlist of this video please visit: https://www.youtube.com/watch?v=w7V-wtLEfv4&list=PLo80fWiInSIMpdA4nzYZ2-NVWHQpwTmPO About Trainer Mr. Sandeep Soni is a Microsoft Certified Trainer (MCT), MCSD, MCPD and has over 18+ years of experience in teaching technologies, Sandeep has trained over 1,00,000 students across the globe, and has been appreciated and recognized by many corporates for the technology trainings delivered onsite. Sandeep helped many trainees in achieving their career dream by giving them a strong foundation in technology specially MS.NET, and is recognized as the best trainer for online and classroom trainings. He has over 500 hour's of.net videos which cover from basic to advanced and has a huge collection of videos in our library hosted at http://www.bestdotnettraining.com. For FREE .net videos visit http://www.bestdotnettraining.com/freedotnetvideos For Complete FREE HTML and CSS Videos visit http://www.bestdotnettraining.com/html-css-training Playlist of all other courses offered by https://www.bestdotnettraining.com is at https://www.youtube.com/user/Deccansoft123/playlists Please don't forget to leave your valuable comment about the quality of our video
Views: 13380 BestDotNetTraining
JavaScript DOM Tutorial #5 - Changing Text & HTML Content
 
07:59
Hey gang, in this JavaScript DOM tutorial I'll be showing you how we can edit text content and HTML content using two different properties - textContent and innerHTML. ----- COURSE LINKS: + Atom editor - https://atom.io/a + GitHub Repo - https://github.com/iamshaunjp/JavaScript-DOM-Tutorial --------------------------------------------------------------------------------------------- Other tutorials: ----- JAVASCRIPT FOR BEGINNERS: https://www.youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET ----- CSS FOR BEGINNERS: https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT ----- NODE.JS TUTORIALS https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp ----- SUBSCRIBE TO CHANNEL - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1 ============== The Net Ninja ===================== For more front-end development tutorials & to black-belt your coding skills, head over to - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk ================== Social Links ================== Twitter - @TheNetNinja - https://twitter.com/thenetninjauk
Views: 25866 The Net Ninja
JavaScript: Show and hide DIV's (With Animation)
 
06:20
A video tutorial on how to show and hide and DIV tag with a slide effect. http://www.abell12.com Follow us on Twitter: http://www.twitter.com/abell12youtube
Views: 42775 abell12
css id vs class attributes,  when to use id and when to use class, difference between id and class
 
06:22
css3 id vs class attributes, when to use id and when to use class, difference between id and class in css css benefits of using class over id, css3 benefits of using id over class, html id vs class, css id vs class, html class vs id, css class vs id, The Difference Between ID and Class, id vs class tutorial, difference between id and class tutorial,The Difference Between class and id HTML5, CSS3 and JavaScript Tutorials , lessons with examples. Techsith.com id vs class more of a design related question and its a very important one. Overall you will be using more classes then ids. id: think of element that is unique. there is only one id per element. your html validateor would throw and en error if you do use it which means you will not be reusing the same style anywhere else. all the main containers in your HTMLs you should use id because you are not going to repete them . That doesnt mean that you cant use class there. advantage of using is for is as your main namespace. for css this way you can segregate work so your css doesn't messup. for example #leftContainer .button { color:red} which mean all the botton in the left containers are red. class: you can used them freely. any common styles you can define as class. as you can have multiple classes for the same element. and mix and match of the classes will make your css small . for example you can create two divs with same color but diffrent font sizes. Dont forget the attributes. actually id and class are attributes wich special meaning. and you can create your own custome attributes. like myattr. Platforms like angularjs uses them freely. overall i thin its better to use classes then ids especially when you working in a team envirement where you are responsible for a partial html . using id can be riskier if someone else is using the same id in the other part of the html . in css id has higher priority than class for example .....
Views: 81666 techsith
div and span in CSS (Hindi)
 
11:44
Topics: div and span in CSS Make sure you have basic knowledge of HTML before watching Cascading Style Sheet (CSS) Tutorials. You can find out our HTML Complete Video tutorials : http://goo.gl/O254f9 Feel free to share this video: CSS Complete Video Tutorial Playlist: https://goo.gl/1QNdiB Check Out Our Other Playlists: https://www.youtube.com/user/GeekyShow1/playlists SUBSCRIBE to Learn Programming Language ! http://goo.gl/glkZMr Learn more about subject: http://www.geekyshows.com/ __ If you found this video valuable, give it a like. If you know someone who needs to see it, share it. If you have questions ask below in comment section. Add it to a playlist if you want to watch it later. ___ T A L K W I T H M E ! Business Email: [email protected] Youtube Channel: https://www.youtube.com/c/geekyshow1 Facebook: https://www.facebook.com/GeekyShow Twitter: https://twitter.com/Geekyshow1 Google Plus: https://plus.google.com/+Geekyshowsgeek Website: http://www.geekyshows.com/ ___ Make sure you LIKE, SUBSCRIBE, COMMENT, and REQUEST A VIDEO! :) ___
Views: 9791 Geeky Shows
Span and Div Solution - Web Development
 
00:31
This video is part of an online course, Web Development. Check out the course here: https://www.udacity.com/course/cs253.
Views: 16754 Udacity
HTML Span Tag-Hindi
 
05:17
This video shows how to use span tag in HTML of this HTML Tutorial video series. You can download all the examples from 1st video of HTML Facebook- https://www.facebook.com/PooriPadhai Google Plus- https://plus.google.com/+PooriPadhai Twitter- https://twitter.com/pooripadhai Pooripadhai - http://pooripadhai.com/
Views: 7941 Poori Padhai
Partial Print Document JavaScript Tutorial HTML div Content
 
05:16
Lesson Code: http://www.developphp.com/video/JavaScript/Partial-Print-Document-Tutorial-HTML-div-Content Learn to allow users to print specific parts of your documents instead of printing the entire web page. We will apply print buttons near each printable portion of the document.
Views: 84218 Adam Khoury
8: Introduction to Classes and IDs in HTML | Learn HTML and CSS | HTML Tutorial
 
09:09
Introduction to Classes and IDs in HTML | Learn HTML and CSS | HTML tutorial. Today you will learn about HTML Classes and IDs, which are used to target a specific HTML element, in order to style it using CSS. ➤ GET ACCESS TO MY LESSON MATERIAL HERE! First of all, thank you for all the support you have given me! I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you! I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach. I hope you will find it helpful :) Material for this lesson: https://www.patreon.com/posts/html-8-download-15593494
Views: 46643 mmtuts
Event bubbling in JavaScript
 
15:01
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/event-bubbling-in-javascript.html What is event bubbling Let us understand this with an example. HTML elements can be nested inside each other. For example a button element can be nested inside a span element and the span element inturn can be nested inside a div element. Notice that we have onclick attribute specified for all the 3 elements. [html] [head] [style type="text/css"] .styleClass { display: table-cell; border: 1px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div class="styleClass" onclick="alert('Div click handler')"]DIV element [span class="styleClass" onclick="alert('Span click handler')"]Span element [input type="button" value="Click me" onclick="alert('Button click handler')" /] [/span] [/div] [/body] [/html] A click on the button, causes a click event to be fired on the button. The button click event handler method handles the event. The click event then bubbles up to the button element parent (span element), which is handled by the span element event handler method. The click event then bubbles up to the span element parent (div element). This is called event bubbling. Notice that if you click on the [span] element, it's event handler and it's parent([div]) element event handler are called. If you click on the [div] element, just the [div] element event handler method is called. So, the event bubbling process starts with the element that triggered the event and then bubbles up to the containing elements in the hierarchy. The following example is similar to the one above, except we removed the onclick attribute from button and span elements. Because of event bubbling, when you click on the button or the span element, the event gets handled by the div element handler. [html] [head] [style type="text/css"] .styleClass { display: table-cell; border: 1px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div class="styleClass" onclick="alert('Click event handled by DIV element')"]DIV element [span class="styleClass"]Span element [input type="button" value="Click me"/] [/span] [/div] [/body] [/html] When the event gets bubbled, the keyword this references the current element to which the event is bubbled. In the example below, we are using "this" keyword to reference the current div element and change it's border color. When you click on the innermost [div] element, all the 3 [div] elements border get changed due to event bubbling. [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].onclick = function () { this.style.borderColor = "red"; alert(this.getAttribute("id") + " backgound changed"); } } [/script] [/body] [/html] Stopping event bubbling : If you don't want the event to be bubbled up, you can stop it. With Internet Explorer 8 and earlier versions event.cancelBubble = true With Internet Explorer 9 (and later versions) & all the other browsers event.stopPropagation()
Views: 54746 kudvenkat
OnClick function and getting element by ID in javascript
 
06:14
Fantastic course of JavaScript for free on Udemy :- https://www.udemy.com/javascript-tutorial-video/ Free certification after 100% course completion on Udemy.
Views: 28454 Flipbell IT Studio
jQuery Element Selector
 
11:54
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/jquery-element-selector.html In this video we will discuss jQuery Element Selector, i.e selecting elements by tag name. To select the elements by tag name use jQuery Element Selector Syntax : $(element) $('td') // Selects all td elements $('div a') // Select all anchor elements that are descendants of div element $('div, span, a') // Selects all div, span and anchor elements Alerts the total count of td elements on the page [script type="text/javascript"] $(document).ready(function () { alert($('td').length); }); [/script] Selects all the tr elements on the page and changes their background colour to red [script type="text/javascript"] $(document).ready(function () { $('tr').css('background-Color', 'red'); }); [/script] Alerts the HTML content of the table [script type="text/javascript"] $(document).ready(function () { alert($('table').html()); }); [/script] Alerts the HTML content of each table row [script type="text/javascript"] $(document).ready(function () { $('table tr').each(function () { alert($(this).html()); }); }); [/script] Select and changes the background colour of all the div, span and anchor elements [script type="text/javascript"] $(document).ready(function () { $('div, span, a').css('background-Color', 'yellow'); }); [/script] Select all anchor elements that are descendants of div element [html] [head] [title][/title] [script src="jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('div a').css('background-Color', 'yellow'); }); [/script] [/head] [body] [div] [a href="http://pragimtech.com"]PragimTech[/a] [/div] [br /] [a href="http://microsoft.com"]Microsoft[/a] [/body] [/html] Changes the background color of even rows to gray and odd rows to yellow in both the tables. [script type="text/javascript"] $(document).ready(function () { $('tr:even').css('background-Color', 'gray'); $('tr:odd').css('background-Color', 'yellow'); }); [/script] To change the background color of even rows to gray and odd rows to yellow just for one of the table, use #id selector along with element selector. [script type="text/javascript"] $(document).ready(function () { $('#table1 tr:even').css('background-Color', 'gray'); $('#table1 tr:odd').css('background-Color', 'yellow'); }); [/script]
Views: 140247 kudvenkat
XHTML and CSS Tutorial - 28 - Style More Than One Elements & Span!
 
06:18
Facebook - https://www.facebook.com/TheNewBoston-464114846956315/ GitHub - https://github.com/buckyroberts Google+ - https://plus.google.com/+BuckyRoberts LinkedIn - https://www.linkedin.com/in/buckyroberts reddit - https://www.reddit.com/r/thenewboston/ Support - https://www.patreon.com/thenewboston thenewboston - https://thenewboston.com/ Twitter - https://twitter.com/bucky_roberts
Views: 155558 thenewboston
HTML Div Tag-Hindi
 
05:33
This video shows how to use div tag in HTML of this HTML Tutorial video series. You can download all the examples from 1st video of HTML Facebook- https://www.facebook.com/PooriPadhai Google Plus- https://plus.google.com/+PooriPadhai Twitter- https://twitter.com/pooripadhai Pooripadhai - http://pooripadhai.com/
Views: 29870 Poori Padhai
Responsive Sidebar Navigation Menu Using HTML, CSS and JavaScript
 
15:04
Responsive Sidebar Navigation Menu Using HTML, CSS and JavaScript In this tutorial, we are creating a Responsive sidebar with HTML, CSS, and JavaScript. In this video, i will demonstrate how to create slide in sidebar using CSS and JavaScript. Along with this we also create sliding animation for the toggle menu button. We will add first name of the website and then as a navigation item we will add home, blog, features, Pricing and contact us section. We create hover effect on the Navigation item. Using font awesome website we use icons in the project. Learn More From Our Website:- www.dailywebtuition.com Attribution Icon made by monkik from www.flaticon.com Music: https://www.bensound.com Photos: https://www.pexels.com Hey Everyone welcome back to daily tuition. in this tutorial I will show you how to create sidebar with animated hamburger menu. in this sidebar we will add website name navigation item and social links. along with that we will animate hamburger menu. so when you click on the hamburger menu you will see this sidebar. You can see this site is responsive for mobile devices also. we are using CSS for styling HTML and also use JavaScript to add click event to the hamburger menu. so before we start this video make sure you press the subscribe button and also press the bell icon to get notified of my every new video and also like this video if you find anything useful. so before we getting late let's get started. so first you need to open empty folder in the editor and create two file in that folder index.htm and style.css. in index.html file create simple HTML5 snippet and specify title text. I will spit this window so you will know what is going on. after that we link two files. first one is font awesome CSS file to use icon in the project and second is style.css In the body tag create a container class and in that class put the navigation with navbar class and specify ID nav ID. In the navigation create type button and specify a class toggle collapse and ID toggle button in this button create a span tag and specify class toggle icon using this class we create hamburger menu. Now we will create navigation. so we will add in order list tag with site nav class and here we put a li tag with nav item class. in the li tag we insert and anchor tag and specify site name class. so here we specify website name. after that we create second navigation item with item class and insert anchor tag with nav link class. So here we First specify first navigation item Home. after that we insert another li tag with nav item class and create anchor tag with nav link class specify blog text. I will fast forward this video and create features pricing and contact us navigation item. I will use same classes to create this navigation items. On the last navigation item we will insert social icon font awesome website. So I will add some social icon here Like Facebook Twitter Instagram and YouTube. how the time in style this HTML. in style.css select body tag and specify margin 0% and padding 0% then I will apply Font family and specify background colour two body of the document. then I will create navbar class and specify position absolute right 0% width 260 pixel you are free to choose your own navigation width. specify height 100% background colour black text align centre and transition property 0.8s then I will select side nav class which is child of navbar class specify list style type none padding 0 and margin 0. Create an nav item class specify display flex. then select the child element of navigation item navigation link and specific text decoration none colour font size 1.1em padding 1em and flex 1 property to fill the Remaining space of navigation item. after that create hover effect on a navigation link specify background and colour property. Now now we will align toggle button at the right place. to create toggle collapse class specified float property left margin left -3.3em margin top. 5em content blank outline inherit border 0px background transfer. now we will create toggle button. so using toggle icon class I will create toggle button. In the previous video I showed you how to create toggle icon with animation. we are creating the same code here also so you can skip this section review if you already watch the previous video if not then you can watch this video from the top right corner of the screen. in the toggle icon code I just made some changes And specify different width for horizontal bars of toggle icon. After creating the toggle icon we select site name class and specify text decoration none padding 1.3em font size 2em and color whitesmoke. Select the social icon using nav item last child i tag and specify padding .5em. Then create remove hover effect from the social icons. And specify Background colour black and colour white. if you have any question then comment us.
Views: 4977 Daily Tuition
How use span in html
 
03:18
HTML BASIC Tutorial Using span in html, span is one of the important tag for web design. This video will teach you how to use span tag in text.
Views: 425 Tera Tricks
How to make a Triangle and circle in css - html div element
 
09:20
How to draw a triangle and circle in html using pure css html triangle shape css triangle div element html triangle down html symbols html triangle button html triangle right css triangle with border Make Shapes with CSS The Shapes of CSS html circle shape css circle div element css circle with border radius css shapes arrow css circles how to make a triangle in css how to make a triangle button in css how to make a triangle div css how to draw a triangle in css how to draw a triangle in css3 how to make a circle in css how to draw a circle in css how to draw a circle in css3 how to make a circle div in css how to create circles with css
Views: 61228 techsith
jQuery DOM manipulation methods
 
16:55
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-dom-manipulation-methods.html In this video we will discuss 1. What are jQuery DOM manipulation methods 2. How to set attribute values using jQuery attr() method 3. How to retrieve attribute values using jQuery attr() method 4. How to set multiple attribute values using jQuery attr() method 5. How to remove an attribute using jQuery removeAttr() method What are jQuery DOM manipulation methods jQuery DOM manipulation methods manipulate the DOM in some manner. The complete list of jQuery DOM manipulation methods can be found at the following link. http://api.jquery.com/category/manipulation/ jQuery attr method is used to set or retrieve attribute values of html elements. Retrieves the title attribute value of the first matching element $('div').attr('title') Example : In this example we have 2 DIV elements. Since attr() function retrieves only the attribute value of first matching element, we only get the title attribute value of the first DIV element. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { alert($('div').attr('title')); }); </script> </head> <body style="font-family:Arial"> <div id="div1" title="My DIV1"> DIV 1 </div> <div id="div2" title="My DIV2"> DIV 2 </div> </body> </html> To retrieve the title attribute value of all the matching elements, jQuery each() method can be used. <script type="text/javascript"> $(document).ready(function () { $('div').each(function () { alert($(this).attr('title')); }); }); </script> Sets the title attribute value of all the matching elements to "new div title" $('div').attr('title', 'new div title'); Example : If you want to set the same value for the title attribute of all the elements, then there is no need to loop thru each element. All the div elements in this case will have 'new div title' as the title attribute value. <script type="text/javascript"> $(document).ready(function () { // set the same title attribute value for all the DIV elements $('div').attr('title', 'new div title'); // Retrieve and alert the title attribute value of all DIV elements $('div').each(function () { alert($(this).attr('title')); }); }); </script> If you want to set a different value for the title attribute, then you may need to loop thru each element. <script type="text/javascript"> $(document).ready(function () { // sets a different title attribute value for each DIV element $('div').each(function (i) { $(this).attr('title', 'div ' + (i + 1) + ' title'); }); // Retrieve and alert the title attribute value of all DIV elements $('div').each(function () { alert($(this).attr('title')); }); }); </script> How to set multiple attribute values : Using a JSON object to set multiple attribute values <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { var config = { 'title': 'New Div Title', 'style': 'border:3px solid red;', 'name': 'My Div' }; $('div').attr(config); var result = ''; $('div').each(function () { result += 'title = ' + $(this).attr('title') + '<br/>'; result += 'style = ' + $(this).attr('style') + '<br/>'; result += 'name = ' + $(this).attr('name') + '<br/><br/>'; }); $('#resultSpan').html(result); }); </script> </head> <body style="font-family:Arial"> <div id="div1" title="My DIV1"> DIV 1 </div> <br /> <div id="div2" title="My DIV2"> DIV 2 </div> <br /> <span id="resultSpan"> </span> </body> </html> Instead of creating a separate JSON object (config) and then passing it to attr() method, you can create the JSON object inline. $('div').attr({ 'title': 'New Div Title', 'style': 'border:3px solid red;', 'name': 'My Div' });
Views: 70749 kudvenkat
jQuery append elements
 
08:18
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-append-elements.html In this video we will discuss how to append and prepend elements To append elements we have append() appendTo() To prepend elements we have prepend() prependTo() Since these methods modify DOM, they belong to DOM manipulation category. jquery append example : The following example appends the specified HTML to all div elements <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('div').append('<b> Tutorial</b>'); }); </script> </head> <body style="font-family:Arial"> <div id="div1">jQuery</div> <div id="div2">C#</div> <div id="div3">ASP.NET</div> </body> </html> jquery appendto example : The above example can be rewritten using appendTo as shown below. $('<b> Tutorial</b>').appendTo('div'); What is the difference between append and appendTo Both these methods perform the same task. The only difference is in the syntax. With append method we first specify the target elements and then the content that we want to append, where as we do the opposite with appendTo method. jquery prepend example : The following example prepends the specified HTML to all div elements <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('div').prepend('<b>Tutorial </b>'); }); </script> </head> <body style="font-family:Arial"> <div id="div1">jQuery</div> <div id="div2">C#</div> <div id="div3">ASP.NET</div> </body> </html> jquery prependTo example : The above example can be rewritten using prependTo as shown below. $('<b>Tutorial </b>').prependTo('div'); What is the difference between prepend and prependTo Both these methods perform the same task. The only difference is in the syntax. With prepend method we first specify the target elements and then the content that we want to prepend, where as we do the opposite with prependTo method. jQuery append existing element example : These methods (append, appendTo, prepend, prependTo) can also select an element on the page and insert it into another <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('div').append($('#mySpan')); }); </script> </head> <body style="font-family:Arial"> <span id="mySpan"> Programming</span> <div id="div1">jQuery</div> <div id="div2">C#</div> <div id="div3">ASP.NET</div> </body> </html> Difference between prepend and append prepend method, inserts the specified content to the beginning of each element in the set of matched elements, where as append method inserts the specified content to the end of each element in the set of matched elements.
Views: 55425 kudvenkat
javascript tutorials for beginners in Hindi - 25 - hide show in javascript
 
06:00
In this video I will show you that how can you hide show a div or element in javascript. This video series javascript tutorials for beginners in Hindi is for both hindi and urdu students. in this video we will use css display property to hide or show a div in javascript. we will use documen.getElementById to select id and then we will use addEventListener to add event to selected element. For all my tutorials go to: http://websofttutorials.com/ Facebook: https://www.facebook.com/websofttutorials/ Twitter: https://twitter.com/websofttutorial Google Plus: https://plus.google.com/103170090189141800172/posts
Views: 12605 websofttutorials
Centering with CSS
 
18:56
I show you 4 ways to center crap with CSS! Woo! Center a div with css. Center an image with css. Center your mom with valium. CSS Basics Series - https://www.youtube.com/playlist?list=PLqGj3iMvMa4IOmy04kDxh_hqODMqoeeCy Late Nights with Trav and Los Podcast - http://travandlos.com/ Subscribe on iTunes - https://itunes.apple.com/us/podcast/late-nights-with-trav-and-los/id944869246?mt=2 Sign up for my newsletter - http://travisneilson.com/ --- Thanks and credit to these artists, whos work I featured in this video - Tristen Grant https://www.youtube.com/user/tristengrant - Imad Eddine Toubal https://www.youtube.com/watch?v=Tfc-p-RY55o - Celeste Boadas http://www.celesteboadas.me/ - Rafael Bucker http://bucker.com.br/33110/331348/projetos/impresso-no-brasil
Views: 224801 DevTips
Span and Div
 
01:49
This video is part of an online course, Web Development. Check out the course here: https://www.udacity.com/course/cs253.
Views: 45166 Udacity
jQuery class selector
 
10:57
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/jquery-class-selector.html In this video we will discuss jQuery class selector i.e selecting elements using their class name Syntax : $('.class') jQuery class selectors uses JavaScript's native getElementsByClassName() function if the browser supports it. $('.small') // Selects all elements with class small $('.small,.big') // Selects all elements with class small or big $('div.small,.big') // Selects div elements with class small and any element with class big Selects all elements with class "small" and sets 5px solid red border [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('.small').css('border', '5px solid red'); }); [/script] [/head] [body] [span class="small"] Span 1 [/span] [br /][br /] [div class="small"] Div 1 [/div] [br /] [span class="big"] Span 2 [/span] [p class="big"]This is a paragraph[/p] [/body] [/html] Selects all elements with class "small" or "big" and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('.small, .big').css('border', '5px solid red'); }); [/script] Selects all elements with class "small" and all span elements with class "big" and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('.small, span.big').css('border', '5px solid red'); }); [/script] Selects all elements with class small that are nested in a an element with id=div2 and sets 5px solid red border [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('#div2 .small').css('border', '5px solid red'); }); [/script] [/head] [body] [div id="div1" class="small"] DIV 1 [/div] [br /] [div id="div2"] Div 2 [br /] [div class="small"] DIV 3 [/div] [br /] [span class="small"] SPAN [/span] [/div] [/body] [/html] Selects all elements with class small and sets 5px solid red border. Notice div1 has 2 classes - small and big. [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('.small').css('border', '5px solid red'); }); [/script] [/head] [body] [div class="small big"] DIV 1 [/div] [br /] [div class="small"] DIV 2 [/div] [/body] [/html] Selects all elements that has both the classes - small and big. There should be no space between the class names. [script type="text/javascript"] $(document).ready(function () { $('.small.big').css('border', '5px solid red'); }); [/script] If you have a space between the two class names then we are trying to find descendants, i.e. find elements with class big that are descendants of an element with class small. [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('.small .big').css('border', '5px solid red'); }); [/script] [/head] [body] [div class="small big"] DIV 1 [/div] [br /] [div class="small"] DIV 2 [div class="big"] DIV 3 [/div] [/div] [/body] [/html] Another way to selects all elements that has both the classes - small and big is by using filter method. But this approach is slower because it will first create a list of objects with class "small" and then removes elements that does not have class "big" [script type="text/javascript"] $(document).ready(function () { $('.small').filter('.big').css('border', '5px solid red'); }); [/script]
Views: 109451 kudvenkat
XHTML and CSS Part 11: ID, Div, span and list dash style
 
08:04
visit: http://www.hax4me.com like and subscribe follow on twitter: AliKr96
Views: 137 AliKr96
jquery floating div
 
13:36
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/05/jquery-floating-div.html In this video we will discuss, how to create floating div using jQuery. We want the div element in the sidebar to be floating and always visible as we scroll down the page. Example : In this example we are using position() and scrollTop() functions. The object returned by position() function has top and left properties, which can be used to know the current top and left positions (coordinates). We are using this function to find the top position of the div element that we want to keep floating as we scroll down. To get the current vertical position of the scroll bar, we are using scrollTop() function. As we scroll and when the current vertical position of the scroll bar becomes GREATER THAN the top position of the div element, then we want the div element to start floating. To do this set position style to fixed. A fixed position element is positioned relative to the browser window. So as you scroll down it will be floating in the browser window. If the current vertical position of the scroll bar becomes LESS THAN the top position of the div element, then we don't want the div element to float, so we set position style to relative. A relative position element is positioned relative to itself. So if you set position to relative and top to 0, it will continue to stay where it is without floating. <html> <head> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { var floatingDiv = $("#divfloating"); var floatingDivPosition = floatingDiv.position(); $(window).scroll(function () { var scrollPosition = $(window).scrollTop(); if (scrollPosition >= floatingDivPosition.top) { floatingDiv.css({ 'position': 'fixed', 'top' : 3 }); } else { floatingDiv.css({ 'position': 'relative', 'top' : 0 }); } }); }); </script> </head> <body style="font-family:Arial;"> <table align="center" border="1" style="border-collapse:collapse"> <tr> <td style="width:500px"> Main Page Content </td> <td style="width:150px; vertical-align:top"> Side panel content <br /><br /> <div id="divfloating" style="background-color:silver; width:150px; height:150px"> Floating Div - Keeps floating as you scroll down the page </div> </td> </tr> </table> </body> </html>
Views: 32115 kudvenkat
HTML - DIV and SPAN Tags | Web Technologies Tutorial | Mr.Subbaraju
 
18:18
HTML - DIV and SPAN Tags | Web Technologies Tutorial | Mr.Subbaraju ** For Online Training Registration: https://goo.gl/r6kJbB ► Call: +91-8179191999 💡 Also Watch C Language Tutorials: https://goo.gl/qDhJ2r Core Java FAQ's: https://goo.gl/qGh5mA Core Java Tutorials: https://goo.gl/NbaEge Java Programming Tutorials by Mr.Hari krishna: https://goo.gl/HThq6H Advanced Java Programming Tutorials by Mr.Nataraj: https://goo.gl/1U2Qgy Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates. 💡 Visit Our Websites For Classroom Training: https://nareshit.in/ui-technologies-training/ For Online Training: https://nareshit.com/ui-technologies-online-training/ #WebTechnology #Tutorials #Videos #Course #Quiz -------------------------- 💡 About NareshIT: "Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations -------------------------- 💡 Our Online Training Features: 🎈 Training with Real-Time Experts 🎈 Industry Specific Scenario’s 🎈 Flexible Timings 🎈 Soft Copy of Material 🎈 Share Videos of each and every session. -------------------------- 💡 Please write back to us at 📧 [email protected]/ 📧 [email protected] or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999 -------------------------- 💡 Check The Below Links ► For Course Reg: https://goo.gl/r6kJbB ► Subscribe to Our Channel: https://goo.gl/q9ozyG ► Circle us on G+: https://plus.google.com/+NareshIT ► Like us on Facebook: https://www.facebook.com/NareshIT ► Follow us on Twitter: https://twitter.com/nareshitek ► Follow us on Linkedin: https://goo.gl/CRBZ5F ► Follow us on Instagram: https://goo.gl/3UXYK3
Views: 36492 Naresh i Technologies
Pure CSS3 Smooth Scrolling To A DIV OnClick - No Javascript - Pure Html5 and CSS3 Tutorial
 
11:33
Images : https://drive.google.com/file/d/1rH1M5lb-n4azkz34aTzU9txBmYEhc2Ed/view?usp=sharing Please LIKE our Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/ Track: Cadmium - Melody (feat. Jon Becker) Link: https://youtu.be/9MiFRbymQXQ
Views: 27232 Online Tutorials
changing css with javascript 2019 in english | javascript tutorial for beginners 2019 in english
 
09:30
changing css with javascript 2019 in english | javascript tutorial for beginners 2019 in english #csswithjavascript #mindtouchtech #javascripttutorial #javascript #clicktochangebackground About Video:- Hello friends in this mind touch tech javascipt lecture i wil teach you how to change css styling with javascript in hindi.how to apply css effects on div tag with javascript by onmouseover and also how to change background by clicking button in html webpage.this is very important lecture friends so keep watching. Your Queries:- changing css with javascript 2019 in english javascript tutorial for beginners 2019 in english changing css style with javascript in english how to change css style with javascript in english css styling with javascript 2019 div styling with javascript in english click to change background color in html click to change background color effect with javascript how to change body background color by clicking button in javascript javascript add css javascript style background color style.color in javascript document.body.style in javascript styling javascript with css css changing background color My Facebook Link:- https://www.facebook.com/profile.php?id=100009922412459 My Instagram Link:- https://www.instagram.com/princesaini7198/ About Mind Touch Tech:- My name is Prince Saini and i have Created this Mind Touch Tech Youtube channel to Provide the Amazing Web designing and Web development knowledge.I provide BASIC TO ADVANCE Knowledge of HTML,CSS,JAVASCRIPT and ANGULAR.So if you are beginner then MIND TOUCH TECH is the Great youtube channel for you.JavaScript is the top scripting language in the field of web developement.but HTML CSS are the base,So if you are also at intermediate level in web designing then it is the Great channel for you to learn web designing and development.I put my 100% in my all the Videos. Last but not the least i want to say you that nothing is impossible in this world.if we really want to do something Great then it is an easy task for us.So friends Always be happy and enjoy coding..!! If you are new on my channel then you can Subscribe my channel and press the bell icon for the latest video Updates..!!
Views: 68 Mind Touch Tech
How to Use Scripting Elements in HTML
 
02:16
This HTML tutorial will walk you through the concept of inserting Scripting elements in a web page to perform various functions. Don't forget to check out our site http://howtech.tv/ for more free how-to videos! http://youtube.com/ithowtovids - our feed http://www.facebook.com/howtechtv - join us on facebook https://plus.google.com/103440382717658277879 - our group in Google+ c or in other words JS is a widely used scripting language which is used in the development of Web Pages. This html script element is popular amongst the web developers. Java Script uses its scripting functions to enhance the interface of a web page. It is also used in designing dynamic web pages due to its functions and scripting method. Follow this tutorial to learn how to use scripting elements in a web page. Step # 1 -- Insert a java Script code In this tutorial we will guide you on how to use scripting elements in HTML. First of all, open up the source code of your HTML page in a Text editor. Now in the "Head" tag, enter the Java script as script type = "text/javascript" Function init () { Var n = 0 E = document.getElementById("output"); setInterval(function() {e.innerHTML = ++n;}. 1000) window.onload = init; /script Step # 2 -- Insert a New Heading Once you have entered the Java Script tag, go to the "Body" tag and create a heading by inserting the Java Script recall function as h2 Start Counting: span id="output" 0 /span /h2 Now save the page and refresh the browser and you will see that the Java script has started working on the page. Step # 3 -- Change the Output Style You can also change the style of its output by adding a style function. For this purpose, go back to the source file, move over to the Style tag and enter the code as #output { Color: #900; Background-color: yellow; Border: solid black 1px; } Step # 4 -- Display the HTML In the last step, save these changes and refresh the browser to view the new style and formatting of the Java script output on the page. In this manner, you can work with the popular html script element.
how to apply selector in css - tag - class - id selector - css tutorial part 2
 
14:17
In this tutorial I will show you, how many selector in css. how to use selector in css. how to use class selector in css. how to use id selector in css and how to use tag selector in css. it well clear all about selector in css. how to apply css in html - how to apply inline css in html. how to apply internal css in html. how to apply exernal css in html. how to link external css file into html page. you can learn 3 way application of css from this tutorial. I hope you enjoy this tutorial. Please subscribe my channel. css stylesheet example - how to run css file in browser - linking css to html in notepad - css file example - how to create css in notepad++ - sample css file - css file example - css style tag - inline style html - css stylesheet template - css examples - html style attribute - html style tag - how to apply inline css - css file - link css to html - embedded css - CSS Tutorial for Beginners - css meaning - css full form - css3 tutorial - css tutorial - what is css - external style sheet example - external style sheet definition - tag selector - div class css - css id selector - id and class css - css attribute selectors - css selectors examples - css class selector - class selector - css multiple class selector - application of css in html - css selectors tutorial - css basics tutorial.
Views: 603 Soft-All
04 - Hello User JavaScript Interactive Application - Coding Behavior
 
13:41
04 - Hello User JavaScript Interactive Application - Coding Behavior As JavaScript is a behavioral language. Se We use Javascript to add behavior to Hello user application. Example Code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Hello user application</title> <style type="text/css"> #frmWelcome { background-color:lightgray; font-family:Arial; padding:10px; } </style> </head> <body> <form id="frmWelcome"> <fieldset> <legend>Welcome Form</legend> <label>User Name:</label> <input type="text" id="txtUserName" value=""/> <span id="spnMessage"></span> <br/> <input type="button" id="btnWishUser" value="Wish User" onclick="btnWishUser_onClick()"/> </fieldset> </form> <script type="text/javascript"> function btnWishUser_onClick() { var txtUserName = document.getElementById("txtUserName"); var spnMessage = document.getElementById("spnMessage"); if(txtUserName.value != "") { spnMessage.innerHTML = "Hello " + txtUserName.value; spnMessage.style.color="green"; } else { spnMessage.innerHTML = "Please enter your name"; spnMessage.style.color="red"; } } </script> </body> </html> ======================================================== Follow the link for previous video: https://youtu.be/53UC2RmvCX8 ========= For more benefits & Be up to date =================== Subscribe to the channel: https://www.youtube.com/chidrestechtu... Like the Facebook fan page: https://www.facebook.com/ManjunathChidre Visit to Chidre's Tech Tutorials website: http://www.chidrestechtutorials.com ========================================================
jQuery attribute selector
 
08:17
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/jquery-attribute-selector.html In this video we will discuss selecting elements 1. That have specified attribute 2. That have specified attribute values Syntax : $('[attribute]') $('[attribute="value"]') $('[title]') // Selects all elements that have title attribute $('div[title]') // Selects all div elements that have title attribute $('[title="divTitle"]') // Selects all elements that have title attribute value - divTitle $('div[title="divTitle"]') // Selects all div elements that have title attribute value - divTitle Selects all elements with title attribute and sets 5px solid red border [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('[title]').css('border', '5px solid red'); }); [/script] [/head] [body] [div title="div1Title"] DIV 1 [/div] [br /] [div title="div2Title"] DIV 2 [/div] [p title="pTitle"] This is a paragraph [/p] [span title="div1Title"] SAPN 1 [/span] [br /][br /] [span] SPAN 2 [/span] [/body] [/html] Selects all div elements with title attribute and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('div[title]').css('border', '5px solid red'); }); [/script] Selects all elements with title attribute value - div1Title, and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('[title="div1Title"]').css('border', '5px solid red'); }); [/script] Selects all div elements with title attribute value - div1Title, and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('div[title="div1Title"]').css('border', '5px solid red'); }); [/script] Selects all div elements with both title and style attributes, and sets 5px solid black border [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('div[title][style]').css('border', '5px solid black'); }); [/script] [/head] [body] [div title="divTitle" style="background-color:red"] Red DIV [/div] [br /] [div title="divTitle" style="background-color:green"] Green DIV [/div] [br /] [div title="divTitle"] Normal Div [/div] [br /] [div] Normal Div without any attributes [/div] [/body] [/html] Selects all div elements with title attribute value - divTitle, and style attribute value - background-color:red, and sets 5px solid black border [script type="text/javascript"] $(document).ready(function () { $('div[title="divTitle"][style="background-color:red"]').css('border', '5px solid black'); }); [/script] Selects all div elements with either title or style attributes, and sets 5px solid black border [script type="text/javascript"] $(document).ready(function () { $('div[title],[style]').css('border', '5px solid black'); }); [/script]
Views: 105920 kudvenkat
[Javascript Tutorial] css id vs class attributes,  when to use id and when to use class, difference
 
06:35
[Javascript Tutorial] css id vs class attributes, when to use id and when to use class, difference between id and class. css3 id vs class attributes, when to use id and when to use class, difference between id and class in css css benefits of using class over id, css3 benefits of using id over class, html id vs class, css id vs class, html class vs id, css class vs id, The Difference Between ID and Class, id vs class tutorial, difference between id and class tutorial,The Difference Between class and id HTML5, CSS3 and JavaScript Tutorials , lessons with examples. Techsith.com id vs class more of a design related question and its a very important one. Overall you will be using more classes then ids. id: think of element that is unique. there is only one id per element. your html validateor would throw and en error if you do use it which means you will not be reusing the same style anywhere else. all the main containers in your HTMLs you should use id because you are not going to repete them . That doesnt mean that you cant use class there. advantage of using is for is as your main namespace. for css this way you can segregate work so your css doesn't messup. for example #leftContainer .button { color:red} which mean all the botton in the left containers are red. class: you can used them freely. any common styles you can define as class. as you can have multiple classes for the same element. and mix and match of the classes will make your css small . for example you can create two divs with same color but diffrent font sizes. Dont forget the attributes. actually id and class are attributes wich special meaning. and you can create your own custome attributes. like myattr. Platforms like angularjs uses them freely. overall i thin its better to use classes then ids especially when you working in a team envirement where you are responsible for a partial html . using id can be riskier if someone else is using the same id in the other part of the html . in css id has higher priority than class for example ...... SUBSCRIBE for more videos!
Views: 112 Loan Can Thi
Create Outlined Div Boxes (see-through) with Arrows and Pointers, Using CSS
 
04:55
Here's how to create and style just the outline of a div box (see-through) complete with arrows / pointers. This technique uses only basic HTML and CSS. No JavaScript required. Code snippet for this effect is in the comments section below.
Views: 35145 Arjun Khara
JavaScript event capturing
 
08:36
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/javascript-event-capturing.html Event capturing is the opposite of event bubbling. We discussed event bubbling in detail in Part 40 of JavaScript tutorial. With event bubbling the event bubbles up from the inner most element to the outer most element in the DOM hierarchy. With event capuring the opposite happens, the event gets captured from the outer most element to innermost element. In real world event capturing is rarely used. Let us understand this with an example. In the following example we have 3 [div] nested elements. Notice that we are using addEventListener() method to assign event handler to each [div] element. To enable event capturing we have set the third parameter (phase) of addEventListener() method to true. Now when you click on the innermost [div] (DIV3), notice that the events are fired from the outermost [div] to innermost [div] (DIV1 =] DIV 2 =] DIV 3). [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].addEventListener("click", clickHandler, true); } function clickHandler() { alert(this.getAttribute("id") + " click event handled"); } [/script] [/body] [/html] Please note : IE8 and earlier versions does not support addEventListener() method. This implies that event capturing is not supported in IE8 and earlier versions, and hence the above code will not work in IE 8 and earlier versions. Stopping event capturing : Stopping event capturing is very similar to stopping event bubbling. With the example below, when you click on any [div] element notice that DIV 1 element handles the click event and it does not get captured down. [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].addEventListener("click", clickHandler, true); } function clickHandler(event) { event.stopPropagation(); alert(this.getAttribute("id") + " click event handled"); } [/script] [/body] [/html] Using addEventListener() method with last argument set to true is the only way to enable event capturing. If the thid parameter (phase) is set to true event capturing is enabled and if it is set to false event bubbling is enabled. If you want both even bubbling and capturing to be enabled, then assign handlers 2 times, once with the phase parameter set to false and once with the phase parameter set to true as shown below. [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].addEventListener("click", clickHandler, false); divElements[i].addEventListener("click", clickHandler, true); } function clickHandler() { alert(this.getAttribute("id") + " click event handled"); } [/script] [/body] [/html] With both event capturing and bubbling enabled, events are first captured from the outermost element to the innermost element and then bubbles up from the innermost to the outermost element.
Views: 37331 kudvenkat
HTML: Difference between span and DIV tags
 
05:09
SPAN is used to style a block of text and will not take up complete remaining space, while DIV will take complete space by default. SPAN should be used to style various parts of a text with different style. Class can be used with SPAN
Views: 1840 WebTecho Tutorials
changing css with javascript 2019 in hindi | javascript tutorial for beginners 2019 in hindi
 
11:19
changing css with javascript 2019 in hindi javascript tutorial for beginners 2019 in hindi #csswithjavascript #mindtouchtech #javascripttutorial #javascript #clicktochangebackground About Video:- Hello friends in this mind touch tech javascipt lecture i wil teach you how to change css styling with javascript in hindi.how to apply css effects on div tag with javascript by onmouseover and also how to change background by clicking button in html webpage.this is very important lecture friends so keep watching. Your Queries:- changing css with javascript 2019 in hindi javascript tutorial for beginners 2019 in hindi changing css style with javascript in hindi how to change css style with javascript in hindi css styling with javascript 2019 div styling with javascript in hindi click to change background color in html click to change background color effect with javascript how to change body background color by clicking button in javascript javascript add css javascript style background color style.color in javascript document.body.style in javascript styling javascript with css css changing background color My Facebook Link:- https://www.facebook.com/profile.php?id=100009922412459 My Instagram Link:- https://www.instagram.com/princesaini7198/ About Mind Touch Tech:- My name is Prince Saini and i have Created this Mind Touch Tech Youtube channel to Provide the Amazing Web designing and Web development knowledge.I provide BASIC TO ADVANCE Knowledge of HTML,CSS,JAVASCRIPT and ANGULAR.So if you are beginner then MIND TOUCH TECH is the Great youtube channel for you.JavaScript is the top scripting language in the field of web developement.but HTML CSS are the base,So if you are also at intermediate level in web designing then it is the Great channel for you to learn web designing and development.I put my 100% in my all the Videos. Last but not the least i want to say you that nothing is impossible in this world.if we really want to do something Great then it is an easy task for us.So friends Always be happy and enjoy coding..!! If you are new on my channel then you can Subscribe my channel and press the bell icon for the latest video Updates..!!
Views: 101 Mind Touch Tech
jquery draggable widget
 
12:17
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/07/jquery-draggable-widget.html In this video we will discuss jquery draggable widget jquery draggable widget allow elements to be moved using the mouse. This widget is in interactions category on the jQuery UI website. http://jqueryui.com/draggable/ Consider the following HTML <div id="draggableDiv" class="divClass"> Drag me around </div> .divClass { height: 200px; width: 200px; background-color: red; color: white; display:table-cell; vertical-align:middle; text-align:center; } To make the above div element draggable $('#draggableDiv').draggable(); Some of the useful options to customize the draggable widget axis - Constrains dragging to either x or y axis containment - Constrains dragging to within the bounds of the specified element or region cursor - The CSS style of the cursor during the drag operation opacity - opacity during the drag operation revert - Boolean property that specifies if the element should revert to its start position when dragging stops revertDuration - The duration of the revert animation, in milliseconds snap - Specifies whether the element being dragged should snap to other elements. Value can be boolean or a selector. When set to true, the element will snap to all other draggable elements. When a selector is specified the element being dragged will snap to the element specified by the selector snapTolerance - The distance in pixels between the element being dragged and the element to which to snap to, at which snapping should occur. cancel - Prevents dragging from starting on specified elements Constrains dragging to x axis $('#draggableDiv').draggable({ axis : 'x' }); Constrains dragging to within the bounds of the parent element HTML <div id="containerDiv" style="height:300px; width:300px; border:3px solid black"> <div id="draggableDiv" class="divClass"> Drag me around </div> </div> jQuery $('#draggableDiv').draggable({ containment : 'parent' }); Changes the cursor style to "move" during the drag operation $('#draggableDiv').draggable({ cursor: 'move' }); Changes the opacity to 0.3 during the drag operation $('#draggableDiv').draggable({ opacity : '0.3' }); Reverts the div element to its start position when dragging stops. Revert animation completes in 1000 milli-seconds. $('#draggableDiv').draggable({ revert: true, revertDuration : 1000 }); The following example 1. Snaps the coloured div elements to the div element with thick black border. 2. The snapping occurs as soon as the distance between any of the coloured div element and the div element with thick black border is 50 pixels 3. The cancel option cancels dragging from starting on the div element with thick black border HTML <div id="redDiv" class="divClass" style="background-color: red"> Red Div </div> <div id="greeDiv" class="divClass" style="background-color: green"> Green Div </div> <div id="blueDiv" class="divClass" style="background-color: blue"> Blue Div </div> <div id="brownDiv" class="divClass" style="background-color: brown"> Brown Div </div> <br /> <br /> <div id="snapDiv" style="height: 400px; width: 400px; border: 5px solid black"> </div> Style .divClass { height: 200px; width: 200px; color: white; display: table-cell; vertical-align: middle; text-align: center; } jQuery $('div').draggable({ snap: '#snapDiv', snapTolerance: 50, cancel : '#snapDiv' });
Views: 24551 kudvenkat