Monday, November 27, 2017
Since CSS does not live in an island no technology does. It has to interact with it's neighbor HTML on a regular basis. In the HTML world there's the block-level elements and then there's the inline-level elements. Most developers could care less what the meanings of these words mean. For the designers, it's okay they are just trying to make things look pretty cut them some slack :)
First let's look at block elements:
Block elements are needs to stand on it's own, meaning there's no elements at either sides. They generate a break on the top of bottom of itself.
Here is an example:
The <h1> and <p> tags are block elements. Even if you write the code <h1>This is H1<h1><p>This is a paragraph tag!</p> in one line next to each other without any breaks. The resulting respresentation of those tags in the browser would look like this.
As you can see even without any line break tag <br/> the elements puts at tag all by itself.
The inline-level elements:
The inline-level elements are the nice kid that shares toys with his friends, while his CEO friend the block elements tries to dominate everything. If you have to think of it that way you can! The inline-element works within the context/text etc. and does not generate a line break.
For example if we put a <strong> in the middle of the paragraph tag text it won't generate a line break. with something like this <p>This is a <strong>paragraph</strong> tag!</p>
This is a paragraph tag!
As you can see the <strong> tag in the middle of the sentence did not break up the text into a new line.
First let's look at block elements:
Block elements are needs to stand on it's own, meaning there's no elements at either sides. They generate a break on the top of bottom of itself.
Here is an example:
The <h1> and <p> tags are block elements. Even if you write the code <h1>This is H1<h1><p>This is a paragraph tag!</p> in one line next to each other without any breaks. The resulting respresentation of those tags in the browser would look like this.
This is H1
This is a paragraph tag!As you can see even without any line break tag <br/> the elements puts at tag all by itself.
The inline-level elements:
The inline-level elements are the nice kid that shares toys with his friends, while his CEO friend the block elements tries to dominate everything. If you have to think of it that way you can! The inline-element works within the context/text etc. and does not generate a line break.
For example if we put a <strong> in the middle of the paragraph tag text it won't generate a line break. with something like this <p>This is a <strong>paragraph</strong> tag!</p>
This is a paragraph tag!
As you can see the <strong> tag in the middle of the sentence did not break up the text into a new line.
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Mua vé tại Aivivu, tham khảo
ReplyDeletesăn vé máy bay giá rẻ đi Mỹ
lịch bay từ california về việt nam
ve may bay tư duc ve viet nam
mua vé máy bay từ nga về việt nam
lịch bay từ anh về việt nam hôm nay
chuyến bay từ châu âu về việt nam
chuyen bay chuyen gia
موتور دمپر یا محرک الکتریکی دمپر در واقع یکی از انواع موتور می باشد که برای باز کردن و بستن یک دریچه با استفاده از نیروی الکتریکی به دو صورت کامل و تدریجی به کار می رود.
ReplyDeleteرنت خودرو
ReplyDelete